public class AeroCrossSectionProperty extends Parameterizable implements IPartProperty
Modifier and Type | Field and Description |
---|---|
static String |
C_X
Default drag force coefficient parameter name.
|
static double |
DEFAULT_C_X
Default normal force coefficient value.
|
Constructor and Description |
---|
AeroCrossSectionProperty(CrossSectionProvider shape)
Constructor of this property with default value for C_X.
|
AeroCrossSectionProperty(CrossSectionProvider shape,
double dragCoef)
Constructor of this property giving the drag coef.
|
AeroCrossSectionProperty(CrossSectionProvider shape,
IParamDiffFunction dragCoefFct)
Constructor of this property defining the drag coef as a
IParamDiffFunction . |
AeroCrossSectionProperty(CrossSectionProvider shape,
Parameter dragCoefFct)
Constructor of this property defining the drag coef as a
IParamDiffFunction . |
Modifier and Type | Method and Description |
---|---|
double |
getCrossSection(SpacecraftState state,
Vector3D relativeVelocity,
Frame mainPartFrame,
Frame partFrame)
Compute the cross section of main shape using the relative velocity in the
part (having the aero property) frame as the direction to provider to the
CrossSectionProvider.getCrossSection(Vector3D) . |
IParamDiffFunction |
getDragForce()
Get the drag force coefficient parametrizable function.
|
double |
getDragForceDerivativeValue(Parameter parameter,
SpacecraftState s)
Get the drag force coefficient derivative value with respect to the given parameter.
|
PropertyType |
getType()
Get the type of the property.
|
addAllParameters, addAllParameters, addParameter, getParameters, supportsParameter
public static final double DEFAULT_C_X
public static final String C_X
public AeroCrossSectionProperty(CrossSectionProvider shape)
shape
- the main shapepublic AeroCrossSectionProperty(CrossSectionProvider shape, double dragCoef)
shape
- the main shapedragCoef
- The dragCoef.public AeroCrossSectionProperty(CrossSectionProvider shape, Parameter dragCoefFct)
IParamDiffFunction
.shape
- the main shapedragCoefFct
- The dragCoef parameterizable function.public AeroCrossSectionProperty(CrossSectionProvider shape, IParamDiffFunction dragCoefFct)
IParamDiffFunction
.shape
- the main shapedragCoefFct
- The dragCoef parameterizable function.public double getCrossSection(SpacecraftState state, Vector3D relativeVelocity, Frame mainPartFrame, Frame partFrame) throws PatriusException
CrossSectionProvider.getCrossSection(Vector3D)
.state
- the current state of the spacecraftrelativeVelocity
- the spacecraft velocity relative to the atmosphere in state frame.mainPartFrame
- main framepartFrame
- frame of part owning the propertyPatriusException
- if some frame specific error occurspublic PropertyType getType()
getType
in interface IPartProperty
public double getDragForceDerivativeValue(Parameter parameter, SpacecraftState s)
parameter
- the parameters
- the current statepublic IParamDiffFunction getDragForce()
Copyright © 2023 CNES. All rights reserved.