The following group of functions are specific to VSPAERO. However, their relevance has been mostly replaced by Analysis Manager capabilities. Click here to return to the main page.
More...
◆ GetVSPAEROCGModeID()
| std::string vsp::GetVSPAEROCGModeID |
( |
| ) |
|
|
extern |
Get the mode the VSPAERO mass properties (CG) analysis uses, kept with the model.
{
Print(
"ERROR: GetVSPAEROCGModeID did not return the mode set" );
__failure++;
}
void Print(const std::string &data, bool new_line=true)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
std::string CreateAndAddMode(const std::string &name, int normal_set, int degen_set)
std::string GetVSPAEROCGModeID()
void SetVSPAEROCGModeID(const std::string &mode_id)
- See also
- SetVSPAEROCGModeID
- Returns
- string Mode ID, or an empty string for none
◆ GetVSPAEROModeID()
| std::string vsp::GetVSPAEROModeID |
( |
| ) |
|
|
extern |
Get the mode the VSPAERO analysis uses, kept with the model.
{
Print(
"ERROR: GetVSPAEROModeID did not return the mode set" );
__failure++;
}
std::string GetVSPAEROModeID()
void SetVSPAEROModeID(const std::string &mode_id)
- See also
- SetVSPAEROModeID
- Returns
- string Mode ID, or an empty string for none
◆ GetVSPAERORefWingID()
| std::string vsp::GetVSPAERORefWingID |
( |
| ) |
|
|
extern |
Get ID of the current VSPAERO reference Geom
std::string SetVSPAERORefWingID(const std::string &geom_id)
std::string GetVSPAERORefWingID()
void Update(bool update_managers=true)
- Returns
- string Reference Geom ID
◆ SetVSPAEROCGModeID()
| void vsp::SetVSPAEROCGModeID |
( |
const std::string & | mode_id | ) |
|
|
extern |
Set the mode the VSPAERO screen's Mass Prop button uses to find the CG when its CG use-mode flag is on, kept with the model, or an empty string for none. Only that button uses it: the CGModeID input of the VSPAEROSweep analysis has no effect. The flag is the "CGUseMode" Parm, group "VSPAERO", of the "VSPAEROSettings" container.
{
Print(
"ERROR: SetVSPAEROCGModeID did not set the mode" );
__failure++;
}
- See also
- GetVSPAEROCGModeID
- Parameters
-
| [in] | mode_id | string Mode ID, or an empty string |
◆ SetVSPAEROModeID()
| void vsp::SetVSPAEROModeID |
( |
const std::string & | mode_id | ) |
|
|
extern |
Set the mode the VSPAERO analysis uses when its use-mode flag is on, kept with the model, or an empty string for none. The analysis input overrides it for one run. The flag is the "UseMode" Parm, group "VSPAERO", of the "VSPAEROSettings" container.
{
Print(
"ERROR: SetVSPAEROModeID did not set the mode" );
__failure++;
}
- See also
- GetVSPAEROModeID
- Parameters
-
| [in] | mode_id | string Mode ID, or an empty string |
◆ SetVSPAERORefWingID()
| std::string vsp::SetVSPAERORefWingID |
( |
const std::string & | geom_id | ) |
|
|
extern |
Set the current VSPAERO reference Geom ID
string wing_id =
AddGeom(
"WING" );
string vert_id =
AddGeom(
"WING" );
Print(
"VSPAERO Reference Wing ID: ",
false );
{
Print(
"ERROR: SetVSPAERORefWingID did not take" );
__failure++;
}
if ( GetNumTotalErrors() == 0 )
{
Print(
"ERROR: SetVSPAERORefWingID accepted a bad Geom ID" );
__failure++;
}
while ( GetNumTotalErrors() > 0 )
{
}
void SetGeomName(const std::string &geom_id, const std::string &name)
double SetParmValUpdate(const std::string &parm_id, double val)
- Parameters
-
| [in] | geom_id | string Reference Geom ID |