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

Public Member Functions | |
| suActuation (rdModel *aModel) | |
| Construct an suActuation object for recording the kinematics of a model's generalized coodinates during a simulation. | |
| virtual | ~suActuation () |
| Destructor. | |
| void | setStorageCapacityIncrements (int aIncrement) |
| Set the capacity increments of all storage instances. | |
| rdStorage * | getForceStorage () const |
| Get the force storage. | |
| rdStorage * | getSpeedStorage () const |
| Get the speed storage. | |
| rdStorage * | getPowerStorage () const |
| Get the power 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 actuation quantities. | |
Protected Attributes | |
| int | _na |
| Number of actuators. | |
| double * | _fsp |
| Work array for storing forces, speeds, or powers. | |
| rdStorage * | _forceStore |
| Force storage. | |
| rdStorage * | _speedStore |
| Speed storage. | |
| rdStorage * | _powerStore |
| Power storage. | |
Private Member Functions | |
| void | setNull () |
| Set NULL values for all member variables. | |
| void | constructDescription () |
| Construct the description for the kinematics files. | |
| void | constructColumnLabels () |
| Construct the column labels for the kinematics files. | |
| void | allocateStorage () |
| Allocate storage for the kinematics. | |
| void | deleteStorage () |
| Delete storage objects. | |
|
|
Construct an suActuation object for recording the kinematics of a model's generalized coodinates 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 force storage.
|
|
|
Get the power storage.
|
|
|
Get the speed 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