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

Public Member Functions | |
| suContact (rdModel *aModel, int *aCOPGroups=NULL) | |
| Construct an suContact object for recording the various qunatities associates with contact. | |
| virtual | ~suContact () |
| Destructor. | |
| const char * | getScalarColumnLabels () const |
| Get the column labels for scalar variables such as contact powers. | |
| const char * | getCOPColumnLabels () const |
| Get the column labels for COP groups. | |
| rdStorage * | getPointsStorage () const |
| Get the contact points storage. | |
| rdStorage * | getVelocityStorage () const |
| Get the contact point velocity storage. | |
| rdStorage * | getForceStorage () const |
| Get the force storage. | |
| rdStorage * | getPowerStorage () const |
| Get the power storage. | |
| rdStorage * | getCOPStorage () const |
| Get the cop storage. | |
| void | setStorageCapacityIncrements (int aIncrement) |
| Set the capacity increments of all storage instances. | |
| 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 contact quantities. | |
| void | resetStorage () |
| Reset all storage objects. | |
Protected Attributes | |
| double * | _points |
| Array of contact points. | |
| double * | _velocities |
| Array of contact velocities. | |
| double * | _forces |
| Array of contact forces. | |
| double * | _powers |
| Array of contact powers. | |
| double * | _cops |
| Array of cop locations (x and z direction for each contact point). | |
| rdStorage * | _pStore |
| Storage for the contact points. | |
| rdStorage * | _vStore |
| Storage for the contact point velocities. | |
| rdStorage * | _fStore |
| Storage for the contact forces. | |
| rdStorage * | _pwrStore |
| Storage for contact powers. | |
| rdStorage * | _copsStore |
| Storage for cop. | |
Private Member Functions | |
| void | setNull () |
| Set NULL values for member variables. | |
| void | constructDescription () |
| Construct a description. | |
| void | constructColumnLabels (int nCOPgroups) |
| Get a string of column labels. | |
| void | allocateStorage () |
| Allocate storage for the kinematics. | |
| void | deleteStorage () |
| Delete storage objects. | |
Private Attributes | |
| char | _scalarLabels [rdAnalysis_DESCRIP_LENGTH] |
| char | _copLabels [rdAnalysis_DESCRIP_LENGTH] |
| int * | _copGroupAssignments |
| Array containing group assignemnts for each contact point in COP calc *. | |
| int | _nCOPGroups |
| Number of COP groups *. | |
This class will record only the forces (and torques) returned by the getContactForces() method of rdModel.
|
||||||||||||
|
Construct an suContact object for recording the various qunatities associates with contact.
|
|
||||||||||||||||||||||||||||||||||||
|
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 column labels for COP groups.
|
|
|
Get the cop storage.
|
|
|
Get the force storage.
|
|
|
Get the contact points storage.
|
|
|
Get the power storage.
|
|
|
Get the column labels for scalar variables such as contact powers.
|
|
|
Get the contact point velocity storage.
|
|
||||||||||||||||||||
|
Print results. The file names are constructed as aDir + "/" + aBaseName + "_" + ComponentName + aExtension
Reimplemented from rdAnalysis. |
|
|
Reset all storage objects. That is, delete all internally stored data so that new data may be stored. |
|
|
Set the capacity increments of all storage instances.
|
1.3