This group of API functions provides capabilities related to the body of revolution (BOR) geometry type in OpenVSP. Click here to return to the main page. More...
Functions | |
| void | vsp::ChangeBORXSecShape (const std::string &bor_id, int type) |
| int | vsp::GetBORXSecShape (const std::string &bor_id) |
| std::vector< vec3d > | vsp::ReadBORFileXSec (const std::string &bor_id, const std::string &file_name) |
| std::vector< vec3d > | vsp::GetBORXSecPnts (const std::string &bor_id) |
| vec3d | vsp::ComputeBORXSecPnt (const std::string &bor_id, double fract) |
| vec3d | vsp::ComputeBORXSecTan (const std::string &bor_id, double fract) |
| void | vsp::ReadBORFileAirfoil (const std::string &bor_id, const std::string &file_name) |
| void | vsp::SetBORAirfoilUpperPnts (const std::string &bor_id, const std::vector< vec3d > &up_pnt_vec) |
| void | vsp::SetBORAirfoilLowerPnts (const std::string &bor_id, const std::vector< vec3d > &low_pnt_vec) |
| void | vsp::SetBORAirfoilPnts (const std::string &bor_id, const std::vector< vec3d > &up_pnt_vec, const std::vector< vec3d > &low_pnt_vec) |
| std::vector< vec3d > | vsp::GetBORAirfoilUpperPnts (const std::string &bor_id) |
| std::vector< vec3d > | vsp::GetBORAirfoilLowerPnts (const std::string &bor_id) |
| std::vector< double > | vsp::GetBORUpperCSTCoefs (const std::string &bor_id) |
| std::vector< double > | vsp::GetBORLowerCSTCoefs (const std::string &bor_id) |
| int | vsp::GetBORUpperCSTDegree (const std::string &bor_id) |
| int | vsp::GetBORLowerCSTDegree (const std::string &bor_id) |
| void | vsp::SetBORUpperCST (const std::string &bor_id, int deg, const std::vector< double > &coefs) |
| void | vsp::SetBORLowerCST (const std::string &bor_id, int deg, const std::vector< double > &coefs) |
| void | vsp::PromoteBORCSTUpper (const std::string &bor_id) |
| void | vsp::PromoteBORCSTLower (const std::string &bor_id) |
| void | vsp::DemoteBORCSTUpper (const std::string &bor_id) |
| void | vsp::DemoteBORCSTLower (const std::string &bor_id) |
| void | vsp::FitBORAfCST (const std::string &bor_id, int deg) |
|
extern |
Set the XSec type for a BOR component
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | type | int XSec type enum (i.e. XS_ROUNDED_RECTANGLE) |
|
extern |
Compute 3D coordinate for a point on a BOR XSecCurve given the parameter value (U) along the curve
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | fract | double Curve parameter value (range: 0 - 1) |
|
extern |
Compute the tangent vector of a point on a BOR XSecCurve given the parameter value (U) along the curve
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | fract | double Curve parameter value (range: 0 - 1) |
|
extern |
Demote the CST for the lower airfoil surface of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Demote the CST for the upper airfoil surface of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Fit a CST airfoil for an existing airfoil of a BOR of type XS_FOUR_SERIES, XS_SIX_SERIES, XS_FOUR_DIGIT_MOD, XS_FIVE_DIGIT, XS_FIVE_DIGIT_MOD, XS_ONE_SIX_SERIES, or XS_FILE_AIRFOIL.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | deg | int CST degree |
|
extern |
Get the coordinate points for the lower surface of an airfoil of a BOR. The XSecCurve must be of type XS_FILE_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Get the coordinate points for the upper surface of an airfoil on a BOR. The BOR XSecCurve must be of type XS_FILE_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Get the CST coefficients for the lower surface of an airfoil of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Get the CST degree for the lower surface of an airfoil of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Get the CST coefficients for the upper surface of an airfoil of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Get the CST degree for the upper surface of an airfoil of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Set the coordinate points for a specific BOR. The BOR XSecCurve must be of type XS_FILE_FUSE.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | pnt_vec | vector<vec3d> Vector of XSec coordinate points |
Get the coordinate points for a specific BOR. The BOR XSecCurve must be of type XS_FILE_FUSE. The points are returned normalized to the section's width and height.
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Get the XSec type for a BOR component
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Promote the CST for the lower airfoil surface of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Promote the CST for the upper airfoil surface of a BOR. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
|
extern |
Read in shape from airfoil file and set to the specified BOR XSecCurve. The XSecCurve must be of type XS_FILE_AIRFOIL. Airfoil files may be in Lednicer or Selig format with \*.af or \*.dat extensions.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | file_name | string Airfoil XSec file name |
|
extern |
Set the coordinate points for a specific BOR. The BOR XSecCurve must be of type XS_FILE_FUSE.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | file_name | string Fuselage XSec file name |
|
extern |
Set the lower points for an airfoil on a BOR. The BOR XSecCurve must be of type XS_FILE_AIRFOIL.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | low_pnt_vec | vector<vec3d> Vector of points defining the lower surface of the airfoil |
|
extern |
Set the upper and lower points for an airfoil on a BOR. The BOR XSecCurve must be of type XS_FILE_AIRFOIL.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | up_pnt_vec | vector<vec3d> Vector of points defining the upper surface of the airfoil |
| [in] | low_pnt_vec | vector<_>vec3d> Vector of points defining the lower surface of the airfoil |
|
extern |
Set the upper points for an airfoil on a BOR. The BOR XSecCurve must be of type XS_FILE_AIRFOIL.
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | up_pnt_vec | vector<vec3d> Vector of points defining the upper surface of the airfoil |
|
extern |
Set the CST degree and coefficients for the lower surface of an airfoil of a BOR. The number of coefficients should be one more than the CST degree. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | deg | int CST degree of lower airfoil surface |
| [in] | coefs | vector<double> Vector of CST coefficients for the lower airfoil surface |
|
extern |
Set the CST degree and coefficients for the upper surface of an airfoil of a BOR. The number of coefficients should be one more than the CST degree. The XSecCurve must be of type XS_CST_AIRFOIL
| [in] | bor_id | string Body of revolution Geom ID |
| [in] | deg | int CST degree of upper airfoil surface |
| [in] | coefs | vector<double> Array of CST coefficients for the upper airfoil surface |