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

suBodyPointIndAcc Class Reference

A class for computing the induced accelerations of a point on a body segment of a model. More...

#include <suBodyPointIndAcc.h>

Inheritance diagram for suBodyPointIndAcc:

suIndAcc rdAnalysis List of all members.

Public Member Functions

 suBodyPointIndAcc (rdModel *aModel, int aBody, double aPoint[3])
 Construct an instance for computing the induced accelerations of a point on a segment of a model during a simulation.

 suBodyPointIndAcc (rdModel *aModel, int aBody, double aPoint[3], rdStorage *aStates, rdStorage *aControls, char *aBaseName, char *aDir=NULL, char *aExtension=NULL)
 Construct an instance for computing the induced accelerations of a point on a segment of a model from a set of force decomposition files.

virtual ~suBodyPointIndAcc ()
 Destructor.

void setBody (int aBody)
 Set the body for which the induced accelerations are to be computed.

int getBody ()
 Get the body for which the induced accelerations are to be computed.

void setPoint (double aPoint[3])
 Set the point for which the induced accelerations are to be computed.

void getPoint (double rPoint[3])
 Get the point for which the induced accelerations are to be computed.

void setPointName (const char *aName)
 Set a name for the point.

const char * getPointName ()
 Get the point name.

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

char * getColumnLabels (const char *aTag)
 Construct column labels for the inducded induced accelerations of the body points.

int computePointAccelerations ()
 Compute the acceleration of a point on a body induced by the active force components of the model given a force decomposition and a set of states.

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


Static Public Attributes

const int NAME_LENGTH = suBodyPointIndAcc_NAME_LENGTH
const int BUFFER_LENGTH = suBodyPointIndAcc_BUFFER_LENGTH

Protected Attributes

int _body
double _point [3]
char _pointName [suBodyPointIndAcc_NAME_LENGTH]
rdStorage_axPointStore
rdStorage_ayPointStore
rdStorage_azPointStore
rdStorage_vxPointStore
rdStorage_vyPointStore
rdStorage_vzPointStore
rdStorage_pxPointStore
rdStorage_pyPointStore
rdStorage_pzPointStore

Private Member Functions

void setNull ()
 Set the default or null values for the member variables.

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

void allocatePointStorage ()
 Allocate storage.

void deletePointStorage ()
 Delete storage objects.


Private Attributes

char _buffer [suBodyPointIndAcc_BUFFER_LENGTH]
char _tmp [suBodyPointIndAcc_BUFFER_LENGTH]

Detailed Description

A class for computing the induced accelerations of a point on a body segment of a model.

Author:
Frank C. Anderson
Version:
1.0


Constructor & Destructor Documentation

suBodyPointIndAcc::suBodyPointIndAcc rdModel aModel,
int  aBody,
double  aPoint[3]
 

Construct an instance for computing the induced accelerations of a point on a segment of a model during a simulation.

Parameters:
aModel Model on which the analyses are to be performed.
aBody Body ID. aPoint Point value.

suBodyPointIndAcc::suBodyPointIndAcc rdModel aModel,
int  aBody,
double  aPoint[3],
rdStorage aStates,
rdStorage aControls,
char *  aBaseName,
char *  aDir = NULL,
char *  aExtension = NULL
 

Construct an instance for computing the induced accelerations of a point on a segment of a model 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.
aBody Body ID. aPoint Point value.
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

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


Member Function Documentation

int suBodyPointIndAcc::computePointAccelerations  ) 
 

Compute the acceleration of a point on a body induced by the active force components of the model given a force decomposition and a set of states.

Returns:
0 on success, -1 on error.

int suBodyPointIndAcc::getBody  ) 
 

Get the body for which the induced accelerations are to be computed.

Returns:
Body ID

void suBodyPointIndAcc::getPoint double  rPoint[3]  ) 
 

Get the point for which the induced accelerations are to be computed.

Parameters:
rPoint X-Y-Z Point

const char * suBodyPointIndAcc::getPointName  ) 
 

Get the point name.

Parameters:
aName Name for the point.

int suBodyPointIndAcc::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.

void suBodyPointIndAcc::setBody int  aBody  ) 
 

Set the body for which the induced accelerations are to be computed.

Parameters:
aBody Body ID

void suBodyPointIndAcc::setPoint double  aPoint[3]  ) 
 

Set the point for which the induced accelerations are to be computed.

Parameters:
aPoint X-Y-Z Point

void suBodyPointIndAcc::setPointName const char *  aName  ) 
 

Set a name for the point.

Parameters:
aName Name for the point.

void suBodyPointIndAcc::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.


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