|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sirius.patrius.assembly.models.MassModel
public class MassModel
This class represents a mass model for an assembly with parts that have mass properties.
Note : when using this model within a propagation, it is necessary to feed the
additional equations to the propagator.
This has to be done prior to any propagation, to allow this model to account
mass variations (i.e. due to maneuvers),
using the method NumericalPropagator.addMassProviderEquation(org.orekit.propagation.MassProvider)
which will register the additional equation and initialize the initial additional state.
Assembly,
MassProperty,
ImpulseManeuver,
ConstantThrustManeuver| Field Summary |
|---|
| Fields inherited from interface org.orekit.propagation.MassProvider |
|---|
MASS |
| Constructor Summary | |
|---|---|
MassModel(Assembly assembly)
Builds a mass model from an assembly and proceed to a first mass computation. |
|
| Method Summary | |
|---|---|
void |
addMassDerivative(String partName,
double flowRate)
Add the mass derivate of the given part. |
AdditionalEquations |
getAdditionalEquation(String name)
Get the mass equation related to the part. |
List<String> |
getAllPartsNames()
Get the list of the name of the parts. |
double |
getMass(String partName)
Return the mass of the given part. |
double |
getTotalMass()
Return the mass of the spacecraft. |
void |
setMassDerivativeZero(String partName)
Set mass derivative to zero. |
void |
updateMass(String partName,
double newMass)
Update the mass of the given part. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MassModel(Assembly assembly)
assembly - the assembly| Method Detail |
|---|
public double getTotalMass()
getTotalMass in interface MassProviderpublic double getMass(String partName)
getMass in interface MassProviderpartName - given part
public void updateMass(String partName,
double newMass)
throws OrekitException
updateMass in interface MassProviderpartName - given partnewMass - mass of the given part
OrekitException - thrown if the mass becomes negative (OrekitMessages.SPACECRAFT_MASS_BECOMES_NEGATIVE)
public void addMassDerivative(String partName,
double flowRate)
addMassDerivative in interface MassProviderpartName - name of part subject to mass variationflowRate - flow rate of specified partpublic void setMassDerivativeZero(String partName)
setMassDerivativeZero in interface MassProviderpartName - name of part whose mass derivative is set to zeropublic AdditionalEquations getAdditionalEquation(String name)
getAdditionalEquation in interface MassProvidername - part name
public List<String> getAllPartsNames()
getAllPartsNames in interface MassProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||