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 | vsp::AddExcrescence (const std::string &excresName, const int &excresType, const double &excresVal) |
| int | vsp::GetNumExcrescences () |
| void | vsp::DeleteAllExcrescences () |
| void | vsp::UpdateParasiteDrag () |
| std::string | vsp::ExportParasiteDragToCSV (const std::string &file_name) |
| void | vsp::WriteAtmosphereCSVFile (const std::string &file_name, const int &atmos_type) |
| void | vsp::CalcAtmosphere (const double &alt, const double &delta_temp, const int &atmos_type, double &temp, double &pres, double &pres_ratio, double &rho_ratio) |
| void | vsp::WriteBodyFFCSVFile (const std::string &file_name) |
| void | vsp::WriteWingFFCSVFile (const std::string &file_name) |
| void | vsp::WriteCfEqnCSVFile (const std::string &file_name) |
| void | vsp::WritePartialCfMethodCSVFile (const std::string &file_name) |
|
extern |
Add an Excresence to the Parasite Drag Tool
| [in] | excresName | string Name of the Excressence |
| [in] | excresType | int Excressence type enum (i.e. EXCRESCENCE_PERCENT_GEOM) |
| [in] | excresVal | double Excressence value |
|
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.
| [in] | alt | double Altitude |
| [in] | delta_temp | double Deviation in temperature from the value specified in the atmospheric model |
| [in] | atmos_type | int Atmospheric model enum (i.e. ATMOS_TYPE_HERRINGTON_1966) |
| [out] | temp | double output Temperature |
| [out] | pres | double output Pressure |
| [out] | pres_ratio | double Output pressure ratio |
| [out] | rho_ratio | double Output density ratio |
|
extern |
Delete all Excresences from the Parasite Drag Tool
|
extern |
Write the Parasite Drag Tool buildup table out to a CSV file, the way the Export CSV button on the tool does. The same table is also placed in the Results Manager under the name "Parasite_Drag", so the returned ID gives access to it without going through the file.
| [in] | file_name | string Name of the CSV file to write |
|
extern |
Delete an Excresence from the Parasite Drag Tool
| [in] | index | int Index of the Excressence to delete |
Get the number of Excresences in the Parasite Drag Tool
|
extern |
Update any reference geometry, atmospheric properties, excressences, etc. in the Parasite Drag Tool
|
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
| [in] | file_name | string Output CSV file |
| [in] | atmos_type | int Atmospheric model enum (i.e. ATMOS_TYPE_HERRINGTON_1966) |
|
extern |
Calculate the form factor from each body FF equation (i.e. Hoerner Streamlined Body) and write the results to a CSV output file
| [in] | file_name | string Output CSV file |
|
extern |
Calculate the coefficient of friction from each Cf equation (i.e. Power Law Blasius) and write the results to a CSV output file
| [in] | file_name | string Output CSV file |
|
extern |
Calculate the partial coefficient of friction and write the results to a CSV output file
| [in] | file_name | string Output CSV file |
|
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
| [in] | file_name | string Output CSV file |