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

Public Member Functions | |
| suPointKinematics (rdModel *aModel) | |
| Construct an suPointKinematics instance for recording the kinematics of the bodies of a model during a simulation. | |
| virtual | ~suPointKinematics () |
| 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. | |
| 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. | |
Static Public Attributes | |
| const int | NAME_LENGTH = suPointKinematics_NAME_LENGTH |
| const int | BUFFER_LENGTH = suPointKinematics_BUFFER_LENGTH |
Protected Member Functions | |
| virtual int | record (double aT, double *aX, double *aY) |
| Record the kinematics. | |
Protected Attributes | |
| int | _body |
| double | _point [3] |
| char | _pointName [suPointKinematics_NAME_LENGTH] |
| double * | _dy |
| double * | _kin |
| rdStorage * | _pStore |
| rdStorage * | _vStore |
| rdStorage * | _aStore |
Private Member Functions | |
| void | setNull () |
| SetNull(). | |
| 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. | |
Private Attributes | |
| char | _buffer [suPointKinematics_BUFFER_LENGTH] |
| char | _tmp [suPointKinematics_BUFFER_LENGTH] |
|
|
Construct an suPointKinematics 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 body for which the induced accelerations are to be computed.
|
|
|
Get the point for which the induced accelerations are to be computed.
|
|
|
Get the point name.
|
|
|
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 body for which the induced accelerations are to be computed.
|
|
|
Set the point for which the induced accelerations are to be computed.
|
|
|
Set a name for the point.
|
|
|
Set the capacity increments of all storage instances.
|
1.3