OpenVSPAPI  3.19.0
Functions
Parasite Drag Functions

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...

Functions

void AddExcrescence (const string &in excresName, const int &in excresType, const double &in excresVal)
 
void DeleteExcrescence (const int &in excresName)
 
void UpdateParasiteDrag ()
 
void WriteAtmosphereCSVFile (const string &in file_name, const int &in atmos_type)
 
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)
 
void WriteBodyFFCSVFile (const string &in file_name)
 
void WriteWingFFCSVFile (const string &in file_name)
 
void WriteCfEqnCSVFile (const string &in file_name)
 
void WritePartialCfMethodCSVFile (const string &in file_name)
 

Detailed Description

Function Documentation

◆ 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]excresNameName of the Excressence
[in]excresTypeExcressence type enum (i.e. EXCRESCENCE_PERCENT_GEOM)
[in]excresValExcressence 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).

See also
ATMOS_TYPE
Parameters
[in]altAltitude
[in]delta_tempDeviation in temperature from the value specified in the atmospheric model
[in]atmos_typeAtmospheric model enum (i.e. ATMOS_TYPE_HERRINGTON_1966)
[out]tempoutput Temperature
[out]presoutput Pressure
[out]pres_ratioOuput pressure ratio
[out]rho_ratioOutput density ratio

◆ DeleteExcrescence()

void DeleteExcrescence ( const int &in  excresName)

Delete an Excresence from the Parasite Drag Tool

Parameters
[in]excresNameName 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

See also
ATMOS_TYPE
Parameters
[in]file_nameOutput CSV file
[in]atmos_typeAtmospheric 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

Parameters
[in]file_nameOutput 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

Parameters
[in]file_nameOutput 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

Parameters
[in]file_nameOutput 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

Parameters
[in]file_nameOutput CSV file