OpenVSP API Documentation  3.37.0
Functions
VSPAERO Functions

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...

Functions

string vsp::GetVSPAERORefWingID ()
 
string vsp::SetVSPAERORefWingID (const std::string &geom_id)
 

Detailed Description

Function Documentation

◆ GetVSPAERORefWingID()

string vsp::GetVSPAERORefWingID ( )

Get ID of the current VSPAERO reference Geom

Returns
Reference Geom ID

◆ SetVSPAERORefWingID()

string vsp::SetVSPAERORefWingID ( const std::string &  geom_id)

Set the current VSPAERO reference Geom ID

//==== Add Wing Geom and set some parameters =====//
string wing_id = AddGeom( "WING" );
SetGeomName( wing_id, "MainWing" );
//==== Add Vertical tail and set some parameters =====//
string vert_id = AddGeom( "WING" );
SetGeomName( vert_id, "Vert" );
SetParmValUpdate( vert_id, "TotalArea", "WingGeom", 10.0 );
SetParmValUpdate( vert_id, "X_Rel_Location", "XForm", 8.5 );
SetParmValUpdate( vert_id, "X_Rel_Rotation", "XForm", 90 );
//==== Set VSPAERO Reference lengths & areas ====//
SetVSPAERORefWingID( wing_id ); // Set as reference wing for VSPAERO
Print( "VSPAERO Reference Wing ID: ", false );
void SetGeomName(const std::string &geom_id, const std::string &name)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
double SetParmValUpdate(const std::string &parm_id, double val)
string GetVSPAERORefWingID()
string SetVSPAERORefWingID(const std::string &geom_id)
Parameters
[in]geom_idReference Geom ID