OpenVSP API Documentation 3.41.0
 
Loading...
Searching...
No Matches
VSP_Geom_API.h
1//
2// This file is released under the terms of the NASA Open Source Agreement (NOSA)
3
4// version 1.3 as detailed in the LICENSE file which accompanies this software.
5//
6
7// API.h: interface for the Vehicle Class and Vehicle Mgr Singleton.
8// J.R Gloudemans
9//
11
189#if !defined(VSPAPI__INCLUDED_)
190#define VSPAPI__INCLUDED_
191
192#ifdef SWIG
193%feature("autodoc", 1);
194%feature("doxygen:ignore:forcpponly", range="end");
195%feature("doxygen:ignore:beginPythonOnly", range="end:endPythonOnly", contents="parse");
196
197#endif
198
199#include "Defines.h"
200
201#include "APIErrorMgr.h"
202#include "APIUpdateCountMgr.h"
203#include "Vec3d.h"
204#include "Matrix4d.h"
205
206#include <string>
207#include <stack>
208#include <vector>
209
210
211using std::string;
212using std::stack;
213using std::vector;
214
215namespace vsp
216{
217
218//======================== API Functions ================================//
246extern void VSPCheckSetup();
247
280extern void VSPRenew();
281
282
324extern void Update( bool update_managers = true );
325
334extern void VSPExit( int error_code );
335
349
350
374extern std::string GetVSPVersion();
375
408
441
474
500extern std::string GetVSPExePath();
501
502
533extern bool SetVSPAEROPath( const std::string & path );
534
561extern std::string GetVSPAEROPath();
562
594extern bool CheckForVSPAERO( const std::string & path );
595
596
597extern void RegisterCFDMeshAnalyses();
598
599
600//======================== File I/O ================================//
660extern void ReadVSPFile( const std::string & file_name );
661
722extern void WriteVSPFile( const std::string & file_name, int set = SET_ALL );
723
783extern void SetVSP3FileName( const std::string & file_name );
784
830extern std::string GetVSPFileName();
831
858extern void ClearVSPModel();
859
870extern void InsertVSPFile( const std::string & file_name, const std::string & parent_geom_id );
871
872
909extern std::string ExportFile( const std::string & file_name, int thick_set, int file_type, int subsFlag = 1, int thin_set = vsp::SET_NONE );
910
923extern std::string ImportFile( const std::string & file_name, int file_type, const std::string & parent );
924
925
956extern void SetBEMPropID( const string & prop_id );
957
958
959//======================== Design Files ================================//
960
969extern void ReadApplyDESFile( const std::string & file_name );
970
979extern void WriteDESFile( const std::string & file_name );
980
989extern void ReadApplyXDDMFile( const std::string & file_name );
990
999extern void WriteXDDMFile( const std::string & file_name );
1000
1009extern int GetNumDesignVars();
1010
1021extern void AddDesignVar( const std::string & parm_id, int type );
1022
1031
1041extern std::string GetDesignVar( int index );
1042
1053extern int GetDesignVarType( int index );
1054
1055
1056//======================== Computations ================================//
1086extern void SetComputationFileName( int file_type, const std::string & file_name );
1087
1129extern std::string ComputeMassProps( int set, int num_slices, int idir );
1130
1170extern std::string ComputeCompGeom( int set, bool half_mesh, int file_export_types );
1171
1219extern std::string ComputePlaneSlice( int set, int num_slices, const vec3d & norm, bool auto_bnd,
1220
1221 double start_bnd = 0, double end_bnd = 0, bool measureduct = false );
1251extern void ComputeDegenGeom( int set, int file_export_types );
1252
1285extern void ComputeCFDMesh( int set, int degenset, int file_export_types );
1286
1308extern void SetCFDMeshVal( int type, double val );
1309
1344extern void SetCFDWakeFlag( const std::string & geom_id, bool flag );
1345
1375
1400extern void AddDefaultSources();
1401
1438extern void AddCFDSource( int type, const std::string & geom_id, int surf_index,
1439
1440 double l1, double r1, double u1, double w1,
1441 double l2 = 0, double r2 = 0, double u2 = 0, double w2 = 0 );
1442
1451extern string GetVSPAERORefWingID();
1452
1510extern string SetVSPAERORefWingID( const std::string & geom_id );
1511
1512
1513//======================== Analysis ================================//
1514
1538extern int GetNumAnalysis();
1539
1572extern std::vector<std::string> ListAnalysis();
1573
1611extern std::vector<std::string> GetAnalysisInputNames( const std::string & analysis );
1612
1637extern std::string GetAnalysisDoc( const std::string & analysis );
1638
1655extern std::string GetAnalysisInputDoc( const std::string & analysis, const std::string & name );
1656
1681extern std::string ExecAnalysis( const std::string & analysis );
1682
1683
1694extern int GetNumAnalysisInputData( const std::string & analysis, const std::string & name );
1695
1731extern int GetAnalysisInputType( const std::string & analysis, const std::string & name );
1732
1772extern const std::vector< int > & GetIntAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1773
1805extern const std::vector< double > & GetDoubleAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1806
1838extern const std::vector<std::string> & GetStringAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1839
1873extern const std::vector< vec3d > & GetVec3dAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1874
1875
1903extern void SetAnalysisInputDefaults( const std::string & analysis );
1904
1944extern void SetIntAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< int > & indata, int index = 0 );
1945
1987extern void SetDoubleAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< double > & indata, int index = 0 );
1988
2020extern void SetStringAnalysisInput( const std::string & analysis, const std::string & name, const std::vector<std::string> & indata, int index = 0 );
2021
2055extern void SetVec3dAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< vec3d > & indata, int index = 0 );
2056
2057
2085extern void PrintAnalysisInputs( const std::string & analysis_name );
2086
2114extern void PrintAnalysisDocs( const std::string & analysis_name );
2115
2116
2117//======================== Results ================================//
2154extern std::vector<std::string> GetAllResultsNames();
2155
2190extern std::vector<std::string> GetAllDataNames( const std::string & results_id );
2191
2218extern int GetNumResults( const std::string & name );
2219
2260extern std::string GetResultsName(const std::string & results_id );
2261
2302extern std::string GetResultsSetDoc( const std::string & results_id );
2303
2304extern std::string GetResultsEntryDoc( const std::string & results_id, const std::string & data_name );
2305
2337extern std::string FindResultsID( const std::string & name, int index = 0 );
2338
2376extern std::string FindLatestResultsID( const std::string & name );
2377
2425extern int GetNumData( const std::string & results_id, const std::string & data_name );
2426
2468extern int GetResultsType( const std::string & results_id, const std::string & data_name );
2469
2518extern const std::vector< int > & GetIntResults( const std::string & id, const std::string & name, int index = 0 );
2519
2558extern const std::vector< double > & GetDoubleResults( const std::string & id, const std::string & name, int index = 0 );
2559
2571extern const std::vector< std::vector< double > > & GetDoubleMatResults( const std::string & id, const std:: string & name, int index = 0 );
2572
2609extern const std::vector<std::string> & GetStringResults( const std::string & id, const std::string & name, int index = 0 );
2610
2667extern const std::vector< vec3d > & GetVec3dResults( const std::string & id, const std::string & name, int index = 0 );
2668
2710extern std::string CreateGeomResults( const std::string & geom_id, const std::string & name );
2711
2750extern void DeleteAllResults();
2751
2791extern void DeleteResult( const std::string & id );
2792
2827extern void WriteResultsCSVFile( const std::string & id, const std::string & file_name );
2828
2864extern void PrintResults( const std::string &results_id );
2865
2901extern void PrintResultsDocs( const std::string &results_id );
2902
2937extern void WriteTestResults();
2938
2939//======================== GUI Functions ================================//
2940
2964 extern void StartGUI();
2965
3000
3031
3063extern void StopGUI();
3064
3092extern void PopupMsg( const std::string &msg );
3093
3133extern void UpdateGUI();
3134
3168extern bool IsGUIBuild();
3169
3217extern void Lock( );
3218
3263extern void Unlock( );
3264
3265
3297extern bool IsEventLoopRunning( );
3298
3332extern void ScreenGrab( const string & fname, int w, int h, bool transparentBG, bool autocrop = false );
3333
3353extern void SetViewAxis( bool vaxis );
3354
3374extern void SetShowBorders( bool brdr );
3375
3401extern void SetGeomDrawType(const string &geom_id, int type);
3402
3429extern void SetGeomWireColor( const string &geom_id, int r, int g, int b );
3430
3456extern void SetGeomDisplayType(const string &geom_id, int type);
3457
3481extern void SetGeomMaterialName( const string &geom_id, const string &name );
3482
3515extern void AddMaterial( const string &name, const vec3d & ambient, const vec3d & diffuse, const vec3d & specular, const vec3d & emissive, const double & alpha, const double & shininess );
3516
3544extern vector < string > GetMaterialNames();
3545
3567extern void SetBackground( double r, double g, double b );
3568
3588extern void SetAllViews( int view );
3589
3609extern void SetView( int viewport, int view );
3610
3629extern void FitAllViews();
3630
3649extern void ResetViews();
3650
3671extern void SetWindowLayout( int r, int c );
3672
3692extern void SetGUIElementDisable( int e, bool state );
3693
3713extern void SetGUIScreenDisable( int s, bool state );
3714
3733extern void SetGeomScreenDisable( int s, bool state );
3734
3735
3736//======================== Geom Functions ================================//
3768extern std::vector<std::string> GetGeomTypes();
3769
3793extern std::string AddGeom( const std::string & type, const std::string & parent = std::string() );
3794
3831extern void UpdateGeom( const std::string & geom_id );
3832
3864extern void DeleteGeom( const std::string & geom_id );
3865
3899extern void DeleteGeomVec( const std::vector< std::string > & del_vec );
3900
3941extern void CutGeomToClipboard( const std::string & geom_id );
3942
3983extern void CopyGeomToClipboard( const std::string & geom_id );
3984
4025extern std::vector<std::string> PasteGeomClipboard( const std::string & parent = std::string() );
4026
4060extern std::vector<std::string> FindGeoms();
4061
4101extern std::vector<std::string> FindGeomsWithName( const std::string & name );
4102
4147extern std::string FindGeom( const std::string & name, int index );
4148
4187extern void SetGeomName( const std::string & geom_id, const std::string & name );
4188
4223extern std::string GetGeomName( const std::string & geom_id );
4224
4259extern std::vector<std::string> GetGeomParmIDs( const std::string & geom_id );
4260
4291extern std::string GetGeomTypeName( const std::string & geom_id );
4292
4325extern std::string GetParm( const std::string & geom_id, const std::string & name, const std::string & group );
4326
4361extern std::string GetGeomParent( const std::string& geom_id );
4362
4412extern std::vector< std::string > GetGeomChildren( const std::string& geom_id );
4413
4444extern int GetNumXSecSurfs( const std::string & geom_id );
4445
4485extern int GetNumMainSurfs( const std::string & geom_id );
4486
4526extern int GetTotalNumSurfs( const std::string& geom_id );
4527
4560extern int GetGeomVSPSurfType( const std::string& geom_id, int main_surf_ind = 0 );
4561
4594extern int GetGeomVSPSurfCfdType( const std::string& geom_id, int main_surf_ind = 0 );
4595
4636extern vec3d GetGeomBBoxMax( const std::string& geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true );
4637
4678extern vec3d GetGeomBBoxMin( const std::string& geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true );
4679
4680
4681//======================== SubSurface Functions ================================//
4715extern std::string AddSubSurf( const std::string & geom_id, int type, int surfindex = 0 );
4716
4758extern std::string GetSubSurf( const std::string & geom_id, int index );
4759
4801extern std::vector<std::string> GetSubSurf( const std::string & geom_id, const std::string & name );
4802
4849extern void DeleteSubSurf( const std::string & geom_id, const std::string & sub_id );
4850
4896extern void DeleteSubSurf( const std::string & sub_id );
4897
4931extern void SetSubSurfName(const std::string & geom_id, const std::string & sub_id, const std::string & name);
4932
4965extern void SetSubSurfName( const std::string & sub_id, const std::string & name );
4966
5004extern std::string GetSubSurfName( const std::string & geom_id, const std::string & sub_id );
5005
5042extern std::string GetSubSurfName( const std::string & sub_id );
5043
5082extern int GetSubSurfIndex( const std::string & sub_id );
5083
5147extern std::vector<std::string> GetSubSurfIDVec( const std::string & geom_id );
5148
5157extern std::vector<std::string> GetAllSubSurfIDs();
5158
5197extern int GetNumSubSurf( const std::string & geom_id );
5198
5263extern int GetSubSurfType( const std::string & sub_id );
5264
5310extern std::vector<std::string> GetSubSurfParmIDs( const std::string & sub_id );
5311
5312
5344extern int AddFeaStruct( const std::string & geom_id, bool init_skin = true, int surfindex = 0 );
5345
5382extern void SetFeaMeshStructIndex( int struct_index );
5383
5420extern void DeleteFeaStruct( const std::string & geom_id, int fea_struct_ind );
5421
5455extern std::string GetFeaStructID( const std::string & geom_id, int fea_struct_ind );
5456
5501extern int GetFeaStructIndex( const std::string & struct_id );
5502
5541extern std::string GetFeaStructParentGeomID( const std::string & struct_id );
5542
5587extern std::string GetFeaStructName( const std::string & geom_id, int fea_struct_ind );
5588
5637extern void SetFeaStructName( const std::string & geom_id, int fea_struct_ind, const std::string & name );
5638
5675extern std::vector< std::string > GetFeaStructIDVec();
5676
5716extern void SetFeaPartName( const std::string & part_id, const std::string & name );
5717
5763extern std::string AddFeaPart( const std::string & geom_id, int fea_struct_ind, int type );
5764
5812extern void DeleteFeaPart( const std::string & geom_id, int fea_struct_ind, const std::string & part_id );
5813
5866extern std::string GetFeaPartID( const std::string & fea_struct_id, int fea_part_index );
5867
5918extern std::string GetFeaPartName( const std::string & part_id );
5919
5964extern int GetFeaPartType( const std::string & part_id );
5965
6011extern std::vector< std::string > GetFeaPartIDVec( const std::string & fea_struct_id );
6012
6058extern std::vector< std::string > GetFeaSubSurfIDVec( const std::string & fea_struct_id );
6059
6129extern void SetFeaPartPerpendicularSparID( const std::string& part_id, const std::string& perpendicular_spar_id );
6130
6199extern std::string GetFeaPartPerpendicularSparID( const std::string& part_id );
6200
6240extern void SetFeaSubSurfName( const std::string & subsurf_id, const std::string & name );
6241
6290extern std::string GetFeaSubSurfName( const std::string & subsurf_id );
6291
6337extern std::string AddFeaSubSurf( const std::string & geom_id, int fea_struct_ind, int type );
6338
6386extern void DeleteFeaSubSurf( const std::string & geom_id, int fea_struct_ind, const std::string & ss_id );
6387
6443extern int GetFeaSubSurfIndex( const string & ss_id );
6444
6483extern int NumFeaStructures();
6484
6535extern int NumFeaParts( const std::string & fea_struct_id );
6536
6586extern int NumFeaSubSurfs( const std::string & fea_struct_id );
6587
6629extern std::string AddFeaBC( const string & fea_struct_id, int type = -1 );
6630
6675extern void DelFeaBC( const string & fea_struct_id, const std::string &bc_id );
6676
6721extern std::vector< std::string > GetFeaBCIDVec( const string & fea_struct_id );
6722
6767extern int NumFeaBCs( const string & fea_struct_id );
6768
6794extern std::string AddFeaMaterial();
6795
6824extern std::string AddFeaProperty( int property_type = 0 );
6825
6868extern void SetFeaMeshVal( const std::string & geom_id, int fea_struct_ind, int type, double val );
6869
6920extern void SetFeaMeshFileName( const std::string & geom_id, int fea_struct_ind, int file_type, const string & file_name );
6921
6973extern void ComputeFeaMesh( const std::string & geom_id, int fea_struct_ind, int file_type );
6974
7025extern void ComputeFeaMesh( const std::string & struct_id, int file_type );
7026
7027
7067extern void CutXSec( const std::string & geom_id, int index );
7068
7104extern void CopyXSec( const std::string & geom_id, int index );
7105
7141extern void PasteXSec( const std::string & geom_id, int index );
7142
7171extern void InsertXSec( const std::string & geom_id, int index, int type );
7172
7173
7174//======================== Wing Section Functions ===================//
7223extern void SetDriverGroup( const std::string & geom_id, int section_index, int driver_0, int driver_1 = -1, int driver_2 = -1 );
7224
7225
7226//======================== XSecSurf ================================//
7256extern std::string GetXSecSurf( const std::string & geom_id, int index );
7257
7309extern int GetNumXSec( const std::string & xsec_surf_id );
7310
7346extern std::string GetXSec( const std::string & xsec_surf_id, int xsec_index );
7347
7398extern void ChangeXSecShape( const std::string & xsec_surf_id, int xsec_index, int type );
7399
7409extern void SetXSecSurfGlobalXForm( const std::string & xsec_surf_id, const Matrix4d & mat );
7410
7420extern Matrix4d GetXSecSurfGlobalXForm( const std::string & xsec_surf_id );
7421
7422
7423//======================== XSec ================================//
7465extern int GetXSecShape( const std::string& xsec_id );
7466
7506extern double GetXSecWidth( const std::string& xsec_id );
7507
7547extern double GetXSecHeight( const std::string& xsec_id );
7548
7590extern void SetXSecWidthHeight( const std::string& xsec_id, double w, double h );
7591
7631extern void SetXSecWidth( const std::string& xsec_id, double w );
7632
7672extern void SetXSecHeight( const std::string& xsec_id, double h );
7673
7712extern std::vector<std::string> GetXSecParmIDs( const std::string& xsec_id );
7713
7757extern std::string GetXSecParm( const std::string& xsec_id, const std::string& name );
7758
7799extern std::vector<vec3d> ReadFileXSec( const std::string& xsec_id, const std::string& file_name );
7800
7854extern void SetXSecPnts( const std::string& xsec_id, std::vector< vec3d > & pnt_vec );
7855
7898extern vec3d ComputeXSecPnt( const std::string& xsec_id, double fract );
7899
7941extern vec3d ComputeXSecTan( const std::string& xsec_id, double fract );
7942
7984extern void ResetXSecSkinParms( const std::string& xsec_id );
7985
8027extern void SetXSecContinuity( const std::string& xsec_id, int cx );
8028
8079extern void SetXSecTanAngles( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
8080
8131extern void SetXSecTanSlews( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
8132
8185extern void SetXSecTanStrengths( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
8186
8239extern void SetXSecCurvatures( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
8240
8279extern void ReadFileAirfoil( const std::string& xsec_id, const std::string& file_name );
8280
8336extern void SetAirfoilUpperPnts( const std::string& xsec_id, const std::vector< vec3d > & up_pnt_vec );
8337
8393extern void SetAirfoilLowerPnts( const std::string& xsec_id, const std::vector< vec3d > & low_pnt_vec );
8394
8459extern void SetAirfoilPnts( const std::string& xsec_id, const std::vector< vec3d > & up_pnt_vec, const std::vector< vec3d > & low_pnt_vec );
8460
8509extern std::vector<vec3d> GetHersheyBarLiftDist( const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag = false );
8510
8559extern std::vector<vec3d> GetHersheyBarDragDist( const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag = false );
8560
8613extern std::vector<vec3d> GetVKTAirfoilPnts( const int &npts, const double &alpha, const double &epsilon, const double &kappa, const double &tau );
8614
8668extern std::vector<double> GetVKTAirfoilCpDist( const double &alpha, const double &epsilon, const double &kappa, const double &tau, const std::vector<vec3d> &xyz_data );
8669
8684extern std::vector<vec3d> GetEllipsoidSurfPnts( const vec3d &center, const vec3d &abc_rad, int u_npts = 20, int w_npts = 20 );
8685
8695extern std::vector<vec3d> GetFeatureLinePnts( const string& geom_id );
8696
8779extern std::vector<double> GetEllipsoidCpDist( const std::vector<vec3d> &surf_pnt_vec, const vec3d &abc_rad, const vec3d &V_inf );
8780
8781extern double IntegrateEllipsoidFlow( const vec3d &abc_rad, const int &abc_index );
8782
8826extern std::vector<vec3d> GetAirfoilUpperPnts( const std::string& xsec_id );
8827
8871extern std::vector<vec3d> GetAirfoilLowerPnts( const std::string& xsec_id );
8872
8883extern std::vector<double> GetUpperCSTCoefs( const std::string& xsec_id );
8884
8895extern std::vector<double> GetLowerCSTCoefs( const std::string& xsec_id );
8896
8907extern int GetUpperCSTDegree( const std::string& xsec_id );
8908
8919extern int GetLowerCSTDegree( const std::string& xsec_id );
8920
8932extern void SetUpperCST( const std::string& xsec_id, int deg, const std::vector<double> &coefs );
8933
8945extern void SetLowerCST( const std::string& xsec_id, int deg, const std::vector<double> &coefs );
8946
8956extern void PromoteCSTUpper( const std::string& xsec_id );
8957
8967extern void PromoteCSTLower( const std::string& xsec_id );
8968
8978extern void DemoteCSTUpper( const std::string& xsec_id );
8979
8989extern void DemoteCSTLower( const std::string& xsec_id );
8990
9001extern void FitAfCST( const std::string & xsec_surf_id, int xsec_index, int deg );
9002
9003//======================== Background3D Functions ======================//
9004
9042extern string AddBackground3D();
9043
9082
9135extern vector < string > GetAllBackground3Ds();
9136
9169
9202
9244
9286extern void DelBackground3D( const string &id );
9287
9329extern vector < string > GetAllBackground3DRelativePaths();
9330
9371extern vector < string > GetAllBackground3DAbsolutePaths();
9372
9409extern string GetBackground3DRelativePath( const string &id );
9410
9446extern string GetBackground3DAbsolutePath( const string &id );
9447
9484extern void SetBackground3DRelativePath( const string &id, const string &fname );
9485
9521extern void SetBackground3DAbsolutePath( const string &id, const string &fname );
9522
9523//======================== BOR Functions ======================//
9555extern void ChangeBORXSecShape( const string & bor_id, int type );
9556
9587extern int GetBORXSecShape( const string & bor_id );
9588
9620extern std::vector<vec3d> ReadBORFileXSec( const std::string& bor_id, const std::string& file_name );
9621
9666extern void SetBORXSecPnts( const std::string& bor_id, std::vector< vec3d > & pnt_vec );
9667
9701extern vec3d ComputeBORXSecPnt( const std::string& bor_id, double fract );
9702
9734extern vec3d ComputeBORXSecTan( const std::string& bor_id, double fract );
9735
9766extern void ReadBORFileAirfoil( const std::string& bor_id, const std::string& file_name );
9767
9815extern void SetBORAirfoilUpperPnts( const std::string& bor_id, const std::vector< vec3d > & up_pnt_vec );
9816
9864extern void SetBORAirfoilLowerPnts( const std::string& bor_id, const std::vector< vec3d > & low_pnt_vec );
9865
9922extern void SetBORAirfoilPnts( const std::string& bor_id, const std::vector< vec3d > & up_pnt_vec, const std::vector< vec3d > & low_pnt_vec );
9923
9959extern std::vector<vec3d> GetBORAirfoilUpperPnts( const std::string& bor_id );
9960
9996extern std::vector<vec3d> GetBORAirfoilLowerPnts( const std::string& bor_id );
9997
10008extern std::vector<double> GetBORUpperCSTCoefs( const std::string& bor_id );
10009
10020extern std::vector<double> GetBORLowerCSTCoefs( const std::string& bor_id );
10021
10032extern int GetBORUpperCSTDegree( const std::string& bor_id );
10033
10044extern int GetBORLowerCSTDegree( const std::string& bor_id );
10045
10057extern void SetBORUpperCST( const std::string& bor_id, int deg, const std::vector<double> &coefs );
10058
10070extern void SetBORLowerCST( const std::string& bor_id, int deg, const std::vector<double> &coefs );
10071
10081extern void PromoteBORCSTUpper( const std::string& bor_id );
10082
10092extern void PromoteBORCSTLower( const std::string& bor_id );
10093
10103extern void DemoteBORCSTUpper( const std::string& bor_id );
10104
10114extern void DemoteBORCSTLower( const std::string& bor_id );
10115
10125extern void FitBORAfCST( const std::string & bor_id, int deg );
10126
10127
10128//======================== FoilSurf Functions ======================//
10163extern void WriteBezierAirfoil( const std::string & file_name, const std::string & geom_id, const double &foilsurf_u );
10164
10199extern void WriteSeligAirfoil( const std::string & file_name, const std::string & geom_id, const double &foilsurf_u );
10200
10211extern std::vector < vec3d > GetAirfoilCoordinates( const std::string & geom_id, const double &foilsurf_u );
10212
10213
10214//======================== Edit Curve XSec Functions ======================//
10263extern void EditXSecInitShape( const std::string & xsec_id );
10264
10311extern void EditXSecConvertTo( const std::string & xsec_id, const int & newtype );
10312
10369extern std::vector < double > GetEditXSecUVec( const std::string& xsec_id );
10370
10420extern std::vector < vec3d > GetEditXSecCtrlVec( const std::string & xsec_id, bool non_dimensional = true );
10421
10529extern void SetEditXSecPnts( const std::string & xsec_id, const std::vector < double > &u_vec, const std::vector < vec3d > &control_pts, const std::vector < double > &r_vec );
10530
10597extern void EditXSecDelPnt( const std::string & xsec_id, const int & indx );
10598
10664extern int EditXSecSplit01( const std::string & xsec_id, const double & u );
10665
10746extern void MoveEditXSecPnt( const std::string & xsec_id, const int & indx, const vec3d & new_pnt );
10747
10798extern void ConvertXSecToEdit( const std::string & geom_id, const int & indx = 0 );
10799
10856extern std::vector < bool > GetEditXSecFixedUVec( const std::string& xsec_id );
10857
10914extern void SetEditXSecFixedUVec( const std::string& xsec_id, std::vector < bool > fixed_u_vec );
10915
10972extern void ReparameterizeEditXSec( const std::string & xsec_id );
10973
10974
10975//======================== Sets ================================//
10996extern int GetNumSets();
10997
11025extern void SetSetName( int index, const std::string& name );
11026
11054extern std::string GetSetName( int index );
11055
11089extern std::vector<std::string> GetGeomSetAtIndex( int index );
11090
11123extern std::vector<std::string> GetGeomSet( const std::string & name );
11124
11151extern int GetSetIndex( const std::string & name );
11152
11186extern bool GetSetFlag( const std::string & geom_id, int set_index );
11187
11221extern void SetSetFlag( const std::string & geom_id, int set_index, bool flag );
11222
11267extern void CopyPasteSet( int copyIndex, int pasteIndex );
11268
11269
11270//======================== Group Modifications ================================//
11303extern void ScaleSet( int set_index, double scale );
11304
11339extern void RotateSet( int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg );
11340
11373extern void TranslateSet( int set_index, const vec3d &translation_vec );
11374
11413extern void TransformSet( int set_index, const vec3d &translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag );
11414
11415
11416//======================== Parm Functions ================================//
11447extern bool ValidParm( const std::string & id );
11448
11497extern double SetParmVal( const std::string & parm_id, double val );
11498
11549extern double SetParmVal( const std::string & geom_id, const std::string & name, const std::string & group, double val );
11550
11587extern double SetParmValLimits( const std::string & parm_id, double val, double lower_limit, double upper_limit );
11588
11621extern double SetParmValUpdate( const std::string & parm_id, double val );
11622
11657extern double SetParmValUpdate( const std::string & geom_id, const std::string & parm_name, const std::string & parm_group_name, double val );
11658
11705extern double GetParmVal( const std::string & parm_id );
11706
11755extern double GetParmVal( const std::string & geom_id, const std::string & name, const std::string & group );
11756
11787extern int GetIntParmVal( const std::string & parm_id );
11788
11819extern bool GetBoolParmVal( const std::string & parm_id );
11820
11872extern void SetParmUpperLimit( const std::string & parm_id, double val );
11873
11904extern double GetParmUpperLimit( const std::string & parm_id );
11905
11957extern void SetParmLowerLimit( const std::string & parm_id, double val );
11958
11989extern double GetParmLowerLimit( const std::string & parm_id );
11990
12034extern int GetParmType( const std::string & parm_id );
12035
12093extern std::string GetParmName( const std::string & parm_id );
12094
12138extern std::string GetParmGroupName( const std::string & parm_id );
12139
12183extern std::string GetParmDisplayGroupName( const std::string & parm_id );
12184
12231extern std::string GetParmContainer( const std::string & parm_id );
12232
12265extern void SetParmDescript( const std::string & parm_id, const std::string & desc );
12266
12301extern std::string GetParmDescript( const std::string & parm_id );
12302
12337extern std::string FindParm( const std::string & parm_container_id, const std::string& parm_name, const std::string& group_name );
12338
12339
12340//======================== Parm Container Functions ======================//
12341
12378extern std::vector<std::string> FindContainers();
12379
12404extern std::vector<std::string> FindContainersWithName( const std::string & name );
12405
12430extern std::string FindContainer( const std::string & name, int index );
12431
12456extern std::string GetContainerName( const std::string & parm_container_id );
12457
12497extern std::vector<std::string> FindContainerGroupNames( const std::string & parm_container_id );
12498
12556extern std::vector<std::string> FindContainerParmIDs( const std::string & parm_container_id );
12557
12579extern std::string GetVehicleID();
12580
12581
12582//======================== User Parm Functions ======================//
12604extern int GetNumUserParms();
12605
12628
12665extern std::vector < std::string > GetAllUserParms();
12666
12686extern std::string GetUserParmContainer();
12687
12719extern string AddUserParm(int type, const string & name, const string & group );
12720
12751extern void DeleteUserParm( const std::string & id );
12752
12771extern void DeleteAllUserParm();
12772
12773
12774//======================== Snap To Functions ======================//
12816extern double ComputeMinClearanceDistance( const std::string & geom_id, int set = SET_ALL );
12817
12861 // TODO: Validate inc_flag description
12862
12863extern double SnapParm( const std::string & parm_id, double target_min_dist, bool inc_flag, int set = SET_ALL );
12864
12865
12866//======================== Variable Preset Functions ======================//
12896extern void AddVarPresetGroup( const std::string &group_name );
12897
12931extern void AddVarPresetSetting( const std::string &setting_name );
12932
12970extern void AddVarPresetParm( const std::string &parm_id );
12971
13010extern void AddVarPresetParm( const std::string &parm_id, const std::string &group_name );
13011
13054extern void EditVarPresetParm( const std::string &parm_id, double parm_val );
13055
13100extern void EditVarPresetParm( const std::string &parm_id, double parm_val, const std::string &group_name, const std::string &setting_name );
13101
13143extern void DeleteVarPresetParm( const std::string &parm_id );
13144
13187extern void DeleteVarPresetParm( const std::string &parm_id, const std::string &group_name );
13188
13235extern void SwitchVarPreset( const std::string &group_name, const std::string &setting_name );
13236
13270extern bool DeleteVarPresetSet( const std::string &group_name, const std::string &setting_name );
13271
13325extern std::string GetCurrentGroupName();
13326
13380extern std::string GetCurrentSettingName();
13381
13411extern std::vector< std::string > GetVarPresetGroupNames();
13412
13447extern std::vector< std::string > GetVarPresetSettingNamesWName( const std::string &group_name );
13448
13505extern std::vector< std::string > GetVarPresetSettingNamesWIndex( int group_index );
13506
13556extern std::vector< double > GetVarPresetParmVals();
13557
13615extern std::vector< double > GetVarPresetParmValsWNames( const std::string &group_name, const std::string &setting_name );
13616
13662extern std::vector< std::string > GetVarPresetParmIDs();
13663
13716extern std::vector< std::string > GetVarPresetParmIDsWName( const std::string &group_name );
13717
13718
13719//======================== Parametric Curve Functions ======================//
13733extern void SetPCurve( const std::string & geom_id, const int & pcurveid, const std::vector < double > & tvec,
13734
13735 const std::vector < double > & valvec, const int & newtype );
13747extern void PCurveConvertTo( const std::string & geom_id, const int & pcurveid, const int & newtype );
13748
13760extern int PCurveGetType( const std::string & geom_id, const int & pcurveid );
13761
13772extern std::vector < double > PCurveGetTVec( const std::string & geom_id, const int & pcurveid );
13773
13784extern std::vector < double > PCurveGetValVec( const std::string & geom_id, const int & pcurveid );
13785
13796extern void PCurveDeletePt( const std::string & geom_id, const int & pcurveid, const int & indx );
13797
13809extern int PCurveSplit( const std::string & geom_id, const int & pcurveid, const double & tsplit );
13810
13838extern void ApproximateAllPropellerPCurves( const std::string & geom_id );
13839
13869extern void ResetPropellerThicknessCurve( const std::string & geom_id );
13870
13871
13872//======================== VSPAERO Functions ======================//
13965
14004
14036extern void AddAllToVSPAEROControlSurfaceGroup( int CSGroupIndex );
14037
14073extern void RemoveAllFromVSPAEROControlSurfaceGroup( int CSGroupIndex );
14074
14126extern std::vector < std::string > GetActiveCSNameVec( int CSGroupIndex );
14127
14172extern std::vector < std::string > GetCompleteCSNameVec();
14173
14215extern std::vector < std::string > GetAvailableCSNameVec( int CSGroupIndex );
14216
14257extern void SetVSPAEROControlGroupName(const string & name, int CSGroupIndex);
14258
14298extern std::string GetVSPAEROControlGroupName( int CSGroupIndex );
14299
14354extern void AddSelectedToCSGroup( const vector <int> &selected, int CSGroupIndex);
14355
14419extern void RemoveSelectedFromCSGroup( const vector <int> &selected, int CSGroupIndex);
14420
14477
14478
14479//================ VSPAERO Actuator Disk and Unsteady Functions ==============//
14528extern std::string FindActuatorDisk( int disk_index );
14529
14573
14620extern std::string FindUnsteadyGroup( int group_index );
14621
14657extern std::string GetUnsteadyGroupName( int group_index );
14658
14702extern std::vector < std::string > GetUnsteadyGroupCompIDs( int group_index );
14703
14747extern std::vector < int > GetUnsteadyGroupSurfIndexes( int group_index );
14748
14801
14855
14856
14857//======================== Parasite Drag Tool Functions ======================//
14884extern void AddExcrescence(const std::string & excresName, const int & excresType, const double & excresVal);
14885
14917extern void DeleteExcrescence(const int & index);
14918
14927
14954extern void WriteAtmosphereCSVFile( const std::string & file_name, const int &atmos_type );
14955
14995extern void CalcAtmosphere( const double & alt, const double & delta_temp, const int & atmos_type,
14996
14997 double & temp, double & pres, double & pres_ratio, double & rho_ratio );
15019extern void WriteBodyFFCSVFile( const std::string & file_name );
15020
15042extern void WriteWingFFCSVFile( const std::string & file_name );
15043
15063 // TODO: Improve description
15064
15065extern void WriteCfEqnCSVFile( const std::string & file_name );
15066
15086 // TODO: Improve description
15087
15088extern void WritePartialCfMethodCSVFile( const std::string & file_name );
15089
15090
15091//======================== Surface Query Functions ======================//
15135extern vec3d CompPnt01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
15136
15180extern vec3d CompNorm01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
15181
15225extern vec3d CompTanU01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
15226
15270extern vec3d CompTanW01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
15271
15322extern void CompCurvature01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w,
15323 double &k1_out, double &k2_out, double &ka_out, double &kg_out);
15324
15388extern double ProjPnt01(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &u_out, double &w_out);
15389
15460extern double ProjPnt01I(const std::string &geom_id, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out);
15461
15532extern double ProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out);
15533
15534
15596extern double AxisProjPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, double &u_out, double &w_out);
15597
15661extern double AxisProjPnt01I(const std::string &geom_id, const int &iaxis, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out);
15662
15736extern double AxisProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out);
15737
15800extern bool InsideSurf( const std::string &geom_id, const int &surf_indx, const vec3d &pt );
15801
15802
15849extern vec3d CompPntRST( const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t );
15850
15907extern double FindRST( const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &r_out, double &s_out, double &t_out );
15908
15977extern double FindRSTGuess( const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &r0, const double &s0, const double &t0, double &r_out, double &s_out, double &t_out );
15978
15979
16027extern void ConvertRSTtoLMN( const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t, double &l_out, double &m_out, double &n_out );
16028
16068extern void ConvertRtoL( const std::string &geom_id, const int &surf_indx, const double &r, double &l_out );
16069
16117extern void ConvertLMNtoRST( const std::string &geom_id, const int &surf_indx, const double &l, const double &m, const double &n, double &r_out, double &s_out, double &t_out );
16156extern void ConvertLtoR( const std::string &geom_id, const int &surf_indx, const double &l, double &r_out );
16157
16196extern void ConvertUtoEta( const std::string &geom_id, const double &u, double &eta_out );
16197
16236extern void ConvertEtatoU( const std::string &geom_id, const double &eta, double &u_out );
16237
16238
16293extern std::vector < vec3d > CompVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &u_in_vec, const std::vector < double > &w_in_vec);
16294
16349extern std::vector < vec3d > CompVecNorm01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &us, const std::vector < double > &ws);
16350
16412extern void CompVecCurvature01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &us, const std::vector < double > &ws, std::vector < double > &k1_out_vec, std::vector < double > &k2_out_vec, std::vector < double > &ka_out_vec, std::vector < double > &kg_out_vec);
16413
16490extern void ProjVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
16491
16590extern void ProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, const std::vector < double > &u0s, const std::vector < double > &w0s, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
16591
16592
16694extern void AxisProjVecPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector < vec3d > &pts, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
16695
16808extern void AxisProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector < vec3d > &pts, const std::vector < double > &u0s, const std::vector < double > &w0s, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
16809
16883extern std::vector < bool > VecInsideSurf( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts );
16884
16885
16947extern std::vector < vec3d > CompVecPntRST( const std::string &geom_id, const int &surf_indx, const std::vector < double > &r_in_vec, const std::vector < double > &s_in_vec, const std::vector < double > &t_in_vec );
16948
17021extern void FindRSTVec( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec, std::vector < double > &d_out_vec );
17022
17106extern void FindRSTVecGuess( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, const std::vector < double > &r0s, const std::vector < double > &s0s, const std::vector < double > &t0s, std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec, std::vector < double > &d_out_vec );
17107
17108
17176extern void ConvertRSTtoLMNVec( const std::string &geom_id, const int &surf_indx, const std::vector < double > &r_vec, const std::vector < double > &s_vec, const std::vector < double > &t_vec,
17177 std::vector < double > &l_out_vec, std::vector < double > &m_out_vec, std::vector < double > &n_out_vec );
17178
17245extern void ConvertLMNtoRSTVec( const std::string &geom_id, const int &surf_indx, const std::vector < double > &l_vec, const std::vector < double > &m_vec, const std::vector < double > &n_vec,
17246 std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec );
17247
17282extern void GetUWTess01(const std::string &geom_id, const int &surf_indx, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec);
17283
17284
17285//======================= Measure Functions ============================//
17334extern string AddRuler( const string & startgeomid, int startsurfindx, double startu, double startw,
17335 const string & endgeomid, int endsurfindx, double endu, double endw, const string & name );
17392extern std::vector < string > GetAllRulers();
17393
17441extern void DelRuler( const string &id );
17442
17485extern void DeleteAllRulers();
17486
17487
17524extern string AddProbe( const string & geomid, int surfindx, double u, double w, const string & name );
17525
17565extern std::vector < string > GetAllProbes();
17566
17608extern void DelProbe( const string &id );
17609
17650extern void DeleteAllProbes();
17651
17652
17653//======================= Advanced Link Functions ============================//
17654
17683extern std::vector< std::string > GetAdvLinkNames();
17684
17732extern int GetLinkIndex( const string & name );
17733
17798extern void DelAdvLink( int index );
17799
17863extern void DelAllAdvLinks();
17864
17910extern void AddAdvLink( const string & name );
17911
17959extern void AddAdvLinkInput( int index, const string & parm_id, const string & var_name );
17960
18008extern void AddAdvLinkOutput( int index, const string & parm_id, const string & var_name );
18009
18068extern void DelAdvLinkInput( int index, const string & var_name );
18069
18128extern void DelAdvLinkOutput( int index, const string & var_name );
18129
18189extern std::vector< std::string > GetAdvLinkInputNames( int index );
18190
18250extern std::vector< std::string > GetAdvLinkInputParms( int index );
18251
18311extern std::vector< std::string > GetAdvLinkOutputNames( int index );
18312
18372extern std::vector< std::string > GetAdvLinkOutputParms( int index );
18373
18438extern bool ValidateAdvLinkParms( int index );
18439
18486extern void SetAdvLinkCode( int index, const string & code );
18487
18542extern std::string GetAdvLinkCode( int index );
18543
18601extern void SearchReplaceAdvLinkCode( int index, const string & from, const string & to );
18602
18663extern bool BuildAdvLinkScript( int index );
18664
18665
18666} // End vsp namespace
18667
18668
18669#endif // !defined(VSPAPI__INCLUDED_)
Definition Vec3d.h:235
bool CheckForVSPAERO(const std::string &path)
int GetVSPVersionChange()
std::string GetVSPVersion()
int GetVSPVersionMinor()
bool SetVSPAEROPath(const std::string &path)
std::string GetVSPExePath()
std::string GetVSPAEROPath()
int GetVSPVersionMajor()
void VSPRenew()
void VSPCheckSetup()
std::vector< std::string > GetAnalysisInputNames(const std::string &analysis)
const std::vector< int > & GetIntAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
void SetIntAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< int > &indata, int index=0)
void PrintAnalysisDocs(const std::string &analysis_name)
std::string ExecAnalysis(const std::string &analysis)
int GetNumAnalysis()
std::vector< std::string > ListAnalysis()
void SetVec3dAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< vec3d > &indata, int index=0)
void SetStringAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< std::string > &indata, int index=0)
void PrintAnalysisInputs(const std::string &analysis_name)
int GetAnalysisInputType(const std::string &analysis, const std::string &name)
void SetAnalysisInputDefaults(const std::string &analysis)
const std::vector< double > & GetDoubleAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
std::string GetAnalysisDoc(const std::string &analysis)
const std::vector< vec3d > & GetVec3dAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
void SetDoubleAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< double > &indata, int index=0)
std::string GetAnalysisInputDoc(const std::string &analysis, const std::string &name)
const std::vector< std::string > & GetStringAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
int GetNumAnalysisInputData(const std::string &analysis, const std::string &name)
void SetBORAirfoilUpperPnts(const std::string &bor_id, const std::vector< vec3d > &up_pnt_vec)
void ReadBORFileAirfoil(const std::string &bor_id, const std::string &file_name)
void FitBORAfCST(const std::string &bor_id, int deg)
std::vector< double > GetBORLowerCSTCoefs(const std::string &bor_id)
vec3d ComputeBORXSecPnt(const std::string &bor_id, double fract)
std::vector< vec3d > GetBORAirfoilLowerPnts(const std::string &bor_id)
void SetBORXSecPnts(const std::string &bor_id, std::vector< vec3d > &pnt_vec)
void PromoteBORCSTUpper(const std::string &bor_id)
void SetBORUpperCST(const std::string &bor_id, int deg, const std::vector< double > &coefs)
void SetBORLowerCST(const std::string &bor_id, int deg, const std::vector< double > &coefs)
void ChangeBORXSecShape(const string &bor_id, int type)
vec3d ComputeBORXSecTan(const std::string &bor_id, double fract)
int GetBORUpperCSTDegree(const std::string &bor_id)
void DemoteBORCSTLower(const std::string &bor_id)
void PromoteBORCSTLower(const std::string &bor_id)
int GetBORXSecShape(const string &bor_id)
std::vector< double > GetBORUpperCSTCoefs(const std::string &bor_id)
std::vector< vec3d > ReadBORFileXSec(const std::string &bor_id, const std::string &file_name)
std::vector< vec3d > GetBORAirfoilUpperPnts(const std::string &bor_id)
void DemoteBORCSTUpper(const std::string &bor_id)
int GetBORLowerCSTDegree(const std::string &bor_id)
void SetBORAirfoilPnts(const std::string &bor_id, const std::vector< vec3d > &up_pnt_vec, const std::vector< vec3d > &low_pnt_vec)
void SetBORAirfoilLowerPnts(const std::string &bor_id, const std::vector< vec3d > &low_pnt_vec)
void SetBackground3DRelativePath(const string &id, const string &fname)
void ShowAllBackground3Ds()
int GetNumBackground3Ds()
string AddBackground3D()
vector< string > GetAllBackground3DAbsolutePaths()
vector< string > GetAllBackground3Ds()
string GetBackground3DRelativePath(const string &id)
void SetBackground3DAbsolutePath(const string &id, const string &fname)
void DelBackground3D(const string &id)
vector< string > GetAllBackground3DRelativePaths()
void DelAllBackground3Ds()
string GetBackground3DAbsolutePath(const string &id)
void HideAllBackground3Ds()
void AddCFDSource(int type, const std::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 DeleteAllCFDSources()
void ComputeCFDMesh(int set, int degenset, int file_export_types)
void SetCFDWakeFlag(const std::string &geom_id, bool flag)
void AddDefaultSources()
void SetCFDMeshVal(int type, double val)
void SetComputationFileName(int file_type, const std::string &file_name)
void AddSelectedToCSGroup(const vector< int > &selected, int CSGroupIndex)
void SetVSPAEROControlGroupName(const string &name, int CSGroupIndex)
std::vector< std::string > GetActiveCSNameVec(int CSGroupIndex)
void RemoveSelectedFromCSGroup(const vector< int > &selected, int CSGroupIndex)
void AddAllToVSPAEROControlSurfaceGroup(int CSGroupIndex)
std::vector< std::string > GetAvailableCSNameVec(int CSGroupIndex)
int CreateVSPAEROControlSurfaceGroup()
int GetNumControlSurfaceGroups()
std::string GetVSPAEROControlGroupName(int CSGroupIndex)
std::vector< std::string > GetCompleteCSNameVec()
void RemoveAllFromVSPAEROControlSurfaceGroup(int CSGroupIndex)
void AutoGroupVSPAEROControlSurfaces()
std::string ComputeCompGeom(int set, bool half_mesh, int file_export_types)
std::string ComputeMassProps(int set, int num_slices, int idir)
std::string ComputePlaneSlice(int set, int num_slices, const vec3d &norm, bool auto_bnd, double start_bnd=0, double end_bnd=0, bool measureduct=false)
void ComputeDegenGeom(int set, int file_export_types)
void WriteDESFile(const std::string &file_name)
int GetNumDesignVars()
void AddDesignVar(const std::string &parm_id, int type)
void DeleteAllDesignVars()
void ReadApplyXDDMFile(const std::string &file_name)
void ReadApplyDESFile(const std::string &file_name)
void WriteXDDMFile(const std::string &file_name)
std::string GetDesignVar(int index)
int GetDesignVarType(int index)
void MoveEditXSecPnt(const std::string &xsec_id, const int &indx, const vec3d &new_pnt)
void EditXSecDelPnt(const std::string &xsec_id, const int &indx)
void EditXSecConvertTo(const std::string &xsec_id, const int &newtype)
std::vector< bool > GetEditXSecFixedUVec(const std::string &xsec_id)
void ConvertXSecToEdit(const std::string &geom_id, const int &indx=0)
void SetEditXSecFixedUVec(const std::string &xsec_id, std::vector< bool > fixed_u_vec)
std::vector< vec3d > GetEditXSecCtrlVec(const std::string &xsec_id, bool non_dimensional=true)
void SetEditXSecPnts(const std::string &xsec_id, const std::vector< double > &u_vec, const std::vector< vec3d > &control_pts, const std::vector< double > &r_vec)
int EditXSecSplit01(const std::string &xsec_id, const double &u)
std::vector< double > GetEditXSecUVec(const std::string &xsec_id)
void EditXSecInitShape(const std::string &xsec_id)
void ReparameterizeEditXSec(const std::string &xsec_id)
@ SET_NONE
@ SET_ALL
std::string GetFeaPartID(const std::string &fea_struct_id, int fea_part_index)
std::string GetFeaStructName(const std::string &geom_id, int fea_struct_ind)
std::vector< std::string > GetFeaSubSurfIDVec(const std::string &fea_struct_id)
void DeleteFeaPart(const std::string &geom_id, int fea_struct_ind, const std::string &part_id)
std::vector< std::string > GetFeaStructIDVec()
void DeleteFeaSubSurf(const std::string &geom_id, int fea_struct_ind, const std::string &ss_id)
int GetFeaSubSurfIndex(const string &ss_id)
int GetFeaPartType(const std::string &part_id)
int NumFeaParts(const std::string &fea_struct_id)
int NumFeaSubSurfs(const std::string &fea_struct_id)
void SetFeaMeshStructIndex(int struct_index)
void SetFeaMeshVal(const std::string &geom_id, int fea_struct_ind, int type, double val)
std::string AddFeaBC(const string &fea_struct_id, int type=-1)
void DeleteFeaStruct(const std::string &geom_id, int fea_struct_ind)
int GetFeaStructIndex(const std::string &struct_id)
void SetFeaSubSurfName(const std::string &subsurf_id, const std::string &name)
std::vector< std::string > GetFeaPartIDVec(const std::string &fea_struct_id)
std::string GetFeaStructParentGeomID(const std::string &struct_id)
void SetFeaPartName(const std::string &part_id, const std::string &name)
void SetFeaStructName(const std::string &geom_id, int fea_struct_ind, const std::string &name)
void ComputeFeaMesh(const std::string &geom_id, int fea_struct_ind, int file_type)
std::string GetFeaPartName(const std::string &part_id)
std::string GetFeaPartPerpendicularSparID(const std::string &part_id)
std::string AddFeaSubSurf(const std::string &geom_id, int fea_struct_ind, int type)
std::vector< std::string > GetFeaBCIDVec(const string &fea_struct_id)
int NumFeaStructures()
std::string AddFeaProperty(int property_type=0)
void SetFeaMeshFileName(const std::string &geom_id, int fea_struct_ind, int file_type, const string &file_name)
void SetFeaPartPerpendicularSparID(const std::string &part_id, const std::string &perpendicular_spar_id)
void DelFeaBC(const string &fea_struct_id, const std::string &bc_id)
std::string AddFeaMaterial()
std::string AddFeaPart(const std::string &geom_id, int fea_struct_ind, int type)
int NumFeaBCs(const string &fea_struct_id)
std::string GetFeaSubSurfName(const std::string &subsurf_id)
int AddFeaStruct(const std::string &geom_id, bool init_skin=true, int surfindex=0)
std::string GetFeaStructID(const std::string &geom_id, int fea_struct_ind)
void ReadVSPFile(const std::string &file_name)
void SetVSP3FileName(const std::string &file_name)
void SetBEMPropID(const string &prop_id)
std::string ImportFile(const std::string &file_name, int file_type, const std::string &parent)
std::string ExportFile(const std::string &file_name, int thick_set, int file_type, int subsFlag=1, int thin_set=vsp::SET_NONE)
void WriteVSPFile(const std::string &file_name, int set=SET_ALL)
void InsertVSPFile(const std::string &file_name, const std::string &parent_geom_id)
void DeleteGeom(const std::string &geom_id)
std::string GetGeomName(const std::string &geom_id)
std::vector< std::string > GetGeomTypes()
vec3d GetGeomBBoxMax(const std::string &geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true)
std::vector< std::string > GetGeomParmIDs(const std::string &geom_id)
int GetGeomVSPSurfType(const std::string &geom_id, int main_surf_ind=0)
std::vector< std::string > FindGeomsWithName(const std::string &name)
std::string FindGeom(const std::string &name, int index)
int GetTotalNumSurfs(const std::string &geom_id)
void UpdateGeom(const std::string &geom_id)
std::string GetGeomParent(const std::string &geom_id)
void SetDriverGroup(const std::string &geom_id, int section_index, int driver_0, int driver_1=-1, int driver_2=-1)
int GetNumMainSurfs(const std::string &geom_id)
std::vector< std::string > PasteGeomClipboard(const std::string &parent=std::string())
void CutGeomToClipboard(const std::string &geom_id)
std::vector< std::string > FindGeoms()
void SetGeomName(const std::string &geom_id, const std::string &name)
std::vector< std::string > GetGeomChildren(const std::string &geom_id)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
std::string GetGeomTypeName(const std::string &geom_id)
vec3d GetGeomBBoxMin(const std::string &geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true)
void CopyGeomToClipboard(const std::string &geom_id)
int GetGeomVSPSurfCfdType(const std::string &geom_id, int main_surf_ind=0)
void DeleteGeomVec(const std::vector< std::string > &del_vec)
void TranslateSet(int set_index, const vec3d &translation_vec)
void TransformSet(int set_index, const vec3d &translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag)
void ScaleSet(int set_index, double scale)
void RotateSet(int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg)
string AddProbe(const string &geomid, int surfindx, double u, double w, const string &name)
void DeleteAllRulers()
void DeleteAllProbes()
void DelProbe(const string &id)
string AddRuler(const string &startgeomid, int startsurfindx, double startu, double startw, const string &endgeomid, int endsurfindx, double endu, double endw, const string &name)
std::vector< string > GetAllProbes()
std::vector< string > GetAllRulers()
void DelRuler(const string &id)
void SetPCurve(const std::string &geom_id, const int &pcurveid, const std::vector< double > &tvec, const std::vector< double > &valvec, const int &newtype)
std::vector< double > PCurveGetValVec(const std::string &geom_id, const int &pcurveid)
std::vector< double > PCurveGetTVec(const std::string &geom_id, const int &pcurveid)
void ApproximateAllPropellerPCurves(const std::string &geom_id)
void PCurveDeletePt(const std::string &geom_id, const int &pcurveid, const int &indx)
void ResetPropellerThicknessCurve(const std::string &geom_id)
int PCurveSplit(const std::string &geom_id, const int &pcurveid, const double &tsplit)
int PCurveGetType(const std::string &geom_id, const int &pcurveid)
void PCurveConvertTo(const std::string &geom_id, const int &pcurveid, const int &newtype)
void WriteBodyFFCSVFile(const std::string &file_name)
void AddExcrescence(const std::string &excresName, const int &excresType, const double &excresVal)
void UpdateParasiteDrag()
void WriteCfEqnCSVFile(const std::string &file_name)
void WritePartialCfMethodCSVFile(const std::string &file_name)
void WriteAtmosphereCSVFile(const std::string &file_name, const int &atmos_type)
void WriteWingFFCSVFile(const std::string &file_name)
void CalcAtmosphere(const double &alt, const double &delta_temp, const int &atmos_type, double &temp, double &pres, double &pres_ratio, double &rho_ratio)
void DeleteExcrescence(const int &index)
std::string GetVehicleID()
std::string GetUserParmContainer()
std::vector< std::string > FindContainerGroupNames(const std::string &parm_container_id)
std::vector< std::string > GetAllUserParms()
void DeleteAllUserParm()
void DeleteUserParm(const std::string &id)
std::string FindContainer(const std::string &name, int index)
std::vector< std::string > FindContainerParmIDs(const std::string &parm_container_id)
int GetNumUserParms()
int GetNumPredefinedUserParms()
std::vector< std::string > FindContainers()
std::vector< std::string > FindContainersWithName(const std::string &name)
std::string GetContainerName(const std::string &parm_container_id)
string AddUserParm(int type, const string &name, const string &group)
std::string FindParm(const std::string &parm_container_id, const std::string &parm_name, const std::string &group_name)
void SetParmUpperLimit(const std::string &parm_id, double val)
double GetParmLowerLimit(const std::string &parm_id)
std::string GetParmName(const std::string &parm_id)
int GetParmType(const std::string &parm_id)
bool ValidParm(const std::string &id)
std::string GetParmDescript(const std::string &parm_id)
int GetIntParmVal(const std::string &parm_id)
double SetParmVal(const std::string &parm_id, double val)
double SetParmValUpdate(const std::string &parm_id, double val)
double GetParmVal(const std::string &parm_id)
std::string GetParm(const std::string &geom_id, const std::string &name, const std::string &group)
void SetParmDescript(const std::string &parm_id, const std::string &desc)
double GetParmUpperLimit(const std::string &parm_id)
void SetParmLowerLimit(const std::string &parm_id, double val)
double SetParmValLimits(const std::string &parm_id, double val, double lower_limit, double upper_limit)
std::string GetParmDisplayGroupName(const std::string &parm_id)
bool GetBoolParmVal(const std::string &parm_id)
std::string GetParmGroupName(const std::string &parm_id)
std::string GetParmContainer(const std::string &parm_id)
int GetNumResults(const std::string &name)
int GetNumData(const std::string &results_id, const std::string &data_name)
void PrintResults(const std::string &results_id)
const std::vector< vec3d > & GetVec3dResults(const std::string &id, const std::string &name, int index=0)
std::vector< std::string > GetAllResultsNames()
void DeleteResult(const std::string &id)
std::string FindLatestResultsID(const std::string &name)
const std::vector< int > & GetIntResults(const std::string &id, const std::string &name, int index=0)
std::string GetResultsName(const std::string &results_id)
const std::vector< std::vector< double > > & GetDoubleMatResults(const std::string &id, const std::string &name, int index=0)
const std::vector< double > & GetDoubleResults(const std::string &id, const std::string &name, int index=0)
int GetResultsType(const std::string &results_id, const std::string &data_name)
std::string GetResultsSetDoc(const std::string &results_id)
std::vector< std::string > GetAllDataNames(const std::string &results_id)
void WriteResultsCSVFile(const std::string &id, const std::string &file_name)
std::string FindResultsID(const std::string &name, int index=0)
void DeleteAllResults()
void WriteTestResults()
void PrintResultsDocs(const std::string &results_id)
std::string CreateGeomResults(const std::string &geom_id, const std::string &name)
const std::vector< std::string > & GetStringResults(const std::string &id, const std::string &name, int index=0)
void CopyPasteSet(int copyIndex, int pasteIndex)
void SetSetName(int index, const std::string &name)
bool GetSetFlag(const std::string &geom_id, int set_index)
std::vector< std::string > GetGeomSet(const std::string &name)
int GetSetIndex(const std::string &name)
std::vector< std::string > GetGeomSetAtIndex(int index)
int GetNumSets()
void SetSetFlag(const std::string &geom_id, int set_index, bool flag)
std::string GetSetName(int index)
double ComputeMinClearanceDistance(const std::string &geom_id, int set=SET_ALL)
double SnapParm(const std::string &parm_id, double target_min_dist, bool inc_flag, int set=SET_ALL)
int GetNumSubSurf(const std::string &geom_id)
std::vector< std::string > GetSubSurfIDVec(const std::string &geom_id)
std::string GetSubSurfName(const std::string &geom_id, const std::string &sub_id)
std::vector< std::string > GetAllSubSurfIDs()
std::string AddSubSurf(const std::string &geom_id, int type, int surfindex=0)
void DeleteSubSurf(const std::string &geom_id, const std::string &sub_id)
int GetSubSurfType(const std::string &sub_id)
void SetSubSurfName(const std::string &geom_id, const std::string &sub_id, const std::string &name)
std::vector< std::string > GetSubSurfParmIDs(const std::string &sub_id)
int GetSubSurfIndex(const std::string &sub_id)
std::string GetSubSurf(const std::string &geom_id, int index)
void CompVecCurvature01(const std::string &geom_id, const int &surf_indx, const std::vector< double > &us, const std::vector< double > &ws, std::vector< double > &k1_out_vec, std::vector< double > &k2_out_vec, std::vector< double > &ka_out_vec, std::vector< double > &kg_out_vec)
vec3d CompTanU01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void AxisProjVecPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector< vec3d > &pts, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
double ProjPnt01(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &u_out, double &w_out)
vec3d CompPntRST(const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t)
void ConvertLMNtoRST(const std::string &geom_id, const int &surf_indx, const double &l, const double &m, const double &n, double &r_out, double &s_out, double &t_out)
void ProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, const std::vector< double > &u0s, const std::vector< double > &w0s, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
void ProjVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
bool InsideSurf(const std::string &geom_id, const int &surf_indx, const vec3d &pt)
vec3d CompPnt01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void FindRSTVec(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, std::vector< double > &r_out_vec, std::vector< double > &s_out_vec, std::vector< double > &t_out_vec, std::vector< double > &d_out_vec)
double ProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out)
void ConvertLMNtoRSTVec(const std::string &geom_id, const int &surf_indx, const std::vector< double > &l_vec, const std::vector< double > &m_vec, const std::vector< double > &n_vec, std::vector< double > &r_out_vec, std::vector< double > &s_out_vec, std::vector< double > &t_out_vec)
void ConvertRSTtoLMN(const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t, double &l_out, double &m_out, double &n_out)
vec3d CompTanW01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void AxisProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector< vec3d > &pts, const std::vector< double > &u0s, const std::vector< double > &w0s, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
void ConvertRSTtoLMNVec(const std::string &geom_id, const int &surf_indx, const std::vector< double > &r_vec, const std::vector< double > &s_vec, const std::vector< double > &t_vec, std::vector< double > &l_out_vec, std::vector< double > &m_out_vec, std::vector< double > &n_out_vec)
double ProjPnt01I(const std::string &geom_id, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out)
void FindRSTVecGuess(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, const std::vector< double > &r0s, const std::vector< double > &s0s, const std::vector< double > &t0s, std::vector< double > &r_out_vec, std::vector< double > &s_out_vec, std::vector< double > &t_out_vec, std::vector< double > &d_out_vec)
void ConvertRtoL(const std::string &geom_id, const int &surf_indx, const double &r, double &l_out)
std::vector< bool > VecInsideSurf(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts)
std::vector< vec3d > CompVecPntRST(const std::string &geom_id, const int &surf_indx, const std::vector< double > &r_in_vec, const std::vector< double > &s_in_vec, const std::vector< double > &t_in_vec)
double AxisProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out)
double AxisProjPnt01I(const std::string &geom_id, const int &iaxis, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out)
void CompCurvature01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w, double &k1_out, double &k2_out, double &ka_out, double &kg_out)
void ConvertLtoR(const std::string &geom_id, const int &surf_indx, const double &l, double &r_out)
void ConvertUtoEta(const std::string &geom_id, const double &u, double &eta_out)
double FindRST(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &r_out, double &s_out, double &t_out)
vec3d CompNorm01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void ConvertEtatoU(const std::string &geom_id, const double &eta, double &u_out)
std::vector< vec3d > CompVecNorm01(const std::string &geom_id, const int &surf_indx, const std::vector< double > &us, const std::vector< double > &ws)
std::vector< vec3d > CompVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector< double > &u_in_vec, const std::vector< double > &w_in_vec)
void GetUWTess01(const std::string &geom_id, const int &surf_indx, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec)
double FindRSTGuess(const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &r0, const double &s0, const double &t0, double &r_out, double &s_out, double &t_out)
double AxisProjPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, double &u_out, double &w_out)
int GetNumUnsteadyGroups()
std::string GetUnsteadyGroupName(int group_index)
int GetNumUnsteadyRotorGroups()
std::vector< int > GetUnsteadyGroupSurfIndexes(int group_index)
std::vector< std::string > GetUnsteadyGroupCompIDs(int group_index)
int GetNumActuatorDisks()
std::string FindActuatorDisk(int disk_index)
std::string FindUnsteadyGroup(int group_index)
string GetVSPAERORefWingID()
string SetVSPAERORefWingID(const std::string &geom_id)
void AddVarPresetParm(const std::string &parm_id)
std::vector< std::string > GetVarPresetParmIDs()
bool DeleteVarPresetSet(const std::string &group_name, const std::string &setting_name)
std::vector< double > GetVarPresetParmValsWNames(const std::string &group_name, const std::string &setting_name)
std::string GetCurrentSettingName()
std::vector< std::string > GetVarPresetGroupNames()
std::vector< std::string > GetVarPresetParmIDsWName(const std::string &group_name)
std::vector< double > GetVarPresetParmVals()
void DeleteVarPresetParm(const std::string &parm_id)
void AddVarPresetGroup(const std::string &group_name)
std::string GetCurrentGroupName()
void AddVarPresetSetting(const std::string &setting_name)
void EditVarPresetParm(const std::string &parm_id, double parm_val)
std::vector< std::string > GetVarPresetSettingNamesWName(const std::string &group_name)
std::vector< std::string > GetVarPresetSettingNamesWIndex(int group_index)
void SwitchVarPreset(const std::string &group_name, const std::string &setting_name)
void VSPExit(int error_code)
int GetAndResetUpdateCount()
void Update(bool update_managers=true)
void ClearVSPModel()
std::string GetVSPFileName()
void ResetViews()
void StopGUI()
void PopupMsg(const std::string &msg)
bool IsGUIBuild()
bool IsEventLoopRunning()
void SetViewAxis(bool vaxis)
void SetGeomMaterialName(const string &geom_id, const string &name)
void SetGeomDisplayType(const string &geom_id, int type)
void SetShowBorders(bool brdr)
vector< string > GetMaterialNames()
void Lock()
void SetGUIElementDisable(int e, bool state)
void SetWindowLayout(int r, int c)
void SetAllViews(int view)
void SetView(int viewport, int view)
void SetGeomScreenDisable(int s, bool state)
void SetGeomDrawType(const string &geom_id, int type)
void UpdateGUI()
void Unlock()
void SetGeomWireColor(const string &geom_id, int r, int g, int b)
void StartGUI()
void FitAllViews()
void SetBackground(double r, double g, double b)
void DisableStopGUIMenuItem()
void ScreenGrab(const string &fname, int w, int h, bool transparentBG, bool autocrop=false)
void EnableStopGUIMenuItem()
void SetGUIScreenDisable(int s, bool state)
void AddMaterial(const string &name, const vec3d &ambient, const vec3d &diffuse, const vec3d &specular, const vec3d &emissive, const double &alpha, const double &shininess)
void InsertXSec(const std::string &geom_id, int index, int type)
std::vector< vec3d > ReadFileXSec(const std::string &xsec_id, const std::string &file_name)
void SetXSecContinuity(const std::string &xsec_id, int cx)
int GetLowerCSTDegree(const std::string &xsec_id)
void SetXSecWidthHeight(const std::string &xsec_id, double w, double h)
void SetXSecPnts(const std::string &xsec_id, std::vector< vec3d > &pnt_vec)
void DemoteCSTUpper(const std::string &xsec_id)
std::vector< vec3d > GetAirfoilLowerPnts(const std::string &xsec_id)
void SetXSecWidth(const std::string &xsec_id, double w)
double GetXSecWidth(const std::string &xsec_id)
std::vector< std::string > GetXSecParmIDs(const std::string &xsec_id)
std::vector< vec3d > GetFeatureLinePnts(const string &geom_id)
void SetXSecHeight(const std::string &xsec_id, double h)
void SetLowerCST(const std::string &xsec_id, int deg, const std::vector< double > &coefs)
void PasteXSec(const std::string &geom_id, int index)
std::vector< double > GetUpperCSTCoefs(const std::string &xsec_id)
vec3d ComputeXSecTan(const std::string &xsec_id, double fract)
void SetAirfoilPnts(const std::string &xsec_id, const std::vector< vec3d > &up_pnt_vec, const std::vector< vec3d > &low_pnt_vec)
std::string GetXSecParm(const std::string &xsec_id, const std::string &name)
std::vector< vec3d > GetAirfoilCoordinates(const std::string &geom_id, const double &foilsurf_u)
void PromoteCSTUpper(const std::string &xsec_id)
void PromoteCSTLower(const std::string &xsec_id)
std::vector< double > GetVKTAirfoilCpDist(const double &alpha, const double &epsilon, const double &kappa, const double &tau, const std::vector< vec3d > &xyz_data)
void DemoteCSTLower(const std::string &xsec_id)
void FitAfCST(const std::string &xsec_surf_id, int xsec_index, int deg)
void CopyXSec(const std::string &geom_id, int index)
vec3d ComputeXSecPnt(const std::string &xsec_id, double fract)
std::vector< double > GetLowerCSTCoefs(const std::string &xsec_id)
void SetXSecTanStrengths(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
void ReadFileAirfoil(const std::string &xsec_id, const std::string &file_name)
void SetXSecTanAngles(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
std::vector< vec3d > GetHersheyBarDragDist(const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag=false)
void ResetXSecSkinParms(const std::string &xsec_id)
std::vector< vec3d > GetAirfoilUpperPnts(const std::string &xsec_id)
std::vector< vec3d > GetHersheyBarLiftDist(const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag=false)
std::vector< vec3d > GetVKTAirfoilPnts(const int &npts, const double &alpha, const double &epsilon, const double &kappa, const double &tau)
std::vector< vec3d > GetEllipsoidSurfPnts(const vec3d &center, const vec3d &abc_rad, int u_npts=20, int w_npts=20)
void CutXSec(const std::string &geom_id, int index)
std::vector< double > GetEllipsoidCpDist(const std::vector< vec3d > &surf_pnt_vec, const vec3d &abc_rad, const vec3d &V_inf)
void SetAirfoilLowerPnts(const std::string &xsec_id, const std::vector< vec3d > &low_pnt_vec)
void SetAirfoilUpperPnts(const std::string &xsec_id, const std::vector< vec3d > &up_pnt_vec)
int GetXSecShape(const std::string &xsec_id)
void SetXSecTanSlews(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
void WriteBezierAirfoil(const std::string &file_name, const std::string &geom_id, const double &foilsurf_u)
int GetUpperCSTDegree(const std::string &xsec_id)
void SetXSecCurvatures(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
double GetXSecHeight(const std::string &xsec_id)
void WriteSeligAirfoil(const std::string &file_name, const std::string &geom_id, const double &foilsurf_u)
void SetUpperCST(const std::string &xsec_id, int deg, const std::vector< double > &coefs)
std::string GetXSecSurf(const std::string &geom_id, int index)
void SetXSecSurfGlobalXForm(const std::string &xsec_surf_id, const Matrix4d &mat)
std::string GetXSec(const std::string &xsec_surf_id, int xsec_index)
int GetNumXSecSurfs(const std::string &geom_id)
Matrix4d GetXSecSurfGlobalXForm(const std::string &xsec_surf_id)
int GetNumXSec(const std::string &xsec_surf_id)
void ChangeXSecShape(const std::string &xsec_surf_id, int xsec_index, int type)