#include <rdManager.h>
Public Member Functions | |
| virtual | ~rdManager () |
| Destructor. | |
| rdManager (rdModel *model, rdControlSet *aControlSet=NULL) | |
| Construct a simulation manager. | |
| void | setSessionName (const char *name) |
| Set the session name of this rdManager instance. | |
| const char * | getSessionName () const |
| Get the session name of this rdManager instance. | |
| rdModel * | getModel () const |
| Get the model. | |
| rdControlSet * | setControlSet (rdControlSet *aControlSet) |
| Set a control set for use during a dynamic simulation. | |
| rdControlSet * | getControlSet () const |
| Get the control set. | |
| rdIntegRKF * | getIntegrator () const |
| Get the integrator. | |
| void | setInitialTime (double aTI) |
| Set the initial time of the simulation. | |
| double | getInitialTime () const |
| Get the initial time of the simulation. | |
| void | setFinalTime (double aTF) |
| Set the final time of the simulation. | |
| double | getFinalTime () const |
| Get the final time of the simulation. | |
| void | setFirstDT (double aDT) |
| Set the first time step taken in an integration. | |
| double | getFirstDT () const |
| Get the first time step taken in an integration. | |
| bool | initializeStates () |
| Initialize the states for integration. | |
| bool | initializeStates (double *aY, double *aYP=NULL) |
| Initialize the states for integration. | |
| bool | integrate () |
| Integrate the equations of motion for the specified model. | |
| bool | integrate (int startIndex) |
| Integrate the equations of motion for the specified model starting at the states which are stored at the specified index. | |
| bool | integrate (double startTime) |
| Integrate the equations of motion for the specified model starting at the states which occured at or just prior to aStartTime. | |
| rdControlSet * | constructControlSet () |
| Construct a control set for the model. | |
Private Member Functions | |
| void | setNull () |
| Set all member variables to their NULL values. | |
| bool | constructStates () |
| Construct the states. | |
| bool | constructIntegrator () |
| Construct the integrator. | |
| bool | constructStorage () |
| Construct the storage utility. | |
Private Attributes | |
| char | _sessionName [rdObject_NAME_LENGTH] |
| Simulation session name. | |
| rdModel * | _model |
| Model for which the simulation is performed. | |
| int | _ny |
| Number of states. | |
| double * | _y |
| Array of states. | |
| int | _nyp |
| Number of pseudostates. | |
| double * | _yp |
| Array of pseudostates. | |
| rdControlSet * | _controlSet |
| Control set for the simulation. | |
| rdControlSet * | _defaultControlSet |
| Default control set for the simulation. | |
| rdIntegRKF * | _integ |
| Integrator. | |
| double | _ti |
| Initial time of the simulation. | |
| double | _tf |
| Final time of the simulation. | |
| double | _firstDT |
| First dt in an integration. | |
|
||||||||||||
|
Construct a simulation manager.
|
|
|
Construct a control set for the model. All the controls in the set are constructed as rdControlLinear controls. |
|
|
Get the control set.
|
|
|
Get the final time of the simulation.
|
|
|
Get the first time step taken in an integration.
|
|
|
Get the initial time of the simulation.
|
|
||||||||||||
|
Initialize the states for integration. This version sets the states to the specified states and pseudostates.
|
|
|
Initialize the states for integration. This version sets the states and pseudostates to the initial states and pseudostates of the model. |
|
|
Integrate the equations of motion for the specified model starting at the states which occured at or just prior to aStartTime. aStartTime is given in the normalized time units used by the manager and the integrator. The starting states are obtained from storage. If there are no states in storage, the integration begins from the default initial states of the model. Otherwise, the integration starts from the states which are closest to aStartTime, but not after aStartTime. Note that it is not guarranteed that the actual start time will be very close to the requested start time. How close the requested start time is to the actual start time dependes on the resolution of the stored states.
|
|
|
Integrate the equations of motion for the specified model starting at the states which are stored at the specified index. The starting states are obtained from storage. If there are no states in storage, the integration begins from the default initial states of the model. Otherwise, the integration starts from the closest posible index. |
|
|
Integrate the equations of motion for the specified model. This method starts the integration at the initial default states of the model. |
|
|
Set a control set for use during a dynamic simulation. Note that the simulation manager does not delete the control set; the caller is responsible for the memory management of the control set object. For this reason, a pointer to the previous user-specified control set is returned so that the caller can delete the previous user-specified control set if appropriate.
|
|
|
Set the final time of the simulation.
|
|
|
Set the first time step taken in an integration.
|
|
|
Set the initial time of the simulation.
|
|
|
Default control set for the simulation. This control set is used in the event the user specified control set is invalid for some reason. |
1.3