Spacecraft Models Package 2.0
Spacecraft Models for DSim
Public Member Functions | Protected Attributes | List of all members
aerodynamics_newtonian Class Reference

Generates a Newtonian flow aerodynamic model using triangles. More...

#include <aerodynamics_newtonian.h>

Inherits dsim_model.

Public Member Functions

 aerodynamics_newtonian (dsim_model_setup *setup)
 Constructor.
 
 ~aerodynamics_newtonian ()
 Destructor.
 
void initialize_data ()
 Create output variables and setup outlets.
 
void initialization_complete ()
 Finish initialization.
 
void initialize_timestep ()
 Pre numerical integration computation.
 
void rhs (double t, double jd)
 Computation done during the right hand side.
 
void complete_timestep ()
 Post numerical integration computation. More...
 
double rankine_hugoniot_factor (double gamma, double m, double p_inf)
 Pressure correction. More...
 

Protected Attributes

dsim_variable force_dsim
 The aerodynamic force.
 
dsim_variable torque_dsim
 The aerodynamic torque.
 
dsim_variable rho_dsim
 The atmospheric density used in the calculation.
 
dsim_variable t_stagnation_dsim
 The stagnation temperature.
 
dsim_variable solarFluxFile_dsim
 Solar flux data file.
 
dsim_variable surface_area_dsim
 Surface area.
 
dsim_variable rotation_axis_dsim
 Rotation axis.
 
dsim_variable normal_dsim
 Normals.
 
dsim_variable centroid_dsim
 Centroids.
 
dsim_variable rotation_angle_dsim
 Rotation angles.
 
dsim_variable parent_position_dsim
 Parent position.
 
dsim_variable parent_velocity_dsim
 Parent velocity.
 
dsim_variable parent_center_of_mass_dsim
 Parent center of mass.
 
dsim_variable parent_quaternion_dsim
 Parent quaternion.
 

Detailed Description

Generates a Newtonian flow aerodynamic model using triangles.

The inputs to this model are a file with vertices and faces. The vertex array is nx3. The face array is mx3. The outward normals are computed using the right-hand-rule based on the face array. The drag coefficients are stored with the face data in the file. The vehicle center-of-mass is a separate input.

The Newtonian model is only applicable above Mach 4. It does not meld smoothly with the continuum model. It includes the Rankine-Hugoniot pressure effects. These add a Mach number effect to the model.

Loads the fixed file /Library/Application Support/VisualCommander/Model Libraries/SolarFluxPredictions.txt

Member Function Documentation

◆ complete_timestep()

void aerodynamics_newtonian::complete_timestep ( )

Post numerical integration computation.

Store values of force and torque at end of timestep.

◆ rankine_hugoniot_factor()

double aerodynamics_newtonian::rankine_hugoniot_factor ( double  gamma,
double  m,
double  p_inf 
)

Pressure correction.

Correction for newtonian flow.

Parameters
gammaRatio of specific heats
mMach number
p_infPressure at infinity
Returns
Maximum pressure coefficient

The documentation for this class was generated from the following files: