This group of API functions is supplemental to performing a Paraste Drag analysis through the Analysis Manager. They include functions to write out Parasite Drag Tool equations, calculate atmospheric properties, and control excrescences.
Click here to return to the main page.
More...
◆ AddExcrescence()
void AddExcrescence |
( |
const string &in |
excresName, |
|
|
const int &in |
excresType, |
|
|
const double &in |
excresVal |
|
) |
| |
Add an Excresence to the Parasite Drag Tool
- See also
- EXCRES_TYPE
- Parameters
-
[in] | excresName | Name of the Excressence |
[in] | excresType | Excressence type enum (i.e. EXCRESCENCE_PERCENT_GEOM) |
[in] | excresVal | Excressence value |
◆ CalcAtmosphere()
void CalcAtmosphere |
( |
const double &in |
alt, |
|
|
const double &in |
delta_temp, |
|
|
const int &in |
atmos_type, |
|
|
double &out |
temp, |
|
|
double &out |
pres, |
|
|
double &out |
pres_ratio, |
|
|
double &out |
rho_ratio |
|
) |
| |
Calculate the atmospheric properties determined by a specified model at input altitude and temperature deviation. This function may not be used for any manual atmospheric model types (i.e. ATMOS_TYPE_MANUAL_P_T). This function assumes freestream units are metric, temperature units are Kelvin, and pressure units are kPA.
double temp, pres, pres_ratio, rho_ratio;
double alt = 4000;
double delta_temp = 0;
- See also
- ATMOS_TYPE
- Parameters
-
[in] | alt | Altitude |
[in] | delta_temp | Deviation in temperature from the value specified in the atmospheric model |
[in] | atmos_type | Atmospheric model enum (i.e. ATMOS_TYPE_HERRINGTON_1966) |
[out] | temp | output Temperature |
[out] | pres | output Pressure |
[out] | pres_ratio | Ouput pressure ratio |
[out] | rho_ratio | Output density ratio |
◆ DeleteExcrescence()
void DeleteExcrescence |
( |
const int &in |
excresName | ) |
|
Delete an Excresence from the Parasite Drag Tool
- Parameters
-
[in] | excresName | Name of the Excressence |
◆ UpdateParasiteDrag()
void UpdateParasiteDrag |
( |
| ) |
|
Update any refernce geometry, atmospheric properties, excressences, etc. in the Parasite Drag Tool
◆ WriteAtmosphereCSVFile()
void WriteAtmosphereCSVFile |
( |
const string &in |
file_name, |
|
|
const int &in |
atmos_type |
|
) |
| |
Calculate the atmospheric properties determined by a specified model for a preset array of altitudes ranging from 0 to 90000 m and write the results to a CSV output file
Print(
"Starting USAF Atmosphere 1966 Table Creation. \n" );
- See also
- ATMOS_TYPE
- Parameters
-
[in] | file_name | Output CSV file |
[in] | atmos_type | Atmospheric model enum (i.e. ATMOS_TYPE_HERRINGTON_1966) |
◆ WriteBodyFFCSVFile()
void WriteBodyFFCSVFile |
( |
const string &in |
file_name | ) |
|
Calculate the form factor from each body FF equation (i.e. Hoerner Streamlined Body) and write the results to a CSV output file
Print(
"Starting Body Form Factor Data Creation. \n" );
- Parameters
-
[in] | file_name | Output CSV file |
◆ WriteCfEqnCSVFile()
void WriteCfEqnCSVFile |
( |
const string &in |
file_name | ) |
|
Calculate the coefficient of friction from each Cf equation (i.e. Power Law Blasius) and write the results to a CSV output file
Print(
"Starting Turbulent Friciton Coefficient Data Creation. \n" );
- Parameters
-
[in] | file_name | Output CSV file |
◆ WritePartialCfMethodCSVFile()
void WritePartialCfMethodCSVFile |
( |
const string &in |
file_name | ) |
|
Calculate the partial coefficient of friction and write the results to a CSV output file
Print(
"Starting Partial Friction Method Data Creation. \n" );
- Parameters
-
[in] | file_name | Output CSV file |
◆ WriteWingFFCSVFile()
void WriteWingFFCSVFile |
( |
const string &in |
file_name | ) |
|
Calculate the form factor from each wing FF equation (i.e. Schemensky 4 Series Airfoil) and write the results to a CSV output file
Print(
"Starting Wing Form Factor Data Creation. \n" );
- Parameters
-
[in] | file_name | Output CSV file |