OpenVSPAPI  3.20.0
Functions
VSPAERO Functions

The following group of functions are specific to VSPAERO. However, their relavence has been mostly replaced by Analysis Manager capabilities.

Click here to return to the main page. More...

Functions

string GetVSPAERORefWingID ()
 
string SetVSPAERORefWingID (const string &in geom_id)
 

Detailed Description

Function Documentation

◆ GetVSPAERORefWingID()

string GetVSPAERORefWingID ( )

Get ID of the current VSPAERO refernce Geom

Returns
Reference Geom ID

◆ SetVSPAERORefWingID()

string SetVSPAERORefWingID ( const string &in  geom_id)

Set the current VSPAERO refernce 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 );
Parameters
[in]geom_idReference Geom ID
SetVSPAERORefWingID
string SetVSPAERORefWingID(const string &in geom_id)
SetParmValUpdate
double SetParmValUpdate(const string &in parm_id, double val)
GetVSPAERORefWingID
string GetVSPAERORefWingID()
SetGeomName
void SetGeomName(const string &in geom_id, const string &in name)
AddGeom
string AddGeom(const string &in type, const string &in parent=string())
Print
void Print(const string &in data, bool new_line=true)