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

suIndContactPowers Class Reference

A class for computing the powers delivered to contact elements induced by the individual actuators of a model. More...

#include <suIndContactPowers.h>

Inheritance diagram for suIndContactPowers:

suIndAcc rdAnalysis List of all members.

Public Member Functions

 suIndContactPowers (rdStorage *aContactVelocities, rdModel *aModel, rdStorage *aStates, rdStorage *aControls, char *aBaseName, char *aDir=NULL, char *aExtension=NULL)
 Construct an induced contact powers object based on a set of contact point velocities, model states, and a contact force decomposition.

virtual ~suIndContactPowers ()
 Destructor.

rdStoragegetContactVelocities ()
 Get the contact velocities.

void computeContactPowers ()
 Compute induced contact powers.

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


Protected Attributes

rdStorage_velStore
 Storge for the velocities of the contact points.

rdStorage ** _pwrStore
 Storage for the computed induced contact powers.


Private Member Functions

void setNull ()
 Set member variables to approprate NULL values.

void constructDescription ()
 Construct a description.

void constructColumnLabels ()
 Construct the column labels.

void allocateStoragePointers ()
 Allocate storage pointers for the contact powers.

void allocateStorage ()
 Allocate storage for the decomposition.

void deleteStorage ()
 Delete storage objects.


Detailed Description

A class for computing the powers delivered to contact elements induced by the individual actuators of a model.

This analysis depends on a valid contact force decomposition and the velocities of the contact points, both expressed in the global frame.

This class is derived from suIndContactPowers, which holds model states and the contact force decomposition.

Author:
Frank C. Anderson
Version:
1.0


Constructor & Destructor Documentation

suIndContactPowers::suIndContactPowers rdStorage aContactVelocities,
rdModel aModel,
rdStorage aStates,
rdStorage aControls,
char *  aBaseName,
char *  aDir = NULL,
char *  aExtension = NULL
 

Construct an induced contact powers object based on a set of contact point velocities, model states, and a contact force decomposition.

Parameters:
aContactVelocities Velocities of the contact point expressed in the global frame. See class suContact.
aModel Model on which the simulation was run.
aStates Set of model states.
aBaseName Base name for the force decompositon files. If NULL, accelerations are computed based on a NULL decompostion.
aDir Directory in which the results reside.
aExtension File extension of the force decomposition files.
See also:
suContact, suIndAcc


Member Function Documentation

rdStorage * suIndContactPowers::getContactVelocities  ) 
 

Get the contact velocities.

Returns:
Contact velocities.

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


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