CATEGORII DOCUMENTE |
Asp | Autocad | C | Dot net | Excel | Fox pro | Html | Java |
Linux | Mathcad | Photoshop | Php | Sql | Visual studio | Windows | Xml |
Table 7 lists the initial condition functions, which set or return the starting time and initial conditions for the integration. Note that the final integration time is set by the last value of the SetTOut( output function.
Table 7 Initial Condition Functions.
Function |
Description |
SetT0 |
Sets the integration starting time. |
SetICs |
Sets the initial conditions for the states. |
GetT0 |
Returns the currently defined starting time. |
GetICs |
Returns the currently defined initial conditions. |
pInteg->SetT0();
pInteg->SetT0(t0);
Variable |
Type |
Description |
t0 |
double |
(Optional). Initial time for the integration. Default: 0.0. |
None.
The initial starting time must be consistent with the requested output times specified in SetTOut( , which must have been called first. You can use this routine to specify a start time before the first requested output time, integrating for some period before keeping track of output (such as to allow a transient to damp out). Note that you do not need to call this routine if you wish to start at the first requested TOut - t0 is set automatically for you. Also, if you call SetTOut( again, the initial time will be reset in that routine.
pInteg->SetICs();
pInteg->SetICs(cvICs);
pInteg->SetICs(faICs, iNumICs);
Variable |
Type |
Description |
cvICs |
colvec |
Column vector of initial conditions, same size as the state vector. Default: kNullVec. |
faICs |
double* |
Double array of initial conditions. |
iNumICs |
int |
Number of elements in faICs. |
None.
This function sets the initial conditions for the state vector. If the size of the column vector or the number of elements in the array do not match the size of the state vector, the ODE is checked for default values. If none are available, an error is returned.
t0 = pInteg->GetT0();
None.
Type |
Description |
double |
Initial integration time. |
None.
cvICs = pInteg->GetICs();
None.
Type |
Description |
colvec |
Initial conditions of the state vector. |
This function returns the initial value of the state vector as a column vector, even if the array form was used to set the values.
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 700
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved