#include <suBodyKinematics.h>
Inheritance diagram for suBodyKinematics:

Public Member Functions | |
| suBodyKinematics (rdModel *aModel) | |
| Construct an suBodyKinematics instance for recording the kinematics of the bodies of a model during a simulation. | |
| virtual | ~suBodyKinematics () |
| Destructor. | |
| void | setStorageCapacityIncrements (int aIncrement) |
| Set the capacity increments of all storage instances. | |
| rdStorage * | getAccelerationStorage () |
| Get the acceleration storage. | |
| rdStorage * | getVelocityStorage () |
| Get the velocity storage. | |
| rdStorage * | getPositionStorage () |
| Get the position storage. | |
| virtual int | begin (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called at the beginning of an analysis so that any necessary initializations may be performed. | |
| virtual int | analyze (double *aXPrev, double *aYPrev, int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called to perform the analysis. | |
| virtual int | end (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called at the end of an analysis so that any necessary finalizations may be performed. | |
| virtual int | printResults (char *aBaseName, char *aDir=NULL, double aDT=-1.0, char *aExtension=".sto") |
| Print results. | |
Protected Member Functions | |
| virtual int | record (double aT, double *aX, double *aY) |
| Record the kinematics. | |
Protected Attributes | |
| double * | _dy |
| double * | _kin |
| rdStorage * | _pStore |
| rdStorage * | _vStore |
| rdStorage * | _aStore |
Private Member Functions | |
| void | constructDescription () |
| Construct a description for the body kinematics files. | |
| void | constructColumnLabels () |
| Construct column labels for the body kinematics files. | |
| void | allocateStorage () |
| Allocate storage for the kinematics. | |
| void | deleteStorage () |
| Delete storage objects. | |
|
|
Construct an suBodyKinematics instance for recording the kinematics of the bodies of a model during a simulation.
|
|
||||||||||||||||||||||||||||||||||||
|
This method is called to perform the analysis. It can be called during the execution of a forward integrations or after the integration by feeding it the necessary data. When called during an integration, this method is meant to be called in rdModel::integStepCallback(), which has the same argument list. This method should be overriden in derived classes. It is included here so that the derived class will not have to implement it if it is not necessary.
Reimplemented from rdAnalysis. |
|
||||||||||||||||||||||||||||
|
This method is called at the beginning of an analysis so that any necessary initializations may be performed. This method is meant to be called at the begining of an integration in rdModel::integBeginCallback() and has the same argument list. This method should be overriden in the child class. It is included here so that the child class will not have to implement it if it is not necessary.
Reimplemented from rdAnalysis. |
|
||||||||||||||||||||||||||||
|
This method is called at the end of an analysis so that any necessary finalizations may be performed. This method is meant to be called at the end of an integration in rdModel::integEndCallback() and has the same argument list. This method should be overriden in the child class. It is included here so that the child class will not have to implement it if it is not necessary.
Reimplemented from rdAnalysis. |
|
|
Get the acceleration storage.
|
|
|
Get the position storage.
|
|
|
Get the velocity storage.
|
|
||||||||||||||||||||
|
Print results. The file names are constructed as aDir + "/" + aBaseName + "_" + ComponentName + aExtension
Reimplemented from rdAnalysis. |
|
|
Set the capacity increments of all storage instances.
|
1.3