public class Psimu extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Psimu.StorageType
Enumerate to choose the storage type to use for the results when running in master mode.
|
Constructor and Description |
---|
Psimu(org.orekit.orbits.Orbit initialOrbit,
org.orekit.bodies.ExtendedOneAxisEllipsoid earth,
UserFramesConfsEnum userFramesConfiguration,
AbstractNumericalIntegratorData numericalIntegratorData,
fr.cnes.sirius.patrius.assembly.Assembly assembly,
org.orekit.propagation.MassProvider massModel,
fr.cnes.genopus.nonWidget.forces.CustomForceModels forceModels,
fr.cnes.genopus.nonWidget.maneuvers.CustomManeuverSequence maneuversSeq,
org.orekit.attitudes.AttitudeProvider attitudesSequence)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addForceModel(org.orekit.forces.ForceModel forceModel)
Method to add an external force model to the numerical propagator.
|
fr.cnes.sirius.patrius.assembly.Assembly |
getAssembly()
Get assembly.
|
org.orekit.bodies.ExtendedOneAxisEllipsoid |
getEarth()
Get Earth shape.
|
fr.cnes.genopus.nonWidget.forces.CustomForceModels |
getfModels()
Get force models.
|
org.orekit.orbits.Orbit |
getInitialOrbit()
Get initial orbit.
|
fr.cnes.genopus.nonWidget.maneuvers.CustomManeuverSequence |
getManeuversSequence()
Get maneuvers data.
|
org.orekit.propagation.MassProvider |
getMassModel()
Get the mass model.
|
org.orekit.propagation.numerical.NumericalPropagator |
getNumPropagator()
Get the numerical propagator.
|
double |
getPropagationDuration()
Get propagation duration.
|
org.orekit.propagation.SpacecraftState |
getSpacecraftState(int index)
Get the spacecraft state with the requested index.
|
List<org.orekit.propagation.SpacecraftState> |
getSpacecraftStateList()
Get the list of spacecraft state after a propagation in master mode.
|
void |
printSV(String title,
org.orekit.orbits.Orbit originalOrbit,
org.orekit.frames.Frame outputFrame,
org.orekit.propagation.MassProvider massModel)
Prints the spacecraft state (epoch, frame, mass, Cartesian and Keplerian parameters).
|
void |
propagateInMasterMode(OutputConfig outputConfig,
List<fr.cnes.genopus.nonWidget.events.CustomEventDetector> eventsToDetect,
Psimu.StorageType storageType)
Method to propagate the orbit in IHM mode.
|
org.orekit.propagation.SpacecraftState |
propagateInSlaveMode()
Method to propagate the orbit in slave mode.
|
void |
saveVTSFiles(String outputDir,
String resultName)
Save the VTS files.
|
public Psimu(org.orekit.orbits.Orbit initialOrbit, org.orekit.bodies.ExtendedOneAxisEllipsoid earth, UserFramesConfsEnum userFramesConfiguration, AbstractNumericalIntegratorData numericalIntegratorData, fr.cnes.sirius.patrius.assembly.Assembly assembly, org.orekit.propagation.MassProvider massModel, fr.cnes.genopus.nonWidget.forces.CustomForceModels forceModels, fr.cnes.genopus.nonWidget.maneuvers.CustomManeuverSequence maneuversSeq, org.orekit.attitudes.AttitudeProvider attitudesSequence) throws PsimuException
earth
- earth shape.userFramesConfiguration
- user frames configuration.initialOrbit
- initial orbit to propagatenumericalIntegratorData
- numerical integrator dataassembly
- vehicle assemblymassModel
- mass model.forceModels
- force models.maneuversSeq
- maneouvres sequence.attitudesSequence
- attitude sequence (it might be null if no attitude laws are expected)PsimuException
- in case of problem creating the propagator.public org.orekit.propagation.SpacecraftState propagateInSlaveMode() throws PsimuPropagationException
PsimuPropagationException
- in case the propagation fails.public void propagateInMasterMode(OutputConfig outputConfig, List<fr.cnes.genopus.nonWidget.events.CustomEventDetector> eventsToDetect, Psimu.StorageType storageType) throws PsimuPropagationException
eventsToDetect
- list of events to detect (it might be null if no single events have to be
detected)outputConfig
- output configuration (it might be null for slave mode propagation)storageType
- storage type to save the results.org.orekit.errors.OrekitException
- if some internal error occursIllegalArgumentException
- illegal argument exceptionPsimuPropagationException
- psimu exceptionpublic List<org.orekit.propagation.SpacecraftState> getSpacecraftStateList() throws PsimuException
PsimuException
- if the list does not exist because the propagation has not been performed or
because it was done un FILE storage mode.public org.orekit.propagation.SpacecraftState getSpacecraftState(int index) throws PsimuException
index
- index of the spacecraft state to get.PsimuException
- if the list does not exist because the propagation has not been performed or
because it was done un FILE storage mode.public fr.cnes.genopus.nonWidget.maneuvers.CustomManeuverSequence getManeuversSequence()
public org.orekit.propagation.numerical.NumericalPropagator getNumPropagator()
public org.orekit.propagation.MassProvider getMassModel()
public fr.cnes.genopus.nonWidget.forces.CustomForceModels getfModels()
public org.orekit.orbits.Orbit getInitialOrbit()
public org.orekit.bodies.ExtendedOneAxisEllipsoid getEarth()
public double getPropagationDuration()
public fr.cnes.sirius.patrius.assembly.Assembly getAssembly()
public void printSV(String title, org.orekit.orbits.Orbit originalOrbit, org.orekit.frames.Frame outputFrame, org.orekit.propagation.MassProvider massModel) throws org.orekit.errors.OrekitException
AppPSimu.setVerbose(boolean)
is available to modify it).title
- titleoriginalOrbit
- original orbitoutputFrame
- output framemassModel
- mass modelorg.orekit.errors.OrekitException
- if internal error occurspublic void addForceModel(org.orekit.forces.ForceModel forceModel) throws PsimuException
forceModel
- force model to be added.PsimuException
- if force model is null or if its acceleration cannot be computed.public void saveVTSFiles(String outputDir, String resultName) throws PsimuException
outputDir
- output directory.resultName
- result name to compose the filename.PsimuException
- In case the files cannot be generated.Copyright © 2017. All rights reserved.