public class GlobalDragCoefficientProvider extends Object implements DragCoefficientProvider
DragCoefficientProvider
computing aero coefficients
as functions of type TrivariateFunction
.
The service #getCoefficients(Vector3D, AtmosphereData, Assembly)
is
implemented using these functions in which a 3D interpolation (linear or by spline) is performed.
The considered interpolation point has (azimuth, elevation, s) coordinates, s being the velocity factor,
such that :
s2 = || V_rel ||2 / 2r T_atmos
InterpolatedDragReader
Modifier and Type | Class and Description |
---|---|
static class |
GlobalDragCoefficientProvider.INTERP
Enumerate to choose the way to interpolate.
|
Constructor and Description |
---|
GlobalDragCoefficientProvider(GlobalDragCoefficientProvider.INTERP method,
String filePath)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DragCoefficient |
getCoefficients(Vector3D relativeVelocity,
AtmosphereData atmoData,
Assembly assembly)
Provides drag coefficient (x surface).
|
public GlobalDragCoefficientProvider(GlobalDragCoefficientProvider.INTERP method, String filePath) throws IOException, PatriusException
method
- the method chosen for interpolation : could be linear or by splinesfilePath
- absolute path to the file containing the aero coefficientsIOException
- if file could not be read.PatriusException
- thrown if number of input + output in file is not 15 or some lines are missingpublic DragCoefficient getCoefficients(Vector3D relativeVelocity, AtmosphereData atmoData, Assembly assembly)
DragCoefficientProvider
getCoefficients
in interface DragCoefficientProvider
relativeVelocity
- relative velocity of atmosphere with respect to spacecraft in satellite frameatmoData
- atmosphere dataassembly
- assemblyCopyright © 2018 CNES. All Rights Reserved.