public class MassEquation extends Object implements AdditionalEquations
MassProvider
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
PREFIX
Default prefix for mass equation
|
Constructor and Description |
---|
MassEquation(String partName)
Create a new mass equation, for a given part.
|
Modifier and Type | Method and Description |
---|---|
void |
addMassDerivative(double flow)
Set the flow rate.
|
void |
computeDerivatives(SpacecraftState s,
TimeDerivativesEquations adder)
Compute the derivatives related to the additional state parameters.
|
static String |
genName(String name)
Generate a name in the form "MASS_
|
String |
getName()
Get the name of the additional equation.
|
void |
setMassDerivativeZero()
Set the flow rate to zero.
|
public static final String PREFIX
public MassEquation(String partName)
partName
- name of part subject to this equationpublic String getName()
getName
in interface AdditionalEquations
public void computeDerivatives(SpacecraftState s, TimeDerivativesEquations adder) throws PatriusException
computeDerivatives
in interface AdditionalEquations
s
- current state information: date, kinematics, attitude, additional statesadder
- object where the contribution of the additional parameters
to the orbit evolution (accelerations) should be addedPatriusException
- if some specific error occurspublic void setMassDerivativeZero()
public void addMassDerivative(double flow)
flow
- rateCopyright © 2019 CNES. All rights reserved.