User Tools

Site Tools


api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
api [2015/09/03 09:09]
ramcdona
api [2019/11/09 18:36]
ramcdona removed
Line 26: Line 26:
 **void AddCFDSource( int [[api#CFD Mesh Source Type Enums|type]],​ const string & geom_id, int surf_index, double l1, double r1, double u1, double w1, double l2 = 0, double r2 = 0, double u2 = 0, double w2 = 0 )**\\ **void AddCFDSource( int [[api#CFD Mesh Source Type Enums|type]],​ const string & geom_id, int surf_index, double l1, double r1, double u1, double w1, double l2 = 0, double r2 = 0, double u2 = 0, double w2 = 0 )**\\
 Add a CFD mesh source of specified type to geom.  l1 = length of tri, r1 = radius of source, u1 and w1 are parametric coordinates. Add a CFD mesh source of specified type to geom.  l1 = length of tri, r1 = radius of source, u1 and w1 are parametric coordinates.
 +
  
 ==== ErrorObj Class ==== ==== ErrorObj Class ====
Line 34: Line 35:
 **string ErrorObj::​GetErrorString()** **string ErrorObj::​GetErrorString()**
 Return the error string from this error object.\\ Return the error string from this error object.\\
 +
  
 ==== Error Functions ==== ==== Error Functions ====
Line 46: Line 48:
 **VSPExit( int error_code )** **VSPExit( int error_code )**
 Exits program with provided error code\\ Exits program with provided error code\\
 +
  
 ==== File I/O Functions ==== ==== File I/O Functions ====
 +**string GetVSPFileName()**\\
 **void ReadVSPFile( string file_name )** **void ReadVSPFile( string file_name )**
 Read a vsp geometry file. Clear old geometry first.\\ Read a vsp geometry file. Clear old geometry first.\\
Line 58: Line 62:
 **string ImportFile( string file_name, int [[api#​Import Type Enums|import_type]],​ string parent )** **string ImportFile( string file_name, int [[api#​Import Type Enums|import_type]],​ string parent )**
 Import a file and insert it as a child of parent. \\ Import a file and insert it as a child of parent. \\
 +
  
 ==== Geom ==== ==== Geom ====
Line 88: Line 93:
 **string AddSubSurf( string geom_id, int [[api#Sub Surface Type Enums|set]] )** **string AddSubSurf( string geom_id, int [[api#Sub Surface Type Enums|set]] )**
 Add a sub surface to the geometry. A string ID is returned which can be used with FindParm to edit the sub surface.\\ Add a sub surface to the geometry. A string ID is returned which can be used with FindParm to edit the sub surface.\\
-**string GetSubSurf( string geom_id, int index )** 
-Get a sub surface id given geometry ID and index.\\ 
 **void DeleteSubSurf( string geom_id, string subsurf_id )** **void DeleteSubSurf( string geom_id, string subsurf_id )**
 Delete sub surface given geom ID and sub surface ID.\\ Delete sub surface given geom ID and sub surface ID.\\
Line 100: Line 103:
 **void InsertXSec( strin geom_id, int index, int type )** **void InsertXSec( strin geom_id, int index, int type )**
 Insert xsec of provided type after index.\\ Insert xsec of provided type after index.\\
 +
 +
 +==== Wing Section Functions ====
 +**void SetDriverGroup(const string&​in,​ int, int, int, int)**\\
 +
 +
 +==== Container Functions ====
 +**array<​string>​@ FindContainers()**\\
 +**array<​string>​@ FindContainersWithName(const string&​in)**\\
 +**string FindContainer(const string&​in,​ int)**\\
 +**string GetContainerName(const string&​in)**\\
 +**array<​string>​@ FindContainerGroupNames(const string&​in)**\\
 +**array<​string>​@ FindContainerParmIDs(const string&​in)**\\
 +
  
 ==== Matrix4d Class ==== ==== Matrix4d Class ====
Line 132: Line 149:
 **void Matrix4d::​buildXForm(vec3d pos, vec3d rot, vec3d center_of_rot)** **void Matrix4d::​buildXForm(vec3d pos, vec3d rot, vec3d center_of_rot)**
 Build a matrix to translate to pos and rot about center of rotation.\\ Build a matrix to translate to pos and rot about center of rotation.\\
 +
  
 ==== Parm Functions ==== ==== Parm Functions ====
Line 166: Line 184:
 **string GetParmName( string parm_id )** **string GetParmName( string parm_id )**
 Returns parm name string.\\ Returns parm name string.\\
 +**string GetParmGroupName(const string&​in)**\\
 +**string GetParmDisplayGroupName(const string&​in)**\\
 **string GetParmContainer( string parm_id )** **string GetParmContainer( string parm_id )**
 Returns the parm container'​s id string.\\ Returns the parm container'​s id string.\\
Line 172: Line 192:
 **string FindParm( string parm_container_id,​ string name, string group )** **string FindParm( string parm_container_id,​ string name, string group )**
 Find a parm ID given parm container id, name and group.\\ Find a parm ID given parm container id, name and group.\\
 +
  
 ==== Results ==== ==== Results ====
Line 202: Line 223:
 **void WriteResultsCSVFile(string id, string file_name )** **void WriteResultsCSVFile(string id, string file_name )**
 Write the specified results to a csv file.\\ Write the specified results to a csv file.\\
 +**WriteTestResults()**\\
 +
  
 ==== Set Functions ==== ==== Set Functions ====
Line 218: Line 241:
 **void SetSetFlag( string geom_id, int set_index, bool flag )** **void SetSetFlag( string geom_id, int set_index, bool flag )**
 Set the geometry set flag.\\ Set the geometry set flag.\\
 +
  
 ==== Utility Functions==== ==== Utility Functions====
Line 236: Line 260:
 **double Deg2Rad( double )**                **double Deg2Rad( double )**               
 Convert degrees to radians.\\ ​ Convert degrees to radians.\\ ​
 +
  
 ==== vec3d Class ==== ==== vec3d Class ====
Line 312: Line 337:
 **vec3d RotateArbAxis(vec3d p, double theta, vec3d axis )** **vec3d RotateArbAxis(vec3d p, double theta, vec3d axis )**
 Rotate the vector about an arbitrary axis.\\ Rotate the vector about an arbitrary axis.\\
 +**array<​vec3d>​@ GetProxyVec3dArray()**\\
 +**void SetVec3dArray(array<​vec3d>​@)**\\
  
 ==== Vehicle Functions ==== ==== Vehicle Functions ====
Line 318: Line 345:
 **void ClearVSPModel()** **void ClearVSPModel()**
 Clear all geometry.\\ Clear all geometry.\\
 +
  
 ==== XSec ==== ==== XSec ====
Line 350: Line 378:
 **void ResetXSecSkinParms( string xsec_id )** **void ResetXSecSkinParms( string xsec_id )**
 Reset all xsec skim parms to default\\ Reset all xsec skim parms to default\\
 +**void ReadFileAirfoil(const string&​in,​ const string&​in)**\\
 +**void SetAirfoilPnts(const string&​in,​ array<​vec3d>​@,​ array<​vec3d>​@)**\\
 +**array<​vec3d>​@ GetAirfoilUpperPnts(const string&​in)**\\
 +**array<​vec3d>​@ GetAirfoilLowerPnts(const string&​in)**\\
  
  
Line 417: Line 449:
 Insert a xsec to the xsec_surf after index.\\ Insert a xsec to the xsec_surf after index.\\
  
 +
 +==== Advanced Parameter Link Functions ====
 +**void AddInput(const string&​in,​ int, const string&​in,​ const string&​in,​ const string&​in)**\\
 +**void AddOutput(const string&​in,​ int, const string&​in,​ const string&​in,​ const string&​in)**\\
 +**void SetVar(const string&​in,​ double)**\\
 +**double GetVar(const string&​in)**\\
 +
 +
 +==== Design Variable Functions ====
 +**void ReadApplyDESFile(const string&​in)**\\
 +**void WriteDESFile(const string&​in)**\\
 +**void ReadApplyXDDMFile(const string&​in)**\\
 +**void WriteXDDMFile(const string&​in)**\\
 +**int GetNumDesignVars()**\\
 +**void AddDesignVar(const string&​in,​ int)**\\
 +**void DeleteAllDesignVars()**\\
 +**string GetDesignVar(int)**\\
 +**int GetDesignVarType(int)**\\
  
 ===== Script/API Enums ===== ===== Script/API Enums =====
Line 543: Line 593:
 **Y_DIR**\\ **Y_DIR**\\
 **Z_DIR**\\ **Z_DIR**\\
 +
 +==== Symmetry Code Enums ====
 +**SYM_XY**\\
 +**SYM_XZ**\\
 +**SYM_YZ**\\
 +**SYM_ROT_X**\\
 +**SYM_ROT_Y**\\
 +**SYM_ROT_Z**\\
 +**SYM_PLANAR_TYPES**\\
 +**SYM_NUM_TYPES**\\
  
 ==== Error Code Enums ==== ==== Error Code Enums ====