public class ODEStateAndDerivative extends ODEState
Constructor and Description |
---|
ODEStateAndDerivative(double time,
double[] primaryState,
double[] primaryDerivative)
Simple constructor.
|
ODEStateAndDerivative(double time,
double[] primaryState,
double[] primaryDerivative,
double[][] secondaryState,
double[][] secondaryDerivative)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCompleteDerivative()
Get complete derivative at time.
|
double[] |
getPrimaryDerivative()
Get derivative of the primary state at time.
|
double[] |
getSecondaryDerivative(int index)
Get derivative of the secondary state at time.
|
copy, getCompleteState, getCompleteStateDimension, getNumberOfSecondaryStates, getPrimaryState, getPrimaryStateDimension, getSecondaryState, getSecondaryStateDimension, getTime
public ODEStateAndDerivative(double time, double[] primaryState, double[] primaryDerivative)
Calling this constructor is equivalent to call ODEStateAndDerivative(time, state,
derivative, null, null)
.
time
- timeprimaryState
- primary state at timeprimaryDerivative
- derivative of the primary state at timepublic ODEStateAndDerivative(double time, double[] primaryState, double[] primaryDerivative, double[][] secondaryState, double[][] secondaryDerivative)
time
- timeprimaryState
- primary state at timeprimaryDerivative
- derivative of the primary state at timesecondaryState
- state at time (may be null)secondaryDerivative
- derivative of the state at time (may be null)public double[] getPrimaryDerivative()
getSecondaryDerivative(int)
,
getCompleteDerivative()
public double[] getSecondaryDerivative(int index)
index
- index of the secondary set as returned
by ExpandableODE.addSecondaryEquations(SecondaryODE)
(beware index 0 corresponds to primary state, secondary states start at 1)getPrimaryDerivative()
,
getCompleteDerivative()
public double[] getCompleteDerivative()
primary derivative
, followed
by all secondary derivatives
in
increasing index ordergetPrimaryDerivative()
,
getSecondaryDerivative(int)
Copyright © 2016-2021 CS GROUP. All rights reserved.