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

suBodyIndPowers Class Reference

A class for computing induced segmental powers. More...

#include <suBodyIndPowers.h>

Inheritance diagram for suBodyIndPowers:

suBodyIndAcc suIndAcc rdAnalysis List of all members.

Public Member Functions

 suBodyIndPowers (rdModel *aModel)
 Construct an induced power instance for performing an induced power analysis on the bodies of a model.

 suBodyIndPowers (rdModel *aModel, rdStorage *aStates, rdStorage *aControls, char *aBaseName, char *aDir=NULL, char *aExtension=NULL)
 Construct an induced powers instance from a set of force decomposition files.

virtual ~suBodyIndPowers ()
 Destructor.

virtual void setStorageCapacityIncrements (int aIncrement)
 Set the capacity increments of all storage instances.

int computeBodyPowers ()
 Compute the induced powers of the bodies of a model from a force decomposition and a set of states.

void sumPowerResults ()
 Sum the power results.

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


Protected Attributes

rdStorage ** _powerStore

Private Member Functions

void constructDescription ()
 Construct a description for the body powers files.

void constructColumnLabels ()
 Construct column labels for the body powers files.

void allocateStoragePointers ()
 Allocate storage pointers for the induced powers of the bodies.

void allocateStorage ()
 Allocate storage.

void deleteStorage ()
 Delete storage objects.


Detailed Description

A class for computing induced segmental powers.

Author:
Frank C. Anderson, Saryn R. Goldberg
Version:
1.0


Constructor & Destructor Documentation

suBodyIndPowers::suBodyIndPowers rdModel aModel  ) 
 

Construct an induced power instance for performing an induced power analysis on the bodies of a model.

Parameters:
aModel Model on which the analyses are to be performed.

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

Construct an induced powers instance from a set of force decomposition files.

Note that the induced accelerations are not read in from file. The induced accelerations are recomputed based on the force decomposition.

Parameters:
aModel Model on which the analyses were performed.
aStates Set of model states.
aBaseName Base name for the force decompositon files.
aDir Directory in which the results reside.
aExtension File extension.


Member Function Documentation

int suBodyIndPowers::computeBodyPowers  ) 
 

Compute the induced powers of the bodies of a model from a force decomposition and a set of states.

Returns:
0 on success, -1 on error.

int suBodyIndPowers::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 suBodyIndAcc.

void suBodyIndPowers::setStorageCapacityIncrements int  aIncrement  )  [virtual]
 

Set the capacity increments of all storage instances.

Parameters:
aIncrement Increment by which storage capacities will be increased when storage capcities run out.

Reimplemented from suBodyIndAcc.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:13 2003 for Simulation Software by doxygen1.3