Functions related to Sub-Surfaces are defined in this group. Click here to return to the main page.
More...
◆ AddSubSurf()
std::string vsp::AddSubSurf |
( |
const std::string & | geom_id, |
|
|
int | type, |
|
|
int | surfindex = 0 ) |
|
extern |
Add a sub-surface to the specified Geom
string wid =
AddGeom(
"WING",
"" );
SetParmVal( wid,
"Const_Line_Value",
"SubSurface_1", 0.4 );
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
double SetParmVal(const std::string &parm_id, double val)
std::string AddSubSurf(const std::string &geom_id, int type, int surfindex=0)
- See also
- SUBSURF_TYPE
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | type | Sub-surface type enum (i.e. SS_RECTANGLE) |
[in] | surfindex | Main surface index (default: 0) |
- Returns
- Sub-surface ID
◆ DeleteSubSurf() [1/2]
void vsp::DeleteSubSurf |
( |
const std::string & | geom_id, |
|
|
const std::string & | sub_id ) |
|
extern |
Delete the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print("Delete SS_Line\n");
string num_str = string("Number of SubSurfaces: ") + formatInt( num_ss, '' ) + string("\n");
Print( num_str );
int GetNumSubSurf(const std::string &geom_id)
void DeleteSubSurf(const std::string &geom_id, const std::string &sub_id)
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | sub_id | string Sub-surface ID |
◆ DeleteSubSurf() [2/2]
void vsp::DeleteSubSurf |
( |
const std::string & | sub_id | ) |
|
|
extern |
Delete the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print("Delete SS_Line\n");
string num_str = string("Number of SubSurfaces: ") + formatInt( num_ss, '' ) + string("\n");
Print( num_str );
- Parameters
-
[in] | sub_id | string Sub-surface ID |
◆ GetAllSubSurfIDs()
std::vector< std::string > vsp::GetAllSubSurfIDs |
( |
| ) |
|
|
extern |
Get a vector of all sub-surface IDs for the entire model
- Returns
- Array of sub-surface IDs
◆ GetNumSubSurf()
int vsp::GetNumSubSurf |
( |
const std::string & | geom_id | ) |
|
|
extern |
Get the number of sub-surfaces for the specified Geom
string wid =
AddGeom(
"WING",
"" );
string num_str = string("Number of SubSurfaces: ") + num_ss + string("\n");
Print( num_str );
- Parameters
-
[in] | geom_id | string Geom ID |
- Returns
- int Number of Sub-surfaces
◆ GetSubSurf() [1/2]
std::vector< std::string > vsp::GetSubSurf |
( |
const std::string & | geom_id, |
|
|
const std::string & | name ) |
|
extern |
Get the ID of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print( ss_rec_2, false );
Print( " = ", false );
std::string GetSubSurf(const std::string &geom_id, int index)
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | name | string Sub surface name |
- Returns
- vector<string> Vector of sub-surface ID
◆ GetSubSurf() [2/2]
std::string vsp::GetSubSurf |
( |
const std::string & | geom_id, |
|
|
int | index ) |
|
extern |
Get the ID of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print( ss_rec_2, false );
Print( " = ", false );
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | index | Sub-surface index |
- Returns
- Sub-surface ID
◆ GetSubSurfIDVec()
std::vector< std::string > vsp::GetSubSurfIDVec |
( |
const std::string & | geom_id | ) |
|
|
extern |
Get a vector of all sub-surface IDs for the specified geometry
string wid =
AddGeom(
"WING",
"" );
string id_type_str = string( "SubSurface IDs and Type Indexes -> ");
for ( uint i = 0; i < uint(id_vec.length()); i++ )
{
id_type_str += id_vec[i];
id_type_str += string(": ");
id_type_str += string("\t");
}
id_type_str += string("\n");
Print( id_type_str );
std::vector< std::string > GetSubSurfIDVec(const std::string &geom_id)
int GetSubSurfType(const std::string &sub_id)
- Parameters
-
[in] | geom_id | string Geom ID |
- Returns
- vector<int> Array of sub-surface IDs
◆ GetSubSurfIndex()
int vsp::GetSubSurfIndex |
( |
const std::string & | sub_id | ) |
|
|
extern |
Get the index of the specified sub-surface in its parent Geom's sub-surface vector
string wid =
AddGeom(
"WING",
"" );
string ind_str = string("Index of SS_Rectangle: ") + ind + string("\n");
Print( ind_str );
int GetSubSurfIndex(const std::string &sub_id)
- Parameters
-
[in] | sub_id | string Sub-surface ID |
- Returns
- int Sub-surface index
◆ GetSubSurfName() [1/2]
std::string vsp::GetSubSurfName |
( |
const std::string & | geom_id, |
|
|
const std::string & | sub_id ) |
|
extern |
Get the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string name_str = string("Current Name of SS_Rectangle: ") + rec_name + string("\n");
Print( name_str );
std::string GetSubSurfName(const std::string &geom_id, const std::string &sub_id)
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | sub_id | string Sub-surface ID |
- Returns
- Sub-surface name
◆ GetSubSurfName() [2/2]
std::string vsp::GetSubSurfName |
( |
const std::string & | sub_id | ) |
|
|
extern |
Get the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string name_str = string("Current Name of SS_Rectangle: ") + rec_name + string("\n");
Print( name_str );
- Parameters
-
[in] | sub_id | string Sub-surface ID |
- Returns
- string Sub-surface name
◆ GetSubSurfParmIDs()
std::vector< std::string > vsp::GetSubSurfParmIDs |
( |
const std::string & | sub_id | ) |
|
|
extern |
Get the vector of Parm IDs for specified sub-surface
string wid =
AddGeom(
"WING",
"" );
for ( uint i = 0; i < uint(parm_id_vec.length()); i++ )
{
string(", ID: ") + parm_id_vec[i] + string("\n");
Print( id_name_str );
}
std::string GetParmName(const std::string &parm_id)
std::string GetParmDisplayGroupName(const std::string &parm_id)
std::vector< std::string > GetSubSurfParmIDs(const std::string &sub_id)
- Parameters
-
[in] | sub_id | string Sub-surface ID |
- Returns
- vector<string> Vector of Parm IDs
◆ GetSubSurfType()
int vsp::GetSubSurfType |
( |
const std::string & | sub_id | ) |
|
|
extern |
Get the type for the specified sub-surface (i.e. SS_RECTANGLE)
string wid =
AddGeom(
"WING",
"" );
string id_type_str = string( "SubSurface IDs and Type Indexes -> ");
for ( uint i = 0; i < uint(id_vec.length()); i++ )
{
id_type_str += id_vec[i];
id_type_str += string(": ");
id_type_str += string("\t");
}
id_type_str += string("\n");
Print( id_type_str );
- See also
- SUBSURF_TYPE
- Parameters
-
[in] | sub_id | string Sub-surface ID |
- Returns
- int Sub-surface type enum (i.e. SS_RECTANGLE)
◆ SetSubSurfName() [1/2]
void vsp::SetSubSurfName |
( |
const std::string & | geom_id, |
|
|
const std::string & | sub_id, |
|
|
const std::string & | name ) |
|
extern |
Set the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string new_name = string("New_SS_Rec_Name");
void SetSubSurfName(const std::string &geom_id, const std::string &sub_id, const std::string &name)
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | sub_id | string Sub-surface ID |
[in] | name | string Sub-surface name |
◆ SetSubSurfName() [2/2]
void vsp::SetSubSurfName |
( |
const std::string & | sub_id, |
|
|
const std::string & | name ) |
|
extern |
Set the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string new_name = string("New_SS_Rec_Name");
- Parameters
-
[in] | sub_id | string Sub-surface ID |
[in] | name | string Sub-surface name |