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

suBodyIndAcc Class Reference

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

#include <suBodyIndAcc.h>

Inheritance diagram for suBodyIndAcc:

suIndAcc rdAnalysis suBodyIndAccCOM suBodyIndPowers List of all members.

Public Member Functions

 suBodyIndAcc (rdModel *aModel)
 Construct an induced acceleration instance for performing an induced acceleration analysis on the bodies of a model.

 suBodyIndAcc (rdModel *aModel, rdStorage *aStates, rdStorage *aControls, char *aBaseName, char *aDir=NULL, char *aExtension=NULL)
 Construct an induced acceleration instance from a set of force decomposition files.

virtual ~suBodyIndAcc ()
 Destructor.

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

rdStoragegetBodyStore (int index)
 Returns a pointer to an _aeBodyStore.

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

void sumBodyAccelerationResults ()
 Sum the accelerations results.

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 body kinematics files.

void allocateBodyStoragePointers ()
 Allocate storage pointers for the induced accelerations of the bodies.

void allocateBodyStorage ()
 Allocate storage.

void deleteBodyStorage ()
 Delete storage objects.


Private Attributes

rdStorage ** _aeBodyStore

Detailed Description

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

Author:
Frank C. Anderson
Version:
1.0


Constructor & Destructor Documentation

suBodyIndAcc::suBodyIndAcc rdModel aModel  ) 
 

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

Parameters:
aModel Model on which the analyses are to be performed.

suBodyIndAcc::suBodyIndAcc rdModel aModel,
rdStorage aStates,
rdStorage aControls,
char *  aBaseName,
char *  aDir = NULL,
char *  aExtension = NULL
 

Construct an induced acceleration 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.
Todo:
verify induced accelerations are correct

check that code is correct for generalized force case


Member Function Documentation

int suBodyIndAcc::computeBodyAccelerations  ) 
 

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.

rdStorage * suBodyIndAcc::getBodyStore int  index  ) 
 

Returns a pointer to an _aeBodyStore.

Parameters:
index The index of the aeBodyStore to return

int suBodyIndAcc::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 suIndAcc.

Reimplemented in suBodyIndAccCOM, and suBodyIndPowers.

void suBodyIndAcc::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 suIndAcc.

Reimplemented in suBodyIndAccCOM, and suBodyIndPowers.


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