Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

suBodyIndAccCOM Class Reference

A class for computing induced accelerations of the COM of a specified set of the body segments of a model. More...

#include <suBodyIndAccCOM.h>

Inheritance diagram for suBodyIndAccCOM:

suBodyIndAcc suIndAcc rdAnalysis List of all members.

Public Member Functions

 suBodyIndAccCOM (rdModel *aModel, int aN=0, int aBodyList[]=NULL)
 Construct an induced acceleration COM instance for performing an induced acceleration COM analysis on the bodies of a model.

 suBodyIndAccCOM (rdModel *aModel, rdStorage *aStates, rdStorage *aControls, char *aBaseName, char *aDir=NULL, char *aExtension=NULL, int aN=0, int aBodyList[]=NULL)
 Construct an induced acceleration COM instance from a set of force decomposition files.

virtual ~suBodyIndAccCOM ()
 Destructor.

virtual void setStorageCapacityIncrements (int aIncrement)
 Set the capacity increments of all storage instances.

int computeBodyCOMAccelerations ()
 Compute the induced accelerations of the bodies of a model from a force decomposition and a set of states.

void sumBodyCOMAccelerationResults ()
virtual int printResults (char *aBaseName, char *aDir=NULL, double aDT=-1.0, char *aExtension=".sto")
 Print results.


Private Member Functions

void constructDescription ()
 Construct a description for the body kinematics files.

void constructColumnLabels ()
 Construct column labels for the COM acceleration files.

void setBodyList (int aBodyList[])
 Construct a the list of body numbers to use in COM calculation.

void allocateBodyStorage ()
 Allocate storage.

void deleteBodyStorage ()
 Delete storage objects.


Private Attributes

rdStorage_aeCOMBodyStore
rdStorage_veCOMBodyStore
rdStorage_peCOMBodyStore
rdStorage_posStore
rdStorage_velStore
int _aN
int * _aBodyList

Detailed Description

A class for computing induced accelerations of the COM of a specified set of the body segments of a model.

Author:
Frank C. Anderson & Saryn R. Goldberg
Version:
1.0


Constructor & Destructor Documentation

suBodyIndAccCOM::suBodyIndAccCOM rdModel aModel,
int  aN = 0,
int  aBodyList[] = NULL
 

Construct an induced acceleration COM instance for performing an induced acceleration COM analysis on the bodies of a model.

Parameters:
aModel Model on which the analyses are to be performed.
aN Number of bodies that will be used to calculate COM
aBodyList Array containing aN body numbers corresponding to those used in calculating COM

suBodyIndAccCOM::suBodyIndAccCOM rdModel aModel,
rdStorage aStates,
rdStorage aControls,
char *  aBaseName,
char *  aDir = NULL,
char *  aExtension = NULL,
int  aN = 0,
int  aBodyList[] = NULL
 

Construct an induced acceleration COM instance from a set of force decomposition files.

Note that the induced accelerations are not read in from file. The induced accelerations are recomputed based on the force decomposition.

Parameters:
aModel Model on which the analyses were performed.
aStates Set of model states.
aBaseName Base name for the force decompositon files.
aDir Directory in which the results reside.
aExtension File extension.
aN Number of bodies that will be used to calculate COM
aBodyList Array containing aN body numbers corresponding to those used in calculating COM
Todo:
verify induced accelerations are correct

check that code is correct for generalized force case

add initial velocity and ind pos due to init vel and pos to all


Member Function Documentation

int suBodyIndAccCOM::computeBodyCOMAccelerations  ) 
 

Compute the induced accelerations of the bodies of a model from a force decomposition and a set of states.

Returns:
0 on success, -1 on error.

int suBodyIndAccCOM::printResults char *  aBaseName,
char *  aDir = NULL,
double  aDT = -1.0,
char *  aExtension = ".sto"
[virtual]
 

Print results.

The file names are constructed as aDir + "/" + aBaseName + "_" + ComponentName + aExtension

Parameters:
aDir Directory in which the results reside.
aBaseName Base file name.
aExtension File extension.
Returns:
0 on success, -1 on error.

Reimplemented from suBodyIndAcc.

void suBodyIndAccCOM::setBodyList int  aBodyList[]  )  [private]
 

Construct a the list of body numbers to use in COM calculation.

If the default value of aN=0 is set, a list is constructed which contains all of the body numbers for the given model.

void suBodyIndAccCOM::setStorageCapacityIncrements int  aIncrement  )  [virtual]
 

Set the capacity increments of all storage instances.

Parameters:
aIncrement Increment by which storage capacities will be increased when storage capcities run out.

Reimplemented from suBodyIndAcc.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:13 2003 for Simulation Software by doxygen1.3