OpenVSP API Documentation 3.43.1
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
198
199#if !defined(VSPAPI__INCLUDED_)
200#define VSPAPI__INCLUDED_
201
202#ifdef SWIG
203%feature("autodoc", 1);
204%feature("doxygen:ignore:forcpponly", range="end");
205%feature("doxygen:ignore:beginPythonOnly", range="end:endPythonOnly", contents="parse");
206
207#endif
208
209#include "Defines.h"
210
211#include "APIErrorMgr.h"
212#include "APIUpdateCountMgr.h"
213#include "Vec3d.h"
214#include "Matrix4d.h"
215
216#include <string>
217#include <stack>
218#include <vector>
219
220
221using std::string;
222using std::stack;
223using std::vector;
224
225namespace vsp
226{
227
228//======================== API Functions ================================//
255
256extern void VSPCheckSetup();
257
289
290extern void VSPRenew();
291
292
333
334extern void Update( bool update_managers = true );
335
343
344extern void VSPExit( int error_code );
345
353
354extern void VSPCrash( int crash_type );
355
367
369
370
393
394extern std::string GetVSPVersion();
395
426
428
459
461
492
494
519
520extern std::string GetVSPExePath();
521
522
552
553extern bool SetVSPAEROPath( const std::string & path );
554
580
581extern std::string GetVSPAEROPath();
582
613
614extern bool CheckForVSPAERO( const std::string & path );
615
645
646extern bool SetVSPHelpPath( const std::string & path );
647
672
673extern std::string GetVSPHelpPath();
674
703
704extern bool CheckForVSPHelp( const std::string & path );
705
706extern void RegisterCFDMeshAnalyses();
707
708
709//======================== File I/O ================================//
768
769extern void ReadVSPFile( const std::string & file_name );
770
830
831extern void WriteVSPFile( const std::string & file_name, int set = SET_ALL );
832
891
892extern void SetVSP3FileName( const std::string & file_name );
893
938
939extern std::string GetVSPFileName();
940
966
967extern void ClearVSPModel();
968
978
979extern void InsertVSPFile( const std::string & file_name, const std::string & parent_geom_id );
980
981
1019
1020extern std::string ExportFile( const std::string & file_name, int thick_set, int file_type, int subsFlag = 1, int thin_set = vsp::SET_NONE, bool useMode = false, const string &modeID = "" );
1021
1033
1034extern std::string ImportFile( const std::string & file_name, int file_type, const std::string & parent );
1035
1036
1066
1067extern void SetBEMPropID( const string & prop_id );
1068
1069
1070//======================== Design Files ================================//
1071
1079
1080extern void ReadApplyDESFile( const std::string & file_name );
1081
1089
1090extern void WriteDESFile( const std::string & file_name );
1091
1099
1100extern void ReadApplyXDDMFile( const std::string & file_name );
1101
1109
1110extern void WriteXDDMFile( const std::string & file_name );
1111
1119
1120extern int GetNumDesignVars();
1121
1131
1132extern void AddDesignVar( const std::string & parm_id, int type );
1133
1140
1142
1151
1152extern std::string GetDesignVar( int index );
1153
1163
1164extern int GetDesignVarType( int index );
1165
1166
1167//======================== Computations ================================//
1196
1197extern void SetComputationFileName( int file_type, const std::string & file_name );
1198
1239
1240extern std::string ComputeMassProps( int set, int num_slices, int idir );
1241
1280
1281extern std::string ComputeCompGeom( int set, bool half_mesh, int file_export_types );
1282
1329
1330extern std::string ComputePlaneSlice( int set, int num_slices, const vec3d & norm, bool auto_bnd,
1331
1332 double start_bnd = 0, double end_bnd = 0, bool measureduct = false );
1361
1362extern void ComputeDegenGeom( int set, int file_export_types );
1363
1395
1396extern void ComputeCFDMesh( int set, int degenset, int file_export_types );
1397
1418
1419extern void SetCFDMeshVal( int type, double val );
1420
1454
1455extern void SetCFDWakeFlag( const std::string & geom_id, bool flag );
1456
1484
1486
1510
1511extern void AddDefaultSources();
1512
1548
1549extern void AddCFDSource( int type, const std::string & geom_id, int surf_index,
1550
1551 double l1, double r1, double u1, double w1,
1552 double l2 = 0, double r2 = 0, double u2 = 0, double w2 = 0 );
1553
1561
1562extern string GetVSPAERORefWingID();
1563
1620
1621extern string SetVSPAERORefWingID( const std::string & geom_id );
1622
1623
1624//======================== Analysis ================================//
1625
1648
1649extern int GetNumAnalysis();
1650
1682
1683extern std::vector<std::string> ListAnalysis();
1684
1721
1722extern std::vector<std::string> GetAnalysisInputNames( const std::string & analysis );
1723
1747
1748extern std::string GetAnalysisDoc( const std::string & analysis );
1749
1765
1766extern std::string GetAnalysisInputDoc( const std::string & analysis, const std::string & name );
1767
1791
1792extern std::string ExecAnalysis( const std::string & analysis );
1793
1794
1804
1805extern int GetNumAnalysisInputData( const std::string & analysis, const std::string & name );
1806
1841
1842extern int GetAnalysisInputType( const std::string & analysis, const std::string & name );
1843
1882
1883extern const std::vector< int > & GetIntAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1884
1915
1916extern const std::vector< double > & GetDoubleAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1917
1948
1949extern const std::vector<std::string> & GetStringAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1950
1983
1984extern const std::vector< vec3d > & GetVec3dAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1985
1986
2013
2014extern void SetAnalysisInputDefaults( const std::string & analysis );
2015
2054
2055extern void SetIntAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< int > & indata, int index = 0 );
2056
2097
2098extern void SetDoubleAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< double > & indata, int index = 0 );
2099
2130
2131extern void SetStringAnalysisInput( const std::string & analysis, const std::string & name, const std::vector<std::string> & indata, int index = 0 );
2132
2165
2166extern void SetVec3dAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< vec3d > & indata, int index = 0 );
2167
2168
2195
2196extern void PrintAnalysisInputs( const std::string & analysis_name );
2197
2224
2225extern void PrintAnalysisDocs( const std::string & analysis_name );
2226
2227//======================== Attributes ================================//
2228
2252
2253extern string SummarizeAttributes();
2254
2277
2279
2307
2308extern vector < string > FindAllAttributes();
2309
2310
2311
2340
2341extern vector < string > FindAttributesByName( const string & search_str );
2342
2367
2368extern string FindAttributeByName( const string & search_str, int index );
2369
2398
2399extern string FindAttributeInCollection( const string & obj_id, const string & search_str, int index );
2400
2433
2434extern vector< string > FindAttributeNamesInCollection(const string & collID );
2435
2468
2469extern vector< string > FindAttributesInCollection(const string & collID );
2470
2499
2500extern vector< string > FindAttributedObjects();
2501
2532
2533extern int GetObjectType(const string & attachID);
2534
2564
2565extern string GetObjectTypeName(const string & attachID);
2566
2597
2598extern string GetObjectName(const string & attachID);
2599
2600
2654
2655extern string GetObjectParent( const string & id );
2656
2685
2686extern string GetChildCollection(const string & attachID );
2687
2711
2712extern string GetGeomSetCollection( const int & index );
2713
2748
2749extern string GetAttributeName( const string & attrID );
2750
2790
2791extern string GetAttributeID(const string & collID, const string & attributeName, int index);
2792
2820
2821extern string GetAttributeDoc(const string & attrID);
2822
2861
2862extern int GetAttributeType( const string & attrID );
2863
2892
2893extern string GetAttributeTypeName(const string & attrID);
2894
2940
2941extern vector< int > GetAttributeBoolVal(const string & attrID);
2942
2988
2989extern vector< int > GetAttributeIntVal(const string & attrID);
2990
3035
3036extern vector< double > GetAttributeDoubleVal(const string & attrID);
3037
3082
3083extern vector< string > GetAttributeStringVal(const string & attrID);
3084
3142
3143extern vector< string > GetAttributeParmID(const string & attrID);
3144
3204
3205extern vector < double > GetAttributeParmVal( const string &attrID );
3206
3265
3266extern vector < string > GetAttributeParmName( const string &attrID );
3267
3316
3317extern vector< vec3d > GetAttributeVec3dVal(const string & attrID);
3318
3372
3373extern vector< vector < int > > GetAttributeIntMatrixVal(const string & attrID);
3374
3422
3423extern vector< vector < double > > GetAttributeDoubleMatrixVal(const string & attrID);
3424
3477
3478extern void SetAttributeName( const string & attrID, const string & name );
3479
3533
3534
3535extern void SetAttributeDoc( const string & attrID, const string & doc );
3536
3589
3590extern void SetAttributeBool( const string & attrID, bool value );
3591
3644
3645extern void SetAttributeInt( const string & attrID, int value );
3646
3702
3703extern void SetAttributeDouble( const string & attrID, double value );
3704
3758
3759extern void SetAttributeString( const string & attrID, const string & value );
3760
3824
3825extern void SetAttributeParmID( const string & attrID, const string & value );
3826
3880
3881extern void SetAttributeVec3d( const string & attrID, const vector < vec3d > & value );
3882
3939
3940extern void SetAttributeIntMatrix( const string & attrID, const vector < vector < int > > & value );
3941
3998
3999extern void SetAttributeDoubleMatrix( const string & attrID, const vector< vector< double > > & value );
4000
4076
4077extern void DeleteAttribute( const string & attrID );
4078
4126
4127extern string AddAttributeBool( const string & collID, const string & attributeName, bool value );
4128
4177
4178extern string AddAttributeInt( const string & collID, const string & attributeName, int value );
4179
4230
4231extern string AddAttributeDouble( const string & collID, const string & attributeName, double value );
4232
4282
4283extern string AddAttributeString( const string & collID, const string & attributeName, const string & value );
4284
4345
4346extern string AddAttributeParm( const string &collID, const string &attributeName, const string &parmID );
4347
4400
4401extern string AddAttributeVec3d( const string & collID, const string & attributeName, const vector < vec3d > & value );
4402
4457
4458extern string AddAttributeIntMatrix( const string & collID, const string & attributeName, const vector < vector < int > > & value );
4459
4514
4515extern string AddAttributeDoubleMatrix( const string & collID, const string & attributeName, const vector < vector < double > > & value );
4516
4562
4563extern string AddAttributeGroup( const string & collID, const string & attributeName );
4564
4612
4613extern int CopyAttribute( const string & attrID );
4614
4684
4685extern void CutAttribute( const string & attrID );
4686
4771
4772extern vector < string > PasteAttribute( const string & coll_id );
4773
4774//======================== Results ================================//
4810
4811extern std::vector<std::string> GetAllResultsNames();
4812
4846
4847extern std::vector<std::string> GetAllDataNames( const std::string & results_id );
4848
4874
4875extern int GetNumResults( const std::string & name );
4876
4916
4917extern std::string GetResultsName(const std::string & results_id );
4918
4958
4959extern std::string GetResultsSetDoc( const std::string & results_id );
4960
4961extern std::string GetResultsEntryDoc( const std::string & results_id, const std::string & data_name );
4962
4993
4994extern std::string FindResultsID( const std::string & name, int index = 0 );
4995
5032
5033extern std::string FindLatestResultsID( const std::string & name );
5034
5081
5082extern int GetNumData( const std::string & results_id, const std::string & data_name );
5083
5124
5125extern int GetResultsType( const std::string & results_id, const std::string & data_name );
5126
5174
5175extern const std::vector< int > & GetIntResults( const std::string & id, const std::string & name, int index = 0 );
5176
5214
5215extern const std::vector< double > & GetDoubleResults( const std::string & id, const std::string & name, int index = 0 );
5216
5227
5228extern const std::vector< std::vector< double > > & GetDoubleMatResults( const std::string & id, const std:: string & name, int index = 0 );
5229
5265
5266extern const std::vector<std::string> & GetStringResults( const std::string & id, const std::string & name, int index = 0 );
5267
5323
5324extern const std::vector< vec3d > & GetVec3dResults( const std::string & id, const std::string & name, int index = 0 );
5325
5366
5367extern std::string CreateGeomResults( const std::string & geom_id, const std::string & name );
5368
5406
5407extern void DeleteAllResults();
5408
5447
5448extern void DeleteResult( const std::string & id );
5449
5483
5484extern void WriteResultsCSVFile( const std::string & id, const std::string & file_name );
5485
5520
5521extern void PrintResults( const std::string &results_id );
5522
5557
5558extern void PrintResultsDocs( const std::string &results_id );
5559
5593
5594extern void WriteTestResults();
5595
5596//======================== GUI Functions ================================//
5597
5618
5619extern void InitGUI();
5620
5643
5644extern void StartGUI();
5645
5678
5680
5709
5711
5742
5743extern void StopGUI();
5744
5771
5772extern void PopupMsg( const std::string &msg );
5773
5812
5813extern void UpdateGUI();
5814
5847
5848extern bool IsGUIBuild();
5849
5896
5897extern void Lock( );
5898
5942
5943extern void Unlock( );
5944
5945
5976
5977extern bool IsEventLoopRunning( );
5978
6011
6012extern void ScreenGrab( const string & fname, int w, int h, bool transparentBG, bool autocrop = false );
6013
6032
6033extern void SetViewAxis( bool vaxis );
6034
6053
6054extern void SetShowBorders( bool brdr );
6055
6080
6081extern void SetGeomDrawType(const string &geom_id, int type);
6082
6108
6109extern void SetGeomWireColor( const string &geom_id, int r, int g, int b );
6110
6135
6136extern void SetGeomDisplayType(const string &geom_id, int type);
6137
6160
6161extern void SetGeomMaterialName( const string &geom_id, const string &name );
6162
6194
6195extern void AddMaterial( const string &name, const vec3d & ambient, const vec3d & diffuse, const vec3d & specular, const vec3d & emissive, const double & alpha, const double & shininess );
6196
6223
6224extern vector < string > GetMaterialNames();
6225
6246
6247extern void SetBackground( double r, double g, double b );
6248
6267
6268extern void SetAllViews( int view );
6269
6289
6290extern void SetView( int viewport, int view );
6291
6309
6310extern void FitAllViews();
6311
6329
6330extern void ResetViews();
6331
6351
6352extern void SetWindowLayout( int r, int c );
6353
6372
6373extern void SetGUIElementDisable( int e, bool state );
6374
6393
6394extern void SetGUIScreenDisable( int s, bool state );
6395
6414extern void SetGeomScreenDisable( int s, bool state );
6415
6416
6417//======================== Geom Functions ================================//
6448
6449extern std::vector<std::string> GetGeomTypes();
6450
6473
6474extern std::string AddGeom( const std::string & type, const std::string & parent = std::string() );
6475
6511
6512extern void UpdateGeom( const std::string & geom_id );
6513
6544
6545extern void DeleteGeom( const std::string & geom_id );
6546
6579
6580extern void DeleteGeomVec( const std::vector< std::string > & del_vec );
6581
6621
6622extern void CutGeomToClipboard( const std::string & geom_id );
6623
6663
6664extern void CopyGeomToClipboard( const std::string & geom_id );
6665
6705
6706extern std::vector<std::string> PasteGeomClipboard( const std::string & parent = std::string() );
6707
6740
6741extern std::vector<std::string> FindGeoms();
6742
6781
6782extern std::vector<std::string> FindGeomsWithName( const std::string & name );
6783
6827
6828extern std::string FindGeom( const std::string & name, int index );
6829
6867
6868extern void SetGeomName( const std::string & geom_id, const std::string & name );
6869
6903
6904extern std::string GetGeomName( const std::string & geom_id );
6905
6939
6940extern std::vector<std::string> GetGeomParmIDs( const std::string & geom_id );
6941
6971
6972extern std::string GetGeomTypeName( const std::string & geom_id );
6973
7005
7006extern std::string GetParm( const std::string & geom_id, const std::string & name, const std::string & group );
7007
7059
7060extern void SetGeomParent( const std::string& geom_id, const std::string& parent_id );
7061
7095
7096extern std::string GetGeomParent( const std::string& geom_id );
7097
7146
7147extern std::vector< std::string > GetGeomChildren( const std::string& geom_id );
7148
7178
7179extern int GetNumXSecSurfs( const std::string & geom_id );
7180
7219
7220extern int GetNumMainSurfs( const std::string & geom_id );
7221
7260
7261extern int GetTotalNumSurfs( const std::string& geom_id );
7262
7294
7295extern int GetGeomVSPSurfType( const std::string& geom_id, int main_surf_ind = 0 );
7296
7328
7329extern int GetGeomVSPSurfCfdType( const std::string& geom_id, int main_surf_ind = 0 );
7330
7370
7371extern vec3d GetGeomBBoxMax( const std::string& geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true );
7372
7412
7413extern vec3d GetGeomBBoxMin( const std::string& geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true );
7414
7415
7416//======================== SubSurface Functions ================================//
7449
7450extern std::string AddSubSurf( const std::string & geom_id, int type, int surfindex = 0 );
7451
7492
7493extern std::string GetSubSurf( const std::string & geom_id, int index );
7494
7535
7536extern std::vector<std::string> GetSubSurf( const std::string & geom_id, const std::string & name );
7537
7583
7584extern void DeleteSubSurf( const std::string & geom_id, const std::string & sub_id );
7585
7630
7631extern void DeleteSubSurf( const std::string & sub_id );
7632
7665
7666extern void SetSubSurfName(const std::string & geom_id, const std::string & sub_id, const std::string & name);
7667
7699
7700extern void SetSubSurfName( const std::string & sub_id, const std::string & name );
7701
7738
7739extern std::string GetSubSurfName( const std::string & geom_id, const std::string & sub_id );
7740
7776
7777extern std::string GetSubSurfName( const std::string & sub_id );
7778
7816
7817extern int GetSubSurfIndex( const std::string & sub_id );
7818
7881
7882extern std::vector<std::string> GetSubSurfIDVec( const std::string & geom_id );
7883
7891
7892extern std::vector<std::string> GetAllSubSurfIDs();
7893
7931
7932extern int GetNumSubSurf( const std::string & geom_id );
7933
7997
7998extern int GetSubSurfType( const std::string & sub_id );
7999
8044
8045extern std::vector<std::string> GetSubSurfParmIDs( const std::string & sub_id );
8046
8047
8078
8079extern int AddFeaStruct( const std::string & geom_id, bool init_skin = true, int surfindex = 0 );
8080
8116
8117extern void SetFeaMeshStructIndex( int struct_index );
8118
8154
8155extern void DeleteFeaStruct( const std::string & geom_id, int fea_struct_ind );
8156
8189
8190extern std::string GetFeaStructID( const std::string & geom_id, int fea_struct_ind );
8191
8235
8236extern int GetFeaStructIndex( const std::string & struct_id );
8237
8275
8276extern std::string GetFeaStructParentGeomID( const std::string & struct_id );
8277
8321
8322extern std::string GetFeaStructName( const std::string & geom_id, int fea_struct_ind );
8323
8371
8372extern void SetFeaStructName( const std::string & geom_id, int fea_struct_ind, const std::string & name );
8373
8409
8410extern std::vector< std::string > GetFeaStructIDVec();
8411
8450
8451extern void SetFeaPartName( const std::string & part_id, const std::string & name );
8452
8497
8498extern std::string AddFeaPart( const std::string & geom_id, int fea_struct_ind, int type );
8499
8546
8547extern void DeleteFeaPart( const std::string & geom_id, int fea_struct_ind, const std::string & part_id );
8548
8600
8601extern std::string GetFeaPartID( const std::string & fea_struct_id, int fea_part_index );
8602
8652
8653extern std::string GetFeaPartName( const std::string & part_id );
8654
8698
8699extern int GetFeaPartType( const std::string & part_id );
8700
8745
8746extern std::vector< std::string > GetFeaPartIDVec( const std::string & fea_struct_id );
8747
8792
8793extern std::vector< std::string > GetFeaSubSurfIDVec( const std::string & fea_struct_id );
8794
8863
8864extern void SetFeaPartPerpendicularSparID( const std::string& part_id, const std::string& perpendicular_spar_id );
8865
8933
8934extern std::string GetFeaPartPerpendicularSparID( const std::string& part_id );
8935
8974
8975extern void SetFeaSubSurfName( const std::string & subsurf_id, const std::string & name );
8976
9024
9025extern std::string GetFeaSubSurfName( const std::string & subsurf_id );
9026
9071
9072extern std::string AddFeaSubSurf( const std::string & geom_id, int fea_struct_ind, int type );
9073
9120
9121extern void DeleteFeaSubSurf( const std::string & geom_id, int fea_struct_ind, const std::string & ss_id );
9122
9177
9178extern int GetFeaSubSurfIndex( const string & ss_id );
9179
9217
9218extern int NumFeaStructures();
9219
9269
9270extern int NumFeaParts( const std::string & fea_struct_id );
9271
9320
9321extern int NumFeaSubSurfs( const std::string & fea_struct_id );
9322
9363
9364extern std::string AddFeaBC( const string & fea_struct_id, int type = -1 );
9365
9409
9410extern void DelFeaBC( const string & fea_struct_id, const std::string &bc_id );
9411
9455
9456extern std::vector< std::string > GetFeaBCIDVec( const string & fea_struct_id );
9457
9501
9502extern int NumFeaBCs( const string & fea_struct_id );
9503
9528
9529extern std::string AddFeaMaterial();
9530
9558
9559extern std::string AddFeaProperty( int property_type = 0 );
9560
9602
9603extern void SetFeaMeshVal( const std::string & geom_id, int fea_struct_ind, int type, double val );
9604
9654
9655extern void SetFeaMeshFileName( const std::string & geom_id, int fea_struct_ind, int file_type, const string & file_name );
9656
9707
9708extern void ComputeFeaMesh( const std::string & geom_id, int fea_struct_ind, int file_type );
9709
9759
9760extern void ComputeFeaMesh( const std::string & struct_id, int file_type );
9761
9819
9820extern void SetXSecAlias( const string & id, const string & alias );
9821
9879
9880extern string GetXSecAlias( const string & id );
9881
9939
9940extern void SetXSecCurveAlias( const string & id, const string & alias );
9941
9998
9999extern string GetXSecCurveAlias( const string & id );
10000
10039
10040extern void CutXSec( const std::string & geom_id, int index );
10041
10076
10077extern void CopyXSec( const std::string & geom_id, int index );
10078
10113
10114extern void PasteXSec( const std::string & geom_id, int index );
10115
10143
10144extern void InsertXSec( const std::string & geom_id, int index, int type );
10145
10146
10147//======================== Wing Section Functions ===================//
10148
10178
10179extern void SplitWingXSec( const string & wing_id, int section_index );
10180
10228
10229extern void SetDriverGroup( const std::string & geom_id, int section_index, int driver_0, int driver_1 = -1, int driver_2 = -1 );
10230
10231
10232//======================== XSecSurf ================================//
10261
10262extern std::string GetXSecSurf( const std::string & geom_id, int index );
10263
10314
10315extern int GetNumXSec( const std::string & xsec_surf_id );
10316
10351
10352extern std::string GetXSec( const std::string & xsec_surf_id, int xsec_index );
10353
10403
10404extern void ChangeXSecShape( const std::string & xsec_surf_id, int xsec_index, int type );
10405
10414
10415extern void SetXSecSurfGlobalXForm( const std::string & xsec_surf_id, const Matrix4d & mat );
10416
10425
10426extern Matrix4d GetXSecSurfGlobalXForm( const std::string & xsec_surf_id );
10427
10428
10429//======================== XSec ================================//
10470
10471extern int GetXSecShape( const std::string& xsec_id );
10472
10511
10512extern double GetXSecWidth( const std::string& xsec_id );
10513
10552
10553extern double GetXSecHeight( const std::string& xsec_id );
10554
10595
10596extern void SetXSecWidthHeight( const std::string& xsec_id, double w, double h );
10597
10636
10637extern void SetXSecWidth( const std::string& xsec_id, double w );
10638
10677
10678extern void SetXSecHeight( const std::string& xsec_id, double h );
10679
10717
10718extern std::vector<std::string> GetXSecParmIDs( const std::string& xsec_id );
10719
10762
10763extern std::string GetXSecParm( const std::string& xsec_id, const std::string& name );
10764
10804
10805extern std::vector<vec3d> ReadFileXSec( const std::string& xsec_id, const std::string& file_name );
10806
10859
10860extern void SetXSecPnts( const std::string& xsec_id, std::vector< vec3d > & pnt_vec );
10861
10903
10904extern vec3d ComputeXSecPnt( const std::string& xsec_id, double fract );
10905
10946
10947extern vec3d ComputeXSecTan( const std::string& xsec_id, double fract );
10948
10989
10990extern void ResetXSecSkinParms( const std::string& xsec_id );
10991
11032
11033extern void SetXSecContinuity( const std::string& xsec_id, int cx );
11034
11084
11085extern void SetXSecTanAngles( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
11086
11136
11137extern void SetXSecTanSlews( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
11138
11190
11191extern void SetXSecTanStrengths( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
11192
11244
11245extern void SetXSecCurvatures( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
11246
11284
11285extern void ReadFileAirfoil( const std::string& xsec_id, const std::string& file_name );
11286
11341
11342extern void SetAirfoilUpperPnts( const std::string& xsec_id, const std::vector< vec3d > & up_pnt_vec );
11343
11398
11399extern void SetAirfoilLowerPnts( const std::string& xsec_id, const std::vector< vec3d > & low_pnt_vec );
11400
11464
11465extern void SetAirfoilPnts( const std::string& xsec_id, const std::vector< vec3d > & up_pnt_vec, const std::vector< vec3d > & low_pnt_vec );
11466
11514
11515extern std::vector<vec3d> GetHersheyBarLiftDist( const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag = false );
11516
11564
11565extern std::vector<vec3d> GetHersheyBarDragDist( const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag = false );
11566
11618
11619extern std::vector<vec3d> GetVKTAirfoilPnts( const int &npts, const double &alpha, const double &epsilon, const double &kappa, const double &tau );
11620
11673
11674extern std::vector<double> GetVKTAirfoilCpDist( const double &alpha, const double &epsilon, const double &kappa, const double &tau, const std::vector<vec3d> &xyz_data );
11675
11689
11690extern std::vector<vec3d> GetEllipsoidSurfPnts( const vec3d &center, const vec3d &abc_rad, int u_npts = 20, int w_npts = 20 );
11691
11700
11701extern std::vector<vec3d> GetFeatureLinePnts( const string& geom_id );
11702
11784
11785extern std::vector<double> GetEllipsoidCpDist( const std::vector<vec3d> &surf_pnt_vec, const vec3d &abc_rad, const vec3d &V_inf );
11786
11787extern double IntegrateEllipsoidFlow( const vec3d &abc_rad, const int &abc_index );
11788
11831
11832extern std::vector<vec3d> GetAirfoilUpperPnts( const std::string& xsec_id );
11833
11876
11877extern std::vector<vec3d> GetAirfoilLowerPnts( const std::string& xsec_id );
11878
11888
11889extern std::vector<double> GetUpperCSTCoefs( const std::string& xsec_id );
11890
11900
11901extern std::vector<double> GetLowerCSTCoefs( const std::string& xsec_id );
11902
11912
11913extern int GetUpperCSTDegree( const std::string& xsec_id );
11914
11924
11925extern int GetLowerCSTDegree( const std::string& xsec_id );
11926
11937
11938extern void SetUpperCST( const std::string& xsec_id, int deg, const std::vector<double> &coefs );
11939
11950
11951extern void SetLowerCST( const std::string& xsec_id, int deg, const std::vector<double> &coefs );
11952
11961
11962extern void PromoteCSTUpper( const std::string& xsec_id );
11963
11972
11973extern void PromoteCSTLower( const std::string& xsec_id );
11974
11983
11984extern void DemoteCSTUpper( const std::string& xsec_id );
11985
11994
11995extern void DemoteCSTLower( const std::string& xsec_id );
11996
12006
12007extern void FitAfCST( const std::string & xsec_surf_id, int xsec_index, int deg );
12008
12009//======================== Background3D Functions ======================//
12010
12047
12048extern string AddBackground3D();
12049
12086
12088
12140
12141extern vector < string > GetAllBackground3Ds();
12142
12173
12175
12206
12208
12248
12250
12291
12292extern void DelBackground3D( const string &id );
12293
12334
12335extern vector < string > GetAllBackground3DRelativePaths();
12336
12376
12377extern vector < string > GetAllBackground3DAbsolutePaths();
12378
12414
12415extern string GetBackground3DRelativePath( const string &id );
12416
12451
12452extern string GetBackground3DAbsolutePath( const string &id );
12453
12489
12490extern void SetBackground3DRelativePath( const string &id, const string &fname );
12491
12526
12527extern void SetBackground3DAbsolutePath( const string &id, const string &fname );
12528
12529
12530//======================== RoutingGeom Functions ======================//
12586
12587extern int GetNumRoutingPts( const string &routing_id );
12588
12643
12644extern string AddRoutingPt( const string &routing_id, const string &geom_id, int surf_index );
12645
12712
12713extern string InsertRoutingPt( const string &routing_id, int index, const string &geom_id, int surf_index );
12714
12770
12771extern void DelRoutingPt( const string &routing_id, int index );
12772
12828
12829extern void DelAllRoutingPt( const string &routing_id );
12830
12887
12888extern int MoveRoutingPt( const string &routing_id, int index, int reorder_type );
12889
12946
12947extern string GetRoutingPtID( const string &routing_id, int index );
12948
13004
13005extern vector < string > GetAllRoutingPtIds( const string &routing_id );
13006
13062
13063extern string GetRoutingPtParentID( const string & pt_id );
13064
13120
13121extern void SetRoutingPtParentID( const string & pt_id, const string &parent_id );
13122
13181
13182extern vec3d GetMainRoutingPtCoord( const string &pt_id );
13183
13243
13244extern vec3d GetRoutingPtCoord( const string &routing_id, int index, int symm_index );
13245
13304
13305extern vector < vec3d > GetAllRoutingPtCoords( const string &routing_id, int symm_index );
13306
13307//======================== BOR Functions ======================//
13338
13339extern void ChangeBORXSecShape( const string & bor_id, int type );
13340
13370
13371extern int GetBORXSecShape( const string & bor_id );
13372
13403
13404extern std::vector<vec3d> ReadBORFileXSec( const std::string& bor_id, const std::string& file_name );
13405
13449
13450extern void SetBORXSecPnts( const std::string& bor_id, std::vector< vec3d > & pnt_vec );
13451
13484
13485extern vec3d ComputeBORXSecPnt( const std::string& bor_id, double fract );
13486
13517
13518extern vec3d ComputeBORXSecTan( const std::string& bor_id, double fract );
13519
13549
13550extern void ReadBORFileAirfoil( const std::string& bor_id, const std::string& file_name );
13551
13598
13599extern void SetBORAirfoilUpperPnts( const std::string& bor_id, const std::vector< vec3d > & up_pnt_vec );
13600
13647
13648extern void SetBORAirfoilLowerPnts( const std::string& bor_id, const std::vector< vec3d > & low_pnt_vec );
13649
13705
13706extern void SetBORAirfoilPnts( const std::string& bor_id, const std::vector< vec3d > & up_pnt_vec, const std::vector< vec3d > & low_pnt_vec );
13707
13742
13743extern std::vector<vec3d> GetBORAirfoilUpperPnts( const std::string& bor_id );
13744
13779
13780extern std::vector<vec3d> GetBORAirfoilLowerPnts( const std::string& bor_id );
13781
13791
13792extern std::vector<double> GetBORUpperCSTCoefs( const std::string& bor_id );
13793
13803
13804extern std::vector<double> GetBORLowerCSTCoefs( const std::string& bor_id );
13805
13815
13816extern int GetBORUpperCSTDegree( const std::string& bor_id );
13817
13827
13828extern int GetBORLowerCSTDegree( const std::string& bor_id );
13829
13840
13841extern void SetBORUpperCST( const std::string& bor_id, int deg, const std::vector<double> &coefs );
13842
13853
13854extern void SetBORLowerCST( const std::string& bor_id, int deg, const std::vector<double> &coefs );
13855
13864
13865extern void PromoteBORCSTUpper( const std::string& bor_id );
13866
13875
13876extern void PromoteBORCSTLower( const std::string& bor_id );
13877
13886
13887extern void DemoteBORCSTUpper( const std::string& bor_id );
13888
13897
13898extern void DemoteBORCSTLower( const std::string& bor_id );
13899
13908
13909extern void FitBORAfCST( const std::string & bor_id, int deg );
13910
13911
13912//======================== FoilSurf Functions ======================//
13946
13947extern void WriteBezierAirfoil( const std::string & file_name, const std::string & geom_id, const double &foilsurf_u );
13948
13982
13983extern void WriteSeligAirfoil( const std::string & file_name, const std::string & geom_id, const double &foilsurf_u );
13984
13994
13995extern std::vector < vec3d > GetAirfoilCoordinates( const std::string & geom_id, const double &foilsurf_u );
13996
13997
13998//======================== Edit Curve XSec Functions ======================//
14046
14047extern void EditXSecInitShape( const std::string & xsec_id );
14048
14094
14095extern void EditXSecConvertTo( const std::string & xsec_id, const int & newtype );
14096
14152
14153extern std::vector < double > GetEditXSecUVec( const std::string& xsec_id );
14154
14203
14204extern std::vector < vec3d > GetEditXSecCtrlVec( const std::string & xsec_id, bool non_dimensional = true );
14205
14312
14313extern 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 );
14314
14380
14381extern void EditXSecDelPnt( const std::string & xsec_id, const int & indx );
14382
14447
14448extern int EditXSecSplit01( const std::string & xsec_id, const double & u );
14449
14529
14530extern void MoveEditXSecPnt( const std::string & xsec_id, const int & indx, const vec3d & new_pnt );
14531
14581
14582extern void ConvertXSecToEdit( const std::string & geom_id, const int & indx = 0 );
14583
14639
14640extern std::vector < bool > GetEditXSecFixedUVec( const std::string& xsec_id );
14641
14697
14698extern void SetEditXSecFixedUVec( const std::string& xsec_id, std::vector < bool > fixed_u_vec );
14699
14755
14756extern void ReparameterizeEditXSec( const std::string & xsec_id );
14757
14758
14759//======================== Sets ================================//
14779
14780extern int GetNumSets();
14781
14808
14809extern void SetSetName( int index, const std::string& name );
14810
14837
14838extern std::string GetSetName( int index );
14839
14872
14873extern std::vector<std::string> GetGeomSetAtIndex( int index );
14874
14906
14907extern std::vector<std::string> GetGeomSet( const std::string & name );
14908
14934
14935extern int GetSetIndex( const std::string & name );
14936
14969
14970extern bool GetSetFlag( const std::string & geom_id, int set_index );
14971
15004
15005extern void SetSetFlag( const std::string & geom_id, int set_index, bool flag );
15006
15050
15051extern void CopyPasteSet( int copyIndex, int pasteIndex );
15052
15053
15054//======================== Group Modifications ================================//
15086
15087extern void ScaleSet( int set_index, double scale );
15088
15122
15123extern void RotateSet( int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg );
15124
15156
15157extern void TranslateSet( int set_index, const vec3d &translation_vec );
15158
15196
15197extern 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 );
15198
15199
15200//======================== Parm Functions ================================//
15230
15231extern bool ValidParm( const std::string & id );
15232
15280
15281extern double SetParmVal( const std::string & parm_id, double val );
15282
15332
15333extern double SetParmVal( const std::string & geom_id, const std::string & name, const std::string & group, double val );
15334
15370
15371extern double SetParmValLimits( const std::string & parm_id, double val, double lower_limit, double upper_limit );
15372
15404
15405extern double SetParmValUpdate( const std::string & parm_id, double val );
15406
15440
15441extern double SetParmValUpdate( const std::string & geom_id, const std::string & parm_name, const std::string & parm_group_name, double val );
15442
15488
15489extern double GetParmVal( const std::string & parm_id );
15490
15538
15539extern double GetParmVal( const std::string & geom_id, const std::string & name, const std::string & group );
15540
15570
15571extern int GetIntParmVal( const std::string & parm_id );
15572
15602
15603extern bool GetBoolParmVal( const std::string & parm_id );
15604
15655
15656extern void SetParmUpperLimit( const std::string & parm_id, double val );
15657
15687
15688extern double GetParmUpperLimit( const std::string & parm_id );
15689
15740
15741extern void SetParmLowerLimit( const std::string & parm_id, double val );
15742
15772
15773extern double GetParmLowerLimit( const std::string & parm_id );
15774
15817
15818extern int GetParmType( const std::string & parm_id );
15819
15876
15877extern std::string GetParmName( const std::string & parm_id );
15878
15921
15922extern std::string GetParmGroupName( const std::string & parm_id );
15923
15966
15967extern std::string GetParmDisplayGroupName( const std::string & parm_id );
15968
16014
16015extern std::string GetParmContainer( const std::string & parm_id );
16016
16048
16049extern void SetParmDescript( const std::string & parm_id, const std::string & desc );
16050
16084
16085extern std::string GetParmDescript( const std::string & parm_id );
16086
16120
16121extern std::string FindParm( const std::string & parm_container_id, const std::string& parm_name, const std::string& group_name );
16122
16123
16124//======================== Parm Container Functions ======================//
16125
16161
16162extern std::vector<std::string> FindContainers();
16163
16187
16188extern std::vector<std::string> FindContainersWithName( const std::string & name );
16189
16213
16214extern std::string FindContainer( const std::string & name, int index );
16215
16239
16240extern std::string GetContainerName( const std::string & parm_container_id );
16241
16280
16281extern std::vector<std::string> FindContainerGroupNames( const std::string & parm_container_id );
16282
16339
16340extern std::vector<std::string> FindContainerParmIDs( const std::string & parm_container_id );
16341
16362
16363extern std::string GetVehicleID();
16364
16365
16366//======================== User Parm Functions ======================//
16387
16388extern int GetNumUserParms();
16389
16410
16412
16448
16449extern std::vector < std::string > GetAllUserParms();
16450
16469
16470extern std::string GetUserParmContainer();
16471
16502
16503extern string AddUserParm(int type, const string & name, const string & group );
16504
16534
16535extern void DeleteUserParm( const std::string & id );
16536
16554
16555extern void DeleteAllUserParm();
16556
16557
16558//======================== Snap To Functions ======================//
16601
16602extern double ComputeMinClearanceDistance( const std::string & geom_id, int set = SET_ALL, bool useMode = false, const string &modeID = string() );
16603 // TODO: Validate inc_flag description
16650
16651extern double SnapParm( const std::string & parm_id, double target_min_dist, bool inc_flag, int set = SET_ALL, bool useMode = false, const string &modeID = string() );
16652
16653
16654//======================== Variable Preset Functions ======================//
16655
16681
16682extern string AddVarPresetGroup( const std::string &group_name );
16683
16715
16716extern string AddVarPresetSetting( const std::string &group_id, const std::string &setting_name );
16717
16755
16756extern void AddVarPresetParm( const std::string &group_id, const std::string &parm_id );
16757
16799
16800extern void DeleteVarPresetGroup( const std::string &group_id );
16801
16844
16845extern void DeleteVarPresetSetting( const std::string &group_id, const std::string &setting_id );
16846
16889
16890extern void DeleteVarPresetParm( const std::string &group_id, const std::string &parm_id );
16891
16936
16937extern void SetVarPresetParmVal( const std::string &group_id, const std::string &setting_id, const std::string &parm_id, double parm_val );
16938
16983
16984extern double GetVarPresetParmVal( const std::string &group_id, const std::string &setting_id, const std::string &parm_id );
16985
17016
17017extern std::string GetGroupName( const std::string &group_id );
17018
17053
17054extern std::string GetSettingName( const std::string &setting_id );
17055
17086
17087extern void SetGroupName( const std::string &group_id, const std::string &group_name );
17088
17123
17124extern void SetSettingName( const std::string &setting_id, const std::string &setting_name );
17125
17167
17168extern std::vector< std::string > GetVarPresetGroups();
17169
17212
17213extern std::vector< std::string > GetVarPresetSettings( const std::string &group_id );
17214
17257
17258extern std::vector< std::string > GetVarPresetParmIDs( const std::string &group_id );
17259
17303
17304extern std::vector< double > GetVarPresetParmVals( const std::string &setting_id );
17305
17352
17353extern void SetVarPresetParmVals( const std::string &setting_id, const std::vector< double > &parm_vals );
17354
17397
17398extern void SaveVarPresetParmVals( const std::string &group_id, const std::string &setting_id );
17399
17446
17447extern void ApplyVarPresetSetting( const std::string &group_id, const std::string &setting_id );
17448
17449//======================== Mode Functions ======================//
17450
17605
17606extern string CreateAndAddMode( const string & name, int normal_set, int degen_set );
17607
17763
17764extern int GetNumModes();
17765
17921
17922extern vector < string > GetAllModes();
17923
18079
18080extern void DelMode( const string &mid );
18081
18236
18237extern void DelAllModes();
18238
18390
18391extern void ApplyModeSettings( const string &mid );
18392
18548
18549extern void ShowOnlyMode( const string &mid );
18550
18704
18705extern void ModeAddGroupSetting( const string &mid, const string &gid, const string &sid );
18706
18864
18865extern string ModeGetGroup( const string &mid, int indx );
18866
19024
19025extern string ModeGetSetting( const string &mid, int indx );
19026
19183
19184extern vector < string > ModeGetAllGroups( const string &mid );
19185
19342
19343extern vector < string > ModeGetAllSettings( const string &mid );
19344
19501
19502extern void RemoveGroupSetting( const string &mid, int indx );
19503
19659
19660extern void RemoveAllGroupSettings( const string &mid );
19661
19662//======================== Parametric Curve Functions ======================//
19675
19676extern void SetPCurve( const std::string & geom_id, const int & pcurveid, const std::vector < double > & tvec,
19677
19678 const std::vector < double > & valvec, const int & newtype );
19689
19690extern void PCurveConvertTo( const std::string & geom_id, const int & pcurveid, const int & newtype );
19691
19702
19703extern int PCurveGetType( const std::string & geom_id, const int & pcurveid );
19704
19714
19715extern std::vector < double > PCurveGetTVec( const std::string & geom_id, const int & pcurveid );
19716
19726
19727extern std::vector < double > PCurveGetValVec( const std::string & geom_id, const int & pcurveid );
19728
19738
19739extern void PCurveDeletePt( const std::string & geom_id, const int & pcurveid, const int & indx );
19740
19751
19752extern int PCurveSplit( const std::string & geom_id, const int & pcurveid, const double & tsplit );
19753
19780
19781extern void ApproximateAllPropellerPCurves( const std::string & geom_id );
19782
19811
19812extern void ResetPropellerThicknessCurve( const std::string & geom_id );
19813
19814
19815//======================== VSPAERO Functions ======================//
19906
19908
19945
19947
19978
19979extern void AddAllToVSPAEROControlSurfaceGroup( int CSGroupIndex );
19980
20015
20016extern void RemoveAllFromVSPAEROControlSurfaceGroup( int CSGroupIndex );
20017
20068
20069extern std::vector < std::string > GetActiveCSNameVec( int CSGroupIndex );
20070
20114
20115extern std::vector < std::string > GetCompleteCSNameVec();
20116
20157
20158extern std::vector < std::string > GetAvailableCSNameVec( int CSGroupIndex );
20159
20199
20200extern void SetVSPAEROControlGroupName(const string & name, int CSGroupIndex);
20201
20240
20241extern std::string GetVSPAEROControlGroupName( int CSGroupIndex );
20242
20296
20297extern void AddSelectedToCSGroup( const vector <int> &selected, int CSGroupIndex);
20298
20361
20362extern void RemoveSelectedFromCSGroup( const vector <int> &selected, int CSGroupIndex);
20363
20418
20420
20421
20422//================ VSPAERO Actuator Disk and Unsteady Functions ==============//
20470
20471extern std::string FindActuatorDisk( int disk_index );
20472
20514
20516
20562
20563extern std::string FindUnsteadyGroup( int group_index );
20564
20599
20600extern std::string GetUnsteadyGroupName( int group_index );
20601
20644
20645extern std::vector < std::string > GetUnsteadyGroupCompIDs( int group_index );
20646
20689
20690extern std::vector < int > GetUnsteadyGroupSurfIndexes( int group_index );
20691
20742
20744
20796
20798
20799
20800//======================== Parasite Drag Tool Functions ======================//
20826
20827extern void AddExcrescence(const std::string & excresName, const int & excresType, const double & excresVal);
20828
20859
20860extern void DeleteExcrescence(const int & index);
20861
20868
20870
20896
20897extern void WriteAtmosphereCSVFile( const std::string & file_name, const int &atmos_type );
20898
20937
20938extern void CalcAtmosphere( const double & alt, const double & delta_temp, const int & atmos_type,
20939
20940 double & temp, double & pres, double & pres_ratio, double & rho_ratio );
20961
20962extern void WriteBodyFFCSVFile( const std::string & file_name );
20963
20984
20985extern void WriteWingFFCSVFile( const std::string & file_name );
20986 // TODO: Improve description
21007
21008extern void WriteCfEqnCSVFile( const std::string & file_name );
21009 // TODO: Improve description
21030
21031extern void WritePartialCfMethodCSVFile( const std::string & file_name );
21032
21033
21034//======================== Surface Query Functions ======================//
21077
21078extern vec3d CompPnt01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
21079
21122
21123extern vec3d CompNorm01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
21124
21167
21168extern vec3d CompTanU01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
21169
21212
21213extern vec3d CompTanW01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
21214
21264
21265extern void CompCurvature01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w,
21266 double &k1_out, double &k2_out, double &ka_out, double &kg_out);
21267
21330
21331extern double ProjPnt01(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &u_out, double &w_out);
21332
21402
21403extern double ProjPnt01I(const std::string &geom_id, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out);
21404
21474
21475extern 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);
21476
21477
21538
21539extern double AxisProjPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, double &u_out, double &w_out);
21540
21603
21604extern double AxisProjPnt01I(const std::string &geom_id, const int &iaxis, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out);
21605
21678
21679extern 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);
21680
21742
21743extern bool InsideSurf( const std::string &geom_id, const int &surf_indx, const vec3d &pt );
21744
21745
21791
21792extern vec3d CompPntRST( const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t );
21793
21849
21850extern double FindRST( const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &r_out, double &s_out, double &t_out );
21851
21919
21920extern 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 );
21921
21922
21969
21970extern 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 );
21971
22010
22011extern void ConvertRtoL( const std::string &geom_id, const int &surf_indx, const double &r, double &l_out );
22012
22059
22060extern 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 );
22099extern void ConvertLtoR( const std::string &geom_id, const int &surf_indx, const double &l, double &r_out );
22100
22138
22139extern void ConvertUtoEta( const std::string &geom_id, const double &u, double &eta_out );
22140
22178
22179extern void ConvertEtatoU( const std::string &geom_id, const double &eta, double &u_out );
22180
22181
22235
22236extern 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);
22237
22291
22292extern std::vector < vec3d > CompVecNorm01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &us, const std::vector < double > &ws);
22293
22354
22355extern 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);
22356
22432
22433extern 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 );
22434
22532
22533extern 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 );
22534
22535
22636
22637extern 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 );
22638
22750
22751extern 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 );
22752
22825
22826extern std::vector < bool > VecInsideSurf( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts );
22827
22828
22889
22890extern 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 );
22891
22963
22964extern 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 );
22965
23048
23049extern 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 );
23050
23051
23118
23119extern 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,
23120 std::vector < double > &l_out_vec, std::vector < double > &m_out_vec, std::vector < double > &n_out_vec );
23121
23187
23188extern 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,
23189 std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec );
23190
23224
23225extern void GetUWTess01(const std::string &geom_id, const int &surf_indx, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec);
23226
23227
23228//======================= Measure Functions ============================//
23276
23277extern string AddRuler( const string & startgeomid, int startsurfindx, double startu, double startw,
23278 const string & endgeomid, int endsurfindx, double endu, double endw, const string & name );
23334
23335extern std::vector < string > GetAllRulers();
23336
23383
23384extern void DelRuler( const string &id );
23385
23427
23428extern void DeleteAllRulers();
23429
23430
23466
23467extern string AddProbe( const string & geomid, int surfindx, double u, double w, const string & name );
23468
23507
23508extern std::vector < string > GetAllProbes();
23509
23550
23551extern void DelProbe( const string &id );
23552
23592
23593extern void DeleteAllProbes();
23594
23595
23596//======================= Advanced Link Functions ============================//
23597
23625
23626extern std::vector< std::string > GetAdvLinkNames();
23627
23674
23675extern int GetLinkIndex( const string & name );
23676
23740
23741extern void DelAdvLink( int index );
23742
23805
23806extern void DelAllAdvLinks();
23807
23852
23853extern void AddAdvLink( const string & name );
23854
23901
23902extern void AddAdvLinkInput( int index, const string & parm_id, const string & var_name );
23903
23950
23951extern void AddAdvLinkOutput( int index, const string & parm_id, const string & var_name );
23952
24010
24011extern void DelAdvLinkInput( int index, const string & var_name );
24012
24070
24071extern void DelAdvLinkOutput( int index, const string & var_name );
24072
24131
24132extern std::vector< std::string > GetAdvLinkInputNames( int index );
24133
24192
24193extern std::vector< std::string > GetAdvLinkInputParms( int index );
24194
24253
24254extern std::vector< std::string > GetAdvLinkOutputNames( int index );
24255
24314
24315extern std::vector< std::string > GetAdvLinkOutputParms( int index );
24316
24380
24381extern bool ValidateAdvLinkParms( int index );
24382
24428
24429extern void SetAdvLinkCode( int index, const string & code );
24430
24484
24485extern std::string GetAdvLinkCode( int index );
24486
24543
24544extern void SearchReplaceAdvLinkCode( int index, const string & from, const string & to );
24545
24605
24606extern bool BuildAdvLinkScript( int index );
24607
24608
24609} // End vsp namespace
24610
24611#endif // !defined(VSPAPI__INCLUDED_)
Definition Vec3d.h:235
bool CheckForVSPAERO(const std::string &path)
bool CheckForVSPHelp(const std::string &path)
int GetVSPVersionChange()
std::string GetVSPVersion()
int GetVSPVersionMinor()
bool SetVSPHelpPath(const std::string &path)
std::string GetVSPHelpPath()
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)
vector< string > GetAttributeStringVal(const string &attrID)
string GetAttributeID(const string &collID, const string &attributeName, int index)
string GetAttributeName(const string &attrID)
vector< double > GetAttributeDoubleVal(const string &attrID)
void SetAttributeDoubleMatrix(const string &attrID, const vector< vector< double > > &value)
void SetAttributeParmID(const string &attrID, const string &value)
void SetAttributeBool(const string &attrID, bool value)
vector< string > FindAttributedObjects()
void SetAttributeVec3d(const string &attrID, const vector< vec3d > &value)
string AddAttributeString(const string &collID, const string &attributeName, const string &value)
vector< int > GetAttributeIntVal(const string &attrID)
vector< vector< double > > GetAttributeDoubleMatrixVal(const string &attrID)
void DeleteAttribute(const string &attrID)
void SetAttributeDouble(const string &attrID, double value)
vector< string > FindAllAttributes()
vector< string > FindAttributeNamesInCollection(const string &collID)
string AddAttributeIntMatrix(const string &collID, const string &attributeName, const vector< vector< int > > &value)
void SetAttributeName(const string &attrID, const string &name)
vector< string > GetAttributeParmID(const string &attrID)
string AddAttributeInt(const string &collID, const string &attributeName, int value)
vector< vec3d > GetAttributeVec3dVal(const string &attrID)
vector< string > FindAttributesByName(const string &search_str)
string GetGeomSetCollection(const int &index)
vector< int > GetAttributeBoolVal(const string &attrID)
string SummarizeAttributesAsTree()
string GetObjectName(const string &attachID)
int CopyAttribute(const string &attrID)
string GetAttributeTypeName(const string &attrID)
string GetChildCollection(const string &attachID)
string SummarizeAttributes()
void CutAttribute(const string &attrID)
string GetObjectParent(const string &id)
void SetAttributeString(const string &attrID, const string &value)
string AddAttributeGroup(const string &collID, const string &attributeName)
vector< string > FindAttributesInCollection(const string &collID)
vector< double > GetAttributeParmVal(const string &attrID)
string AddAttributeParm(const string &collID, const string &attributeName, const string &parmID)
void SetAttributeIntMatrix(const string &attrID, const vector< vector< int > > &value)
vector< vector< int > > GetAttributeIntMatrixVal(const string &attrID)
vector< string > PasteAttribute(const string &coll_id)
int GetAttributeType(const string &attrID)
string AddAttributeDouble(const string &collID, const string &attributeName, double value)
vector< string > GetAttributeParmName(const string &attrID)
string AddAttributeBool(const string &collID, const string &attributeName, bool value)
string AddAttributeDoubleMatrix(const string &collID, const string &attributeName, const vector< vector< double > > &value)
string GetObjectTypeName(const string &attachID)
string AddAttributeVec3d(const string &collID, const string &attributeName, const vector< vec3d > &value)
string FindAttributeByName(const string &search_str, int index)
string GetAttributeDoc(const string &attrID)
string FindAttributeInCollection(const string &obj_id, const string &search_str, int index)
void SetAttributeDoc(const string &attrID, const string &doc)
void SetAttributeInt(const string &attrID, int value)
int GetObjectType(const string &attachID)
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)
void WriteVSPFile(const std::string &file_name, int set=SET_ALL)
void InsertVSPFile(const std::string &file_name, const std::string &parent_geom_id)
std::string ExportFile(const std::string &file_name, int thick_set, int file_type, int subsFlag=1, int thin_set=vsp::SET_NONE, bool useMode=false, const string &modeID="")
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 SetGeomParent(const std::string &geom_id, const std::string &parent_id)
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 SplitWingXSec(const string &wing_id, int section_index)
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)
int GetNumModes()
void ApplyModeSettings(const string &mid)
void RemoveAllGroupSettings(const string &mid)
vector< string > ModeGetAllSettings(const string &mid)
void DelMode(const string &mid)
void ShowOnlyMode(const string &mid)
vector< string > GetAllModes()
void ModeAddGroupSetting(const string &mid, const string &gid, const string &sid)
string ModeGetSetting(const string &mid, int indx)
string CreateAndAddMode(const string &name, int normal_set, int degen_set)
void DelAllModes()
vector< string > ModeGetAllGroups(const string &mid)
string ModeGetGroup(const string &mid, int indx)
void RemoveGroupSetting(const string &mid, int indx)
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 SnapParm(const std::string &parm_id, double target_min_dist, bool inc_flag, int set=SET_ALL, bool useMode=false, const string &modeID=string())
double ComputeMinClearanceDistance(const std::string &geom_id, int set=SET_ALL, bool useMode=false, const string &modeID=string())
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)
string AddVarPresetSetting(const std::string &group_id, const std::string &setting_name)
void SetGroupName(const std::string &group_id, const std::string &group_name)
double GetVarPresetParmVal(const std::string &group_id, const std::string &setting_id, const std::string &parm_id)
void SetSettingName(const std::string &setting_id, const std::string &setting_name)
std::vector< double > GetVarPresetParmVals(const std::string &setting_id)
std::vector< std::string > GetVarPresetGroups()
void DeleteVarPresetGroup(const std::string &group_id)
void SetVarPresetParmVal(const std::string &group_id, const std::string &setting_id, const std::string &parm_id, double parm_val)
std::string GetSettingName(const std::string &setting_id)
void ApplyVarPresetSetting(const std::string &group_id, const std::string &setting_id)
std::vector< std::string > GetVarPresetParmIDs(const std::string &group_id)
void SetVarPresetParmVals(const std::string &setting_id, const std::vector< double > &parm_vals)
void AddVarPresetParm(const std::string &group_id, const std::string &parm_id)
void DeleteVarPresetParm(const std::string &group_id, const std::string &parm_id)
string AddVarPresetGroup(const std::string &group_name)
std::string GetGroupName(const std::string &group_id)
void SaveVarPresetParmVals(const std::string &group_id, const std::string &setting_id)
std::vector< std::string > GetVarPresetSettings(const std::string &group_id)
void DeleteVarPresetSetting(const std::string &group_id, const std::string &setting_id)
void VSPExit(int error_code)
int GetAndResetUpdateCount()
void Update(bool update_managers=true)
void ClearVSPModel()
std::string GetVSPFileName()
void VSPCrash(int crash_type)
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 InitGUI()
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)
void SetXSecCurveAlias(const string &id, const string &alias)
string GetXSecCurveAlias(const string &id)
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)
void SetXSecAlias(const string &id, const string &alias)
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)
string GetXSecAlias(const string &id)
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)