fr.cnes.genopus.nonWidget.vehicle.aeroCoeffs
Class CustomAeroCoeffByMach

java.lang.Object
  extended by fr.cnes.genopus.nonWidget.vehicle.aeroCoeffs.CustomAeroCoeffByOneVarAbstract
      extended by fr.cnes.genopus.nonWidget.vehicle.aeroCoeffs.CustomAeroCoeffByMach
All Implemented Interfaces:
Serializable, org.orekit.parameter.IParamDiffFunction, org.orekit.parameter.IParameterizable, org.orekit.parameter.IParameterizableFunction

public class CustomAeroCoeffByMach
extends CustomAeroCoeffByOneVarAbstract

Aerodynamic coefficient as a function of the mach number.

Author:
sumelzi
See Also:
Serialized Form

Constructor Summary
CustomAeroCoeffByMach(Double[] xVariable, Double[] yVariable, org.orekit.forces.atmospheres.Atmosphere atmosphere)
          Creates a new instance entering the x and y variables as doubles.
 
Method Summary
protected  double computeXVariable(org.orekit.propagation.SpacecraftState state)
          Computes the x variable from the spacecraft state.
protected static double machFromSpacecraftState(org.orekit.propagation.SpacecraftState state, org.orekit.forces.atmospheres.Atmosphere atmosphere)
          Computes the mach number from the spacecraft state and an atmosphere model.
 
Methods inherited from class fr.cnes.genopus.nonWidget.vehicle.aeroCoeffs.CustomAeroCoeffByOneVarAbstract
derivativeValue, extendedVectorY, getFunction, getParameters, getXArray, getYArray, isDifferentiableBy, supportsParameter, toString, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomAeroCoeffByMach

public CustomAeroCoeffByMach(Double[] xVariable,
                             Double[] yVariable,
                             org.orekit.forces.atmospheres.Atmosphere atmosphere)
Creates a new instance entering the x and y variables as doubles.

Parameters:
xVariable - array of x variables (mach number)
yVariable - array of y variables (aerodynamic coefficient)
atmosphere - atmosphere model
Method Detail

computeXVariable

protected double computeXVariable(org.orekit.propagation.SpacecraftState state)
                           throws NonWidgetException
Computes the x variable from the spacecraft state.

Specified by:
computeXVariable in class CustomAeroCoeffByOneVarAbstract
Parameters:
state - the spacecraft state
Returns:
the x variable
Throws:
NonWidgetException - if the transformation from state frame to ITRF cannot be computed

machFromSpacecraftState

protected static double machFromSpacecraftState(org.orekit.propagation.SpacecraftState state,
                                                org.orekit.forces.atmospheres.Atmosphere atmosphere)
                                         throws NonWidgetException
Computes the mach number from the spacecraft state and an atmosphere model.

Parameters:
state - the spacecraft state
atmosphere - the atmosphere model
Returns:
the mach number
Throws:
NonWidgetException - if the transformation from state frame to ITRF cannot be computed


Copyright © 2017. All rights reserved.