fr.cnes.sirius.patrius.assembly.properties
Class MassEquation

java.lang.Object
  extended by fr.cnes.sirius.patrius.assembly.properties.MassEquation
All Implemented Interfaces:
Serializable, AdditionalEquations

public class MassEquation
extends Object
implements AdditionalEquations

This class represents the mass equation with a name in the form "MASS_".

Version:
$Id: MassEquation.java 11945 2015-01-12 17:39:31Z bignon $
See Also:
MassProvider, Serialized Form
Concurrency :
not thread-safe
Concurrency comment :
internal mutable attributes

Field Summary
static String PREFIX
          Default prefix for mass equation
 
Constructor Summary
MassEquation(String partName, MassProperty property)
          Create a new mass equation, for a given part.
 
Method Summary
 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_" for this equation.
 String getName()
          Get the name of the additional equation.
 void setMassDerivativeZero()
          Set the flow rate to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
Default prefix for mass equation

See Also:
Constant Field Values
Constructor Detail

MassEquation

public MassEquation(String partName,
                    MassProperty property)
Create a new mass equation, for a given part. The name of the created equation is set by default in the following form : "MASS_".

Parameters:
partName - name of part subject to this equation
property - mass property
Method Detail

getName

public String getName()
Get the name of the additional equation. The name is in the following form : "MASS_".

Specified by:
getName in interface AdditionalEquations
Returns:
name of the additional equation with the prefix "MASS_"

computeDerivatives

public void computeDerivatives(SpacecraftState s,
                               TimeDerivativesEquations adder)
                        throws OrekitException
Compute the derivatives related to the additional state parameters.

Specified by:
computeDerivatives in interface AdditionalEquations
Parameters:
s - current state information: date, kinematics, attitude, additional states
adder - object where the contribution of the additional parameters to the orbit evolution (accelerations) should be added
Throws:
OrekitException - if some specific error occurs

setMassDerivativeZero

public void setMassDerivativeZero()
Set the flow rate to zero.

Since:
2.3.1

addMassDerivative

public void addMassDerivative(double flow)
Set the flow rate.

Parameters:
flow - rate

genName

public static String genName(String name)
Generate a name in the form "MASS_" for this equation.

Parameters:
name - part name
Returns:
full name of the equation


Copyright © 2016 CNES. All Rights Reserved.