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

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

public class CustomAeroCoeffByAoA
extends CustomAeroCoeffByOneVarAbstract

Aerodynamic coefficient function of the spacecraft angle of attack.

Author:
sumelzi
See Also:
Serialized Form

Constructor Summary
CustomAeroCoeffByAoA(Double[] xVariable, Double[] yVariable, org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
          Creates a new instance entering the x and y variables as doubles.
 
Method Summary
protected static double angleOfAttackFromSpacecraftState(org.orekit.propagation.SpacecraftState state, org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
          Computes the angle of attack from the spacecraft state and the Earth shape.
protected  double computeXVariable(org.orekit.propagation.SpacecraftState state)
          Computes the x variable from the spacecraft state.
 
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

CustomAeroCoeffByAoA

public CustomAeroCoeffByAoA(Double[] xVariable,
                            Double[] yVariable,
                            org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
Creates a new instance entering the x and y variables as doubles.

Parameters:
xVariable - array of x variables (angle of attack (rad))
yVariable - array of y variables (aerodynamic coefficient)
earthShape - Earth shape
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 Earth body frame, to topocentric frame or to ITRF frame cannot be computed, or if Side slip angle equals PI/2 or -PI/2 (angle of attack cannot be computed)

angleOfAttackFromSpacecraftState

protected static double angleOfAttackFromSpacecraftState(org.orekit.propagation.SpacecraftState state,
                                                         org.orekit.bodies.ExtendedOneAxisEllipsoid earthShape)
                                                  throws NonWidgetException
Computes the angle of attack from the spacecraft state and the Earth shape.

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


Copyright © 2017. All rights reserved.