org.vizzini.math.ode
Class DynamicStateODE
java.lang.Object
org.vizzini.math.ode.AbstractODE
org.vizzini.math.ode.DynamicStateODE
- All Implemented Interfaces:
- IODE
public class DynamicStateODE
- extends AbstractODE
Provides an ordinary differential equation for a IDynamicState
.
Dependent variables and their indices are:
- velocity x
- velocity y
- velocity z
- angular velocity x
- angular velocity y
- angular velocity z
- angular velocity q
- mass velocity
- position x
- position y
- position z
- orientation x
- orientation y
- orientation z
- orientation q
- mass
- Since:
- v0.3
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicStateODE
public DynamicStateODE(IDynamicState dynamicState)
- Construct this object with the given parameter.
- Parameters:
dynamicState
- Dynamic state. (required)- Since:
- v0.3
getDynamicState
public IDynamicState getDynamicState()
- Returns:
- Return dynamicState.
- Since:
- v0.3
getRightHandSide
public double[] getRightHandSide(double s,
double[] q,
double ds,
double[] deltaQ,
double qScale)
- Returns the right-hand side of the ODEs.
- Parameters:
s
- Independent variable value.q
- Dependent variables values.ds
- Delta value of the independent variable.deltaQ
- Delta values of the dependent variables.qScale
- Scale value for the dependent variables.- Since:
- v0.3
updatePostProcess
public void updatePostProcess()
- Perform update post-processing. Update the values in the dynamic state.
- Specified by:
updatePostProcess
in interface IODE
- Overrides:
updatePostProcess
in class AbstractODE
- Since:
- v0.3
setDynamicState
protected void setDynamicState(IDynamicState dynamicState)
- Parameters:
dynamicState
- the dynamicState to set- Since:
- v0.3
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |