fr.cnes.genopus.nonWidget.vehicle
Class CustomAerodynamicProperties

java.lang.Object
  extended by fr.cnes.genopus.nonWidget.vehicle.CustomAerodynamicProperties

public class CustomAerodynamicProperties
extends Object

This class defines an aerodynamic property to be applyied to aerodynamic parts of a vehicle (PATRIUS assembly). It has a dual nature, actually it is either an AeroGlobalProperty or an AeroSphereProperty depending on the constructor used.

Author:
ffsm

Nested Class Summary
static class CustomAerodynamicProperties.CoeffFunctionTypes
          Enum of available ways to define aerodynamic coefficients.
 
Constructor Summary
CustomAerodynamicProperties(CustomSphere sphere, double dragCoef)
          Creates a new instance for a spherical shape and drag constant value (lift is zero).
CustomAerodynamicProperties(CustomSphere sphere, org.orekit.parameter.IParamDiffFunction dragCoef, org.orekit.parameter.IParamDiffFunction liftCoef)
          Creates a new instance for a spherical shape and drag and lift functions.
CustomAerodynamicProperties(CustomVehicleSurfaceModel vehicleSurface, double dragCoef, double liftCoef)
          Creates a new instance for a generic vehicle shape and drag and lift constant values.
 
Method Summary
 double getConstantDragCoef()
          Get the drag coefficient.
 double getConstantLiftCoef()
          Get the lift coefficient.
 org.orekit.parameter.IParamDiffFunction getDragCoef()
          Get the drag coefficient.
 CustomAerodynamicProperties.CoeffFunctionTypes getFunctionType()
          Get the type of the aerodynamic coefficients functions among:
- Coefficients as a function of altitude,
- Coefficients as a function of angle of attack
- Coefficients as a function of mach number
- Coefficients as a function of mach number and angle of attack.
 org.orekit.parameter.IParamDiffFunction getLiftCoef()
          Get the lift coefficient.
 CustomVehicleSurfaceModel getVehicleSurfaceModel()
          Get the surface.
 void setAerodynamicProperties(fr.cnes.sirius.patrius.assembly.AssemblyBuilder builder, String mainPartName, double multiplicativeFactor)
          Set aerodynamic property to a part (it modifies vehicle surface model as a function of the multplicative factor).
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomAerodynamicProperties

public CustomAerodynamicProperties(CustomSphere sphere,
                                   org.orekit.parameter.IParamDiffFunction dragCoef,
                                   org.orekit.parameter.IParamDiffFunction liftCoef)
Creates a new instance for a spherical shape and drag and lift functions.

Parameters:
sphere - the spherical vehicle shape
dragCoef - drag coefficient given as a function of the spacecraftstate
liftCoef - lift coefficient given as a function of the spacecraftstate

CustomAerodynamicProperties

public CustomAerodynamicProperties(CustomVehicleSurfaceModel vehicleSurface,
                                   double dragCoef,
                                   double liftCoef)
Creates a new instance for a generic vehicle shape and drag and lift constant values.

Parameters:
vehicleSurface - the vehicle surface model
dragCoef - constant drag coefficient
liftCoef - constant lift coefficient

CustomAerodynamicProperties

public CustomAerodynamicProperties(CustomSphere sphere,
                                   double dragCoef)
Creates a new instance for a spherical shape and drag constant value (lift is zero).

Parameters:
sphere - the spherical vehicle shape
dragCoef - constant drag coefficient
Method Detail

setAerodynamicProperties

public void setAerodynamicProperties(fr.cnes.sirius.patrius.assembly.AssemblyBuilder builder,
                                     String mainPartName,
                                     double multiplicativeFactor)
                              throws NonWidgetException
Set aerodynamic property to a part (it modifies vehicle surface model as a function of the multplicative factor).

Parameters:
builder - assembly builder
mainPartName - main part name
multiplicativeFactor - the multiplicative factor (applied to the reference surface)
Throws:
NonWidgetException - if an error occurs in aerodynamics properties

getFunctionType

public CustomAerodynamicProperties.CoeffFunctionTypes getFunctionType()
Get the type of the aerodynamic coefficients functions among:
- Coefficients as a function of altitude,
- Coefficients as a function of angle of attack
- Coefficients as a function of mach number
- Coefficients as a function of mach number and angle of attack.

Returns:
the type of function (see CustomAerodynamicProperties.CoeffFunctionTypes enumeration)

getDragCoef

public org.orekit.parameter.IParamDiffFunction getDragCoef()
Get the drag coefficient.

Returns:
the drag coefficient

getConstantLiftCoef

public double getConstantLiftCoef()
                           throws NonWidgetException
Get the lift coefficient.

Returns:
the lift coefficient
Throws:
NonWidgetException - if the lift coefficient is not constant (use getLiftCoef() instead)

getLiftCoef

public org.orekit.parameter.IParamDiffFunction getLiftCoef()
Get the lift coefficient.

Returns:
the lift coefficient

getVehicleSurfaceModel

public CustomVehicleSurfaceModel getVehicleSurfaceModel()
Get the surface.

Returns:
the surface

getConstantDragCoef

public double getConstantDragCoef()
                           throws NonWidgetException
Get the drag coefficient.

Returns:
the drag coefficient
Throws:
NonWidgetException - if the drag coefficient is not constant (use getDragCoef() instead)

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017. All rights reserved.