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 vsp::AddExcrescence |
( |
const std::string & | excresName, |
|
|
const int & | excresType, |
|
|
const double & | excresVal ) |
|
extern |
Add an Excresence to the Parasite Drag Tool
void AddExcrescence(const std::string &excresName, const int &excresType, const double &excresVal)
- 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 vsp::CalcAtmosphere |
( |
const double & | alt, |
|
|
const double & | delta_temp, |
|
|
const int & | atmos_type, |
|
|
double & | temp, |
|
|
double & | pres, |
|
|
double & | pres_ratio, |
|
|
double & | rho_ratio ) |
|
extern |
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;
@ ATMOS_TYPE_US_STANDARD_1976
void CalcAtmosphere(const double &alt, const double &delta_temp, const int &atmos_type, double &temp, double &pres, double &pres_ratio, double &rho_ratio)
- 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 | Output pressure ratio |
[out] | rho_ratio | Output density ratio |
◆ DeleteExcrescence()
void vsp::DeleteExcrescence |
( |
const int & | index | ) |
|
|
extern |
Delete an Excresence from the Parasite Drag Tool
@ EXCRESCENCE_PERCENT_GEOM
void DeleteExcrescence(const int &index)
- Parameters
-
[in] | index | int Index of the Excressence to delete |
◆ UpdateParasiteDrag()
void vsp::UpdateParasiteDrag |
( |
| ) |
|
|
extern |
Update any reference geometry, atmospheric properties, excressences, etc. in the Parasite Drag Tool
◆ WriteAtmosphereCSVFile()
void vsp::WriteAtmosphereCSVFile |
( |
const std::string & | file_name, |
|
|
const int & | atmos_type ) |
|
extern |
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" );
@ ATMOS_TYPE_HERRINGTON_1966
void WriteAtmosphereCSVFile(const std::string &file_name, const int &atmos_type)
- 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 vsp::WriteBodyFFCSVFile |
( |
const std::string & | file_name | ) |
|
|
extern |
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" );
void WriteBodyFFCSVFile(const std::string &file_name)
- Parameters
-
[in] | file_name | Output CSV file |
◆ WriteCfEqnCSVFile()
void vsp::WriteCfEqnCSVFile |
( |
const std::string & | file_name | ) |
|
|
extern |
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" );
void WriteCfEqnCSVFile(const std::string &file_name)
- Parameters
-
[in] | file_name | Output CSV file |
◆ WritePartialCfMethodCSVFile()
void vsp::WritePartialCfMethodCSVFile |
( |
const std::string & | file_name | ) |
|
|
extern |
Calculate the partial coefficient of friction and write the results to a CSV output file
Print( "Starting Partial Friction Method Data Creation. \n" );
void WritePartialCfMethodCSVFile(const std::string &file_name)
- Parameters
-
[in] | file_name | Output CSV file |
◆ WriteWingFFCSVFile()
void vsp::WriteWingFFCSVFile |
( |
const std::string & | file_name | ) |
|
|
extern |
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" );
void WriteWingFFCSVFile(const std::string &file_name)
- Parameters
-
[in] | file_name | Output CSV file |