OpenVSPAPI  3.24.0
openvsp_as.h
Go to the documentation of this file.
1 
194 
197 class string
198 {
199 public:
200 #ifndef DOXYGEN_SHOULD_SKIP_THIS
201  // Methods
202  string& operator=(const string&in);
203  string& operator+=(const string&in);
204  bool operator==(const string&in) const;
205  int operator>(const string&in) const;
206  string operator+(const string&in) const;
207  uint length() const;
208  void resize(uint);
209  bool isEmpty() const;
210  uint8& operator[](uint);
211  const uint8& operator[](uint) const;
212  string& operator=(double);
213  string& operator+=(double);
214  string operator+(double) const;
215  string operator+(double) const;
216  string& operator=(float);
217  string& operator+=(float);
218  string operator+(float) const;
219  string operator+(float) const;
220  string& operator=(int64);
221  string& operator+=(int64);
222  string operator+(int64) const;
223  string operator+(int64) const;
224  string& operator=(uint64);
225  string& operator+=(uint64);
226  string operator+(uint64) const;
227  string operator+(uint64) const;
228  string& operator=(bool);
229  string& operator+=(bool);
230  string operator+(bool) const;
231  string operator+(bool) const;
232  string substr(uint start = 0, int count = - 1) const;
233  int findFirst(const string&in, uint start = 0) const;
234  int findFirstOf(const string&in, uint start = 0) const;
235  int findFirstNotOf(const string&in, uint start = 0) const;
236  int findLast(const string&in, int start = - 1) const;
237  int findLastOf(const string&in, int start = - 1) const;
238  int findLastNotOf(const string&in, int start = - 1) const;
239  void insert(uint pos, const string&in other);
240  void erase(uint pos, int count = - 1);
241  uint size() const;
242  bool empty() const;
243  int find(const string&in, uint start = 0) const;
244  int rfind(const string&in, int start = - 1) const;
245  string[]@ split(const string&in) const;
246 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
247 };
248 
249 
251 
253 template<typename T>
254 class array
255 {
256 public:
257 #ifndef DOXYGEN_SHOULD_SKIP_THIS
258  // Methods
259  T& operator[](uint index);
260  const T& operator[](uint index) const;
261  T[]& operator=(const T[]&in);
262  void insertAt(uint index, const T&in value);
263  void insertAt(uint index, const T[]&inout arr);
264  void insertLast(const T&in value);
265  void removeAt(uint index);
266  void removeLast();
267  void removeRange(uint start, uint count);
268  uint length() const;
269  void reserve(uint length);
270  void resize(uint length);
271  void sortAsc();
272  void sortAsc(uint startAt, uint count);
273  void sortDesc();
274  void sortDesc(uint startAt, uint count);
275  void reverse();
276  int find(const T&in value) const;
277  int find(uint startAt, const T&in value) const;
278  int findByRef(const T&in value) const;
279  int findByRef(uint startAt, const T&in value) const;
280  bool operator==(const T[]&in) const;
281  bool isEmpty() const;
282  void sort(array::less&in, uint startAt = 0, uint count = uint ( - 1 ));
283  uint size() const;
284  bool empty() const;
285  void push_back(const T&in);
286  void pop_back();
287  void insert(uint index, const T&in value);
288  void insert(uint index, const T[]&inout arr);
289  void erase(uint);
290 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
291 };
292 
293 
295 
297 class file
298 {
299 public:
300 #ifndef DOXYGEN_SHOULD_SKIP_THIS
301  // Properties
302  bool mostSignificantByteFirst;
303  // Methods
304  int open(const string&in, const string&in);
305  int close();
306  int getSize() const;
307  bool isEndOfFile() const;
308  string readString(uint);
309  string readLine();
310  int64 readInt(uint);
311  uint64 readUInt(uint);
312  float readFloat();
313  double readDouble();
314  int writeString(const string&in);
315  int writeInt(int64, uint);
316  int writeUInt(uint64, uint);
317  int writeFloat(float);
318  int writeDouble(double);
319  int getPos() const;
320  int setPos(int);
321  int movePos(int);
322 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
323 };
324 
325 
327 
329 class any
330 {
331 public:
332 #ifndef DOXYGEN_SHOULD_SKIP_THIS
333  // Methods
334  any& operator=(any&in);
335  void store(?&in);
336  void store(const int64&in);
337  void store(const double&in);
338  bool retrieve(?&out);
339  bool retrieve(int64&out);
340  bool retrieve(double&out);
341 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
342 };
343 
344 
346 
350 class vec3d
351 {
352 public:
353  // Methods
354 
358  double& operator[](int) const;
359 
375  double x() const;
376 
392  double y() const;
393 
409  double z() const;
410 
424  vec3d& set_xyz(double x, double y, double z);
425 
437  vec3d& set_x(double x);
438 
450  vec3d& set_y(double y);
451 
463  vec3d& set_z(double z);
464 
481  void rotate_x(double cos_alpha, double sin_alpha);
482 
499  void rotate_y(double cos_alpha, double sin_alpha);
500 
517  void rotate_z(double cos_alpha, double sin_alpha);
518 
532  void scale_x(double scale);
533 
547  void scale_y(double scale);
548 
562  void scale_z(double scale);
563 
577  void offset_x(double offset);
578 
592  void offset_y(double offset);
593 
607  void offset_z(double offset);
608 
614  void rotate_z_zero_x(double cos_alpha, double sin_alpha);
615 
621  void rotate_z_zero_y(double cos_alpha, double sin_alpha);
622 
636  vec3d reflect_xy();
637 
651  vec3d reflect_xz();
652 
666  vec3d reflect_yz();
667 
683  vec3d operator+(const vec3d&in) const;
684 
700  vec3d operator-(const vec3d&in) const;
701 
718  vec3d operator*(double b) const;
719 
735  vec3d operator*(const vec3d&in) const;
736 
753  vec3d operator/(double b) const;
754 
768  double mag() const;
769 
785  void normalize();
786 };
787 
788 
790 
793 class Matrix4d
794 {
795 public:
796  // Methods
797 
808  void loadIdentity();
809 
825  void translatef(const double&in x, const double&in y, const double&in z);
826 
839  void rotateX(const double&in ang);
840 
853  void rotateY(const double&in ang);
854 
867  void rotateZ(const double&in ang);
868 
883  void rotate(const double&in ang, const vec3d&in axis);
884 
897  void scale(const double&in scale);
898 
911  vec3d xform(const vec3d&in v);
912 
927  vec3d getAngles();
928 
940  void loadXZRef();
941 
953  void loadXYRef();
954 
966  void loadYZRef();
967 
985  void affineInverse();
986 
993  void buildXForm(const vec3d&in pos, const vec3d&in rot, const vec3d&in cent_rot);
994 };
995 
996 
998 
1002 {
1003 public:
1004  // Methods
1005 
1017 
1030  string GetErrorString();
1031 };
1032 
1033 
1039 {
1040  ABS = 0,
1041  REL = 1
1042 };
1043 
1049 {
1052 };
1053 
1059 {
1060  ANG_RAD = 0,
1061  ANG_DEG = 1
1062 };
1063 
1069 {
1076 };
1077 
1083 {
1087 };
1088 
1094 {
1098 };
1099 
1105 {
1110 };
1111 
1117 {
1118  MAX_CAMB = 0,
1120 };
1121 
1127 {
1134 };
1135 
1141 {
1166 };
1167 
1173 {
1188 };
1189 
1195 {
1202 };
1203 
1209 {
1212 };
1213 
1219 {
1241 };
1242 
1248 {
1252 };
1253 
1259 {
1271  CFD_OBJ_TYPE = 1024,
1272  CFD_DAT_TYPE = 2048,
1273  CFD_KEY_TYPE = 4096,
1274  CFD_GMSH_TYPE = 8192,
1275  CFD_SRF_TYPE = 16384,
1276  CFD_TKEY_TYPE = 32768,
1281  CFD_FACET_TYPE = 1048576,
1282  CFD_CURV_TYPE = 2097152,
1283  CFD_PLOT3D_TYPE = 4194304,
1284  CFD_VSPGEOM_TYPE = 8388608
1285 };
1286 
1292 {
1298 };
1299 
1305 {
1306  SET_3D = 0,
1307  SET_2D = 1
1308 };
1309 
1315 {
1316  X_DIR = 0,
1317  Y_DIR = 1,
1318  Z_DIR = 2
1319 };
1320 
1326 {
1331 };
1332 
1338 {
1344 };
1345 
1351 {
1352  VSP_OK = 0,
1374 };
1375 
1381 {
1387 };
1388 
1394 {
1406  EXPORT_X3D = 11,
1410  EXPORT_BEM = 15,
1411  EXPORT_DXF = 16,
1413  EXPORT_SVG = 18,
1415  EXPORT_OBJ = 20,
1420 };
1421 
1427 {
1434 };
1435 
1441 {
1454 };
1455 
1461 {
1463  FEA_BEAM = 1,
1465 };
1466 
1472 {
1474  FEA_RIB = 1,
1475  FEA_SPAR = 2,
1477  FEA_DOME = 4,
1480  FEA_SKIN = 7,
1482 };
1483 
1489 {
1494 };
1495 
1501 {
1502  XY_BODY = 0,
1503  YZ_BODY = 1,
1504  XZ_BODY = 2,
1505  XY_ABS = 3,
1506  YZ_ABS = 4,
1507  XZ_ABS = 5,
1509 };
1510 
1516 {
1517  SI_UNIT = 0,
1518  CGS_UNIT = 1,
1519  MPA_UNIT = 2,
1520  BFT_UNIT = 3,
1522 };
1523 
1529 {
1540 };
1541 
1547 {
1562 };
1563 
1569 {
1572 };
1573 
1578 enum GDEV
1579 {
1580  GDEV_TAB = 0,
1603  GDEV_YGAP = 24,
1609 };
1610 
1616 {
1617  MALE = 0,
1618  FEMALE = 1
1619 };
1620 
1626 {
1636 };
1637 
1643 {
1647 };
1648 
1654 {
1661 };
1662 
1668 {
1669  LEN_MM = 0,
1670  LEN_CM = 1,
1671  LEN_M = 2,
1672  LEN_IN = 3,
1673  LEN_FT = 4,
1674  LEN_YD = 5,
1676 };
1677 
1683 {
1690 };
1691 
1697 {
1704 };
1705 
1711 {
1718 };
1719 
1725 {
1726  LINEAR = 0,
1727  PCHIP = 1,
1728  CEDIT = 2,
1731 };
1732 
1738 {
1750 };
1751 
1757 {
1762 };
1763 
1769 {
1770  X_PROJ = 0,
1771  Y_PROJ = 1,
1772  Z_PROJ = 2,
1774  VEC_PROJ = 4,
1776 };
1777 
1783 {
1787 };
1788 
1794 {
1798 };
1799 
1805 {
1812  PROP_CLI = 6,
1816 };
1817 
1823 {
1827 };
1828 
1834 {
1836  INT_DATA = 0,
1841 };
1842 
1848 {
1853 };
1854 
1860 {
1867 };
1868 
1874 {
1875  SET_NONE = -1,
1876  SET_ALL = 0,
1880 };
1881 
1887 {
1890 };
1891 
1897 {
1901 };
1902 
1908 {
1909  INSIDE = 0,
1910  OUTSIDE = 1,
1911  NONE = 2
1912 };
1913 
1919 {
1920  CONST_U = 0,
1921  CONST_W = 1
1922 };
1923 
1929 {
1930  SS_LINE = 0,
1936 };
1937 
1943 {
1944  SYM_XY = 1,
1945  SYM_XZ = 2,
1946  SYM_YZ = 4,
1948  SYM_ROT_Y = 16,
1949  SYM_ROT_Z = 32,
1952 };
1953 
1959 {
1960  SYM_NONE = 0,
1961  SYM_RL = 1,
1962  SYM_TB = 2,
1963  SYM_ALL = 3
1964 };
1965 
1971 {
1976 };
1977 
1983 {
1991 };
1992 
1998 {
1999  VIEW_1 = 0,
2002  VIEW_4 = 3
2003 };
2004 
2010 {
2011  ROT_0 = 0,
2012  ROT_90 = 1,
2013  ROT_180 = 2,
2014  ROT_270 = 3
2015 };
2016 
2022 {
2025  VIEW_TOP = 2,
2030 };
2031 
2037 {
2039  PANEL = 1
2040 };
2041 
2047 {
2051 };
2052 
2058 {
2059  NOISE_SI = 0,
2061 };
2062 
2068 {
2072 };
2073 
2079 {
2085 };
2086 
2092 {
2099 };
2100 
2106 {
2112 };
2113 
2119 {
2129 };
2130 
2136 {
2149 };
2150 
2156 {
2157  XDDM_VAR = 0,
2159 };
2160 
2166 {
2173 };
2174 
2180 {
2182  XS_POINT = 0,
2192  XS_WEDGE = 10,
2202 };
2203 
2209 {
2213 };
2214 
2220 {
2222  TRIM_X = 1,
2225 };
2226 
2232 {
2239 };
2240 
2246 {
2250 };
2251 
2252 string formatInt(int64 val, const string&in options = "", uint width = 0);
2253 string formatUInt(uint64 val, const string&in options = "", uint width = 0);
2254 string formatFloat(double val, const string&in options = "", uint width = 0, uint precision = 0);
2255 int64 parseInt(const string&in, uint base = 10, uint&out byteCount = 0);
2256 uint64 parseUInt(const string&in, uint base = 10, uint&out byteCount = 0);
2257 double parseFloat(const string&in, uint&out byteCount = 0);
2258 string join(const string[]&in, const string&in);
2259 float fpFromIEEE(uint);
2260 uint fpToIEEE(float);
2261 double fpFromIEEE(uint64);
2262 uint64 fpToIEEE(double);
2263 bool closeTo(float, float, float = 0.00001f);
2264 bool closeTo(double, double, double = 0.0000000001);
2265 float cos(float);
2266 float sin(float);
2267 float tan(float);
2268 float acos(float);
2269 float asin(float);
2270 float atan(float);
2271 float atan2(float, float);
2272 float cosh(float);
2273 float sinh(float);
2274 float tanh(float);
2275 float log(float);
2276 float log10(float);
2277 float pow(float, float);
2278 float sqrt(float);
2279 float ceil(float);
2280 float abs(float);
2281 float floor(float);
2282 float fraction(float);
2283 
2307 double dist(const vec3d&in a, const vec3d&in b);
2308 
2332 double dist_squared(const vec3d&in a, const vec3d&in b);
2333 
2354 double dot(const vec3d&in a, const vec3d&in b);
2355 
2378 vec3d cross(const vec3d&in a, const vec3d&in b);
2379 
2401 double angle(const vec3d&in a, const vec3d&in b);
2402 
2426 double signed_angle(const vec3d&in a, const vec3d&in b, const vec3d&in ref);
2427 
2453 double cos_angle(const vec3d&in a, const vec3d&in b);
2454 
2478 vec3d RotateArbAxis(const vec3d&in p, double theta, const vec3d&in axis);
2479 
2499 string AddParm(int type, const string&in name, const string&in group);
2500 
2524 string GetCurrCustomGeom();
2525 
2535 string GetCustomParm(int index);
2536 
2568 int AddGui(int type, const string&in label = string ( ), const string&in parm_name = string ( ), const string&in group_name = string ( ), double range = 10.0);
2569 
2592 void UpdateGui(int gui_id, const string&in parm_id);
2593 
2614 string AddXSecSurf();
2615 
2640 void RemoveXSecSurf(const string&in xsec_id);
2641 
2657 void ClearXSecSurfs();
2658 
2684 void SkinXSecSurf(bool closed_flag = false);
2685 
2708 void CloneSurf(int index, Matrix4d&in mat);
2709 
2719 void TransformSurf(int index, Matrix4d&in mat);
2720 
2741 void SetVspSurfType(int type, int surf_index = - 1);
2742 
2763 void SetVspSurfCfdType(int type, int surf_index = - 1);
2764 
2784 void SetCustomXSecLoc(const string&in xsec_id, const vec3d&in loc);
2785 
2811 vec3d GetCustomXSecLoc(const string&in xsec_id);
2812 
2830 void SetCustomXSecRot(const string&in xsec_id, const vec3d&in rot);
2831 
2862 vec3d GetCustomXSecRot(const string&in xsec_id);
2863 
2873 bool CheckClearTriggerEvent(int gui_id);
2874 
2906 void SetupCustomDefaultSource(int type, int surf_index, double l1, double r1, double u1, double w1, double l2 = 0, double r2 = 0, double u2 = 0, double w2 = 0);
2907 
2921 
2941 void SetCustomCenter(double x, double y, double z);
2942 
2968 string AppendXSec(const string&in xsec_surf_id, int type);
2969 
2995 string AppendCustomXSec(const string&in xsec_surf_id, int type);
2996 
3007 void CutCustomXSec(const string&in xsec_surf_id, int index);
3008 
3019 void CopyCustomXSec(const string&in xsec_surf_id, int index);
3020 
3031 void PasteCustomXSec(const string&in xsec_surf_id, int index);
3032 
3044 string InsertCustomXSec(const string&in xsec_surf_id, int type, int index);
3045 
3063 void AddInput(const string&in parm_id, const string&in var_name);
3064 
3082 void AddOutput(const string&in parm_id, const string&in var_name);
3083 
3103 void SetVar(const string&in var_name, double val);
3104 
3128 double GetVar(const string&in var_name);
3129 
3152 bool GetErrorLastCallFlag();
3153 
3179 int GetNumTotalErrors();
3180 
3207 
3233 
3252 void SilenceErrors();
3253 
3272 void PrintOnErrors();
3273 
3293 void ScreenGrab(const string&in file_name, int w, int h, bool transparentBG);
3294 
3306 void SetViewAxis(bool vaxis);
3307 
3319 void SetShowBorders(bool brdr);
3320 
3336 void SetGeomDrawType(const string&in geom_id, int type);
3337 
3353 void SetGeomDisplayType(const string&in geom_id, int type);
3354 
3368 void SetBackground(double r, double g, double b);
3369 
3393 void Update(bool update_managers = true);
3394 
3403 void VSPExit(int error_code);
3404 
3419 void ClearVSPModel();
3420 
3445 string GetVSPFileName();
3446 
3478 void ReadVSPFile(const string&in file_name);
3479 
3512 void WriteVSPFile(const string&in file_name, int set);
3513 
3545 void SetVSP3FileName(const string&in file_name);
3546 
3557 void InsertVSPFile(const string&in file_name, const string&in parent);
3558 
3580 string ExportFile(const string&in file_name, int write_set_index, int file_type);
3581 
3594 string ImportFile(const string&in file_name, int file_type, const string&in parent);
3595 
3613 void SetBEMPropID(const string&in prop_id);
3614 
3623 void ReadApplyDESFile(const string&in file_name);
3624 
3633 void WriteDESFile(const string&in file_name);
3634 
3643 void ReadApplyXDDMFile(const string&in file_name);
3644 
3653 void WriteXDDMFile(const string&in file_name);
3654 
3663 int GetNumDesignVars();
3664 
3675 void AddDesignVar(const string&in parm_id, int type);
3676 
3684 void DeleteAllDesignVars();
3685 
3695 string GetDesignVar(int index);
3696 
3707 int GetDesignVarType(int index);
3708 
3732 string ComputeMassProps(int set, int num_slices);
3733 
3757 string ComputeCompGeom(int set, bool half_mesh, int file_export_types);
3758 
3787 string ComputePlaneSlice(int set, int num_slices, const vec3d&in norm, bool auto_bnd, double start_bnd = 0, double end_bnd = 0);
3788 
3806 void ComputeDegenGeom(int set, int file_type);
3807 
3825 void SetComputationFileName(int file_type, const string&in file_name);
3826 
3845 void ComputeCFDMesh(int set, int file_type);
3846 
3860 void SetCFDMeshVal(int type, double val);
3861 
3882 void SetCFDWakeFlag(const string&in geom_id, bool flag);
3883 
3899 void DeleteAllCFDSources();
3900 
3914 void AddDefaultSources();
3915 
3941 void AddCFDSource(int type, const string&in 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);
3942 
3956 int GetNumAnalysis();
3957 
3976 string[]@ ListAnalysis();
3977 
3999 string[]@ GetAnalysisInputNames(const string&in analysis);
4000 
4015 string ExecAnalysis(const string&in analysis);
4016 
4027 int GetNumAnalysisInputData(const string&in analysis, const string&in name);
4028 
4050 int GetAnalysisInputType(const string&in analysis, const string&in name);
4051 
4075 int[]@ GetIntAnalysisInput(const string&in analysis, const string&in name, int index = 0);
4076 
4096 double[]@ GetDoubleAnalysisInput(const string&in analysis, const string&in name, int index = 0);
4097 
4117 string[]@ GetStringAnalysisInput(const string&in analysis, const string&in name, int index = 0);
4118 
4139 vec3d[]@ GetVec3dAnalysisInput(const string&in analysis, const string&in name, int index = 0);
4140 
4156 void PrintAnalysisInputs(const string&in analysis);
4157 
4173 void SetAnalysisInputDefaults(const string&in analysis);
4174 
4198 void SetIntAnalysisInput(const string&in analysis, const string&in name, int[]@ indata_arr, int index = 0);
4199 
4224 void SetDoubleAnalysisInput(const string&in analysis, const string&in name, double[]@ indata_arr, int index = 0);
4225 
4245 void SetStringAnalysisInput(const string&in analysis, const string&in name, string[]@ indata_arr, int index = 0);
4246 
4267 void SetVec3dAnalysisInput(const string&in analysis, const string&in name, vec3d[]@ indata_arr, int index = 0);
4268 
4284 int GetNumResults(const string&in name);
4285 
4308 string GetResultsName(const string&in results_id);
4309 
4328 string FindResultsID(const string&in name, int index = 0);
4329 
4351 string FindLatestResultsID(const string&in name);
4352 
4379 int GetNumData(const string&in results_id, const string&in data_name);
4380 
4405 int GetResultsType(const string&in results_id, const string&in data_name);
4406 
4427 string[]@ GetAllResultsNames();
4428 
4448 string[]@ GetAllDataNames(const string&in results_id);
4449 
4477 int[]@ GetIntResults(const string&in id, const string&in name, int index = 0);
4478 
4501 double[]@ GetDoubleResults(const string&in id, const string&in name, int index = 0);
4502 
4514 double[]@[]@ GetDoubleMatResults(const string&in id, const string&in name, int index = 0);
4515 
4537 string[]@ GetStringResults(const string&in id, const string&in name, int index = 0);
4538 
4570 vec3d[]@ GetVec3dResults(const string&in id, const string&in name, int index = 0);
4571 
4595 string CreateGeomResults(const string&in geom_id, const string&in name);
4596 
4617 void DeleteAllResults();
4618 
4640 void DeleteResult(const string&in id);
4641 
4661 void WriteResultsCSVFile(const string&in id, const string&in file_name);
4662 
4682 void PrintResults(const string&in id);
4683 
4697 void WriteTestResults();
4698 
4716 string[]@ GetGeomTypes();
4717 
4732 string AddGeom(const string&in type, const string&in parent = string ( ));
4733 
4754 void UpdateGeom(const string&in geom_id);
4755 
4773 void DeleteGeom(const string&in geom_id);
4774 
4793 void DeleteGeomVec(string[]@ del_arr);
4794 
4817 void CutGeomToClipboard(const string&in geom_id);
4818 
4841 void CopyGeomToClipboard(const string&in geom_id);
4842 
4865 string[]@ PasteGeomClipboard(const string&in parent_id = "");
4866 
4885 string[]@ FindGeoms();
4886 
4910 string[]@ FindGeomsWithName(const string&in name);
4911 
4938 string FindGeom(const string&in name, int index);
4939 
4962 void SetGeomName(const string&in geom_id, const string&in name);
4963 
4983 string GetGeomName(const string&in geom_id);
4984 
5004 string[]@ GetGeomParmIDs(const string&in geom_id);
5005 
5026 int GetGeomVSPSurfCfdType(const string&in geom_id, int main_surf_ind = 0);
5027 
5048 int GetGeomVSPSurfType(const string&in geom_id, int main_surf_ind = 0);
5049 
5067 string GetGeomTypeName(const string&in geom_id);
5068 
5091 int GetNumMainSurfs(const string&in geom_id);
5092 
5115 int GetTotalNumSurfs(const string&in geom_id);
5116 
5141 vec3d GetGeomBBoxMax(const string&in geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true);
5142 
5167 vec3d GetGeomBBoxMin(const string&in geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true);
5168 
5188 string GetGeomParent(const string&in geom_id);
5189 
5217 string[]@ GetGeomChildren(const string&in geom_id);
5218 
5239 string AddSubSurf(const string&in geom_id, int type, int surfindex = 0);
5240 
5266 void DeleteSubSurf(const string&in geom_id, const string&in sub_id);
5267 
5292 void DeleteSubSurf(const string&in sub_id);
5293 
5317 string GetSubSurf(const string&in geom_id, int index);
5318 
5342 string[]@ GetSubSurf(const string&in geom_id, const string&in name);
5343 
5363 void SetSubSurfName(const string&in geom_id, const string&in sub_id, const string&in name);
5364 
5383 void SetSubSurfName(const string&in sub_id, const string&in name);
5384 
5406 string GetSubSurfName(const string&in geom_id, const string&in sub_id);
5407 
5428 string GetSubSurfName(const string&in sub_id);
5429 
5451 int GetSubSurfIndex(const string&in sub_id);
5452 
5487 string[]@ GetSubSurfIDVec(const string&in geom_id);
5488 
5497 string[]@ GetAllSubSurfIDs();
5498 
5520 int GetNumSubSurf(const string&in geom_id);
5521 
5557 int GetSubSurfType(const string&in sub_id);
5558 
5584 string[]@ GetSubSurfParmIDs(const string&in sub_id);
5585 
5638 
5669 
5692 
5710 void AddAllToVSPAEROControlSurfaceGroup(int CSGroupIndex);
5711 
5731 void RemoveAllFromVSPAEROControlSurfaceGroup(int CSGroupIndex);
5732 
5761 string[]@ GetActiveCSNameVec(int CSGroupIndex);
5762 
5787 string[]@ GetCompleteCSNameVec();
5788 
5812 string[]@ GetAvailableCSNameVec(int CSGroupIndex);
5813 
5836 void SetVSPAEROControlGroupName(const string&in name, int CSGroupIndex);
5837 
5859 string GetVSPAEROControlGroupName(int CSGroupIndex);
5860 
5893 void AddSelectedToCSGroup(int[]@ selected, int CSGroupIndex);
5894 
5932 void RemoveSelectedFromCSGroup(int[]@ selected, int CSGroupIndex);
5933 
5942 string GetVSPAERORefWingID();
5943 
5974 string SetVSPAERORefWingID(const string&in geom_id);
5975 
6003 string FindActuatorDisk(int disk_index);
6004 
6028 int GetNumActuatorDisks();
6029 
6056 string FindUnsteadyGroup(int group_index);
6057 
6078 string GetUnsteadyGroupName(int group_index);
6079 
6105 string[]@ GetUnsteadyGroupCompIDs(int group_index);
6106 
6132 int[]@ GetUnsteadyGroupSurfIndexes(int group_index);
6133 
6162 int GetNumUnsteadyGroups();
6163 
6194 
6223 void SetDriverGroup(const string&in geom_id, int section_index, int driver_0, int driver_1, int driver_2);
6224 
6242 int GetNumXSecSurfs(const string&in geom_id);
6243 
6261 string GetXSecSurf(const string&in geom_id, int index);
6262 
6291 int GetNumXSec(const string&in xsec_surf_id);
6292 
6313 string GetXSec(const string&in xsec_surf_id, int xsec_index);
6314 
6344 void ChangeXSecShape(const string&in xsec_surf_id, int xsec_index, int type);
6345 
6355 void SetXSecSurfGlobalXForm(const string&in xsec_surf_id, const Matrix4d&in mat);
6356 
6366 Matrix4d GetXSecSurfGlobalXForm(const string&in xsec_surf_id);
6367 
6390 void CutXSec(const string&in geom_id, int index);
6391 
6412 void CopyXSec(const string&in geom_id, int index);
6413 
6434 void PasteXSec(const string&in geom_id, int index);
6435 
6453 void InsertXSec(const string&in geom_id, int index, int type);
6454 
6478 int GetXSecShape(const string&in xsec_id);
6479 
6502 double GetXSecWidth(const string&in xsec_id);
6503 
6526 double GetXSecHeight(const string&in xsec_id);
6527 
6550 void SetXSecWidth(const string&in xsec_id, double w);
6551 
6574 void SetXSecHeight(const string&in xsec_id, double h);
6575 
6600 void SetXSecWidthHeight(const string&in xsec_id, double w, double h);
6601 
6623 string[]@ GetXSecParmIDs(const string&in xsec_id);
6624 
6649 string GetXSecParm(const string&in xsec_id, const string&in name);
6650 
6673 vec3d[]@ ReadFileXSec(const string&in xsec_id, const string&in file_name);
6674 
6704 void SetXSecPnts(const string&in xsec_id, vec3d[]@ pnt_arr);
6705 
6729 vec3d ComputeXSecPnt(const string&in xsec_id, double fract);
6730 
6754 vec3d ComputeXSecTan(const string&in xsec_id, double fract);
6755 
6778 void ResetXSecSkinParms(const string&in xsec_id);
6779 
6803 void SetXSecContinuity(const string&in xsec_id, int cx);
6804 
6835 void SetXSecTanAngles(const string&in xsec_id, int side, double top, double right = - 1.0e12, double bottom = - 1.0e12, double left = - 1.0e12);
6836 
6867 void SetXSecTanSlews(const string&in xsec_id, int side, double top, double right = - 1.0e12, double bottom = - 1.0e12, double left = - 1.0e12);
6868 
6900 void SetXSecTanStrengths(const string&in xsec_id, int side, double top, double right = - 1.0e12, double bottom = - 1.0e12, double left = - 1.0e12);
6901 
6933 void SetXSecCurvatures(const string&in xsec_id, int side, double top, double right = - 1.0e12, double bottom = - 1.0e12, double left = - 1.0e12);
6934 
6956 void ReadFileAirfoil(const string&in xsec_id, const string&in file_name);
6957 
6993 void SetAirfoilPnts(const string&in xsec_id, vec3d[]@ up_pnt_vec, vec3d[]@ low_pnt_vec);
6994 
7023 vec3d[]@ GetHersheyBarLiftDist(const int&in npts, const double&in alpha, const double&in Vinf, const double&in span, bool full_span_flag = false);
7024 
7053 vec3d[]@ GetHersheyBarDragDist(const int&in npts, const double&in alpha, const double&in Vinf, const double&in span, bool full_span_flag = false);
7054 
7085 vec3d[]@ GetVKTAirfoilPnts(const int&in npts, const double&in alpha, const double&in epsilon, const double&in kappa, const double&in tau);
7086 
7118 double[]@ GetVKTAirfoilCpDist(const double&in alpha, const double&in epsilon, const double&in kappa, const double&in tau, vec3d[]@ xydata);
7119 
7134 vec3d[]@ GetEllipsoidSurfPnts(const vec3d&in center, const vec3d&in abc_rad, int u_npts = 20, int w_npts = 20);
7135 
7145 vec3d[]@ GetFeatureLinePnts(const string&in geom_id);
7146 
7193 double[]@ GetEllipsoidCpDist(vec3d[]@ surf_pnt_arr, const vec3d&in abc_rad, const vec3d&in V_inf);
7194 
7219 vec3d[]@ GetAirfoilUpperPnts(const string&in xsec_id);
7220 
7245 vec3d[]@ GetAirfoilLowerPnts(const string&in xsec_id);
7246 
7257 double[]@ GetUpperCSTCoefs(const string&in xsec_id);
7258 
7269 double[]@ GetLowerCSTCoefs(const string&in xsec_id);
7270 
7281 int GetUpperCSTDegree(const string&in xsec_id);
7282 
7293 int GetLowerCSTDegree(const string&in xsec_id);
7294 
7306 void SetUpperCST(const string&in xsec_id, int deg, double[]@ coeff_arr);
7307 
7319 void SetLowerCST(const string&in xsec_id, int deg, double[]@ coeff_arr);
7320 
7330 void PromoteCSTUpper(const string&in xsec_id);
7331 
7341 void PromoteCSTLower(const string&in xsec_id);
7342 
7352 void DemoteCSTUpper(const string&in xsec_id);
7353 
7363 void DemoteCSTLower(const string&in xsec_id);
7364 
7375 void FitAfCST(const string&in xsec_surf_id, int xsec_index, int deg);
7376 
7397 void WriteBezierAirfoil(const string&in file_name, const string&in geom_id, const double&in foilsurf_u);
7398 
7419 void WriteSeligAirfoil(const string&in file_name, const string&in geom_id, const double&in foilsurf_u);
7420 
7431 vec3d[]@ GetAirfoilCoordinates(const string&in geom_id, const double&in foilsurf_u);
7432 
7459 void EditXSecInitShape(const string&in xsec_id);
7460 
7487 void EditXSecConvertTo(const string&in xsec_id, const int&in newtype);
7488 
7520 double[]@ GetEditXSecUVec(const string&in xsec_id);
7521 
7549 vec3d[]@ GetEditXSecCtrlVec(const string&in xsec_id, const bool non_dimensional = true);
7550 
7607 void SetEditXSecPnts(const string&in xsec_id, double[]@ u_vec, vec3d[]@ control_pts);
7608 
7646 void EditXSecDelPnt(const string&in xsec_id, const int&in indx);
7647 
7684 int EditXSecSplit01(const string&in xsec_id, const double&in u);
7685 
7730 void MoveEditXSecPnt(const string&in xsec_id, const int&in indx, const vec3d&in new_pnt);
7731 
7759 void ConvertXSecToEdit(const string&in geom_id, const int&in indx = 0);
7760 
7792 bool[]@ GetEditXSecFixedUVec(const string&in xsec_id);
7793 
7825 void SetEditXSecFixedUVec(const string&in xsec_id, bool[]@ fixed_u_vec);
7826 
7858 void ReparameterizeEditXSec(const string&in xsec_id);
7859 
7878 void ChangeBORXSecShape(const string&in geom_id, int type);
7879 
7897 int GetBORXSecShape(const string&in geom_id);
7898 
7911 int GetNumSets();
7912 
7928 void SetSetName(int index, const string&in name);
7929 
7945 string GetSetName(int index);
7946 
7966 string[]@ GetGeomSetAtIndex(int index);
7967 
7986 string[]@ GetGeomSet(const string&in name);
7987 
8002 int GetSetIndex(const string&in name);
8003 
8022 bool GetSetFlag(const string&in geom_id, int set_index);
8023 
8042 void SetSetFlag(const string&in geom_id, int set_index, bool flag);
8043 
8068 void CopyPasteSet(int copyIndex, int pasteIndex);
8069 
8088 void ScaleSet(int set_index, double scale);
8089 
8110 void RotateSet(int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg);
8111 
8130 void TranslateSet(int set_index, const vec3d&in translation_vec);
8131 
8156 void TransformSet(int set_index, const vec3d&in translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag);
8157 
8175 bool ValidParm(const string&in id);
8176 
8204 double SetParmVal(const string&in parm_id, double val);
8205 
8228 double SetParmValLimits(const string&in parm_id, double val, double lower_limit, double upper_limit);
8229 
8249 double SetParmValUpdate(const string&in parm_id, double val);
8250 
8269 double SetParmVal(const string&in geom_id, const string&in name, const string&in group, double val);
8270 
8290 double SetParmValUpdate(const string&in geom_id, const string&in parm_name, const string&in parm_group_name, double val);
8291 
8317 double GetParmVal(const string&in parm_id);
8318 
8337 double GetParmVal(const string&in geom_id, const string&in name, const string&in group);
8338 
8356 int GetIntParmVal(const string&in parm_id);
8357 
8375 bool GetBoolParmVal(const string&in parm_id);
8376 
8405 void SetParmUpperLimit(const string&in parm_id, double val);
8406 
8424 double GetParmUpperLimit(const string&in parm_id);
8425 
8454 void SetParmLowerLimit(const string&in parm_id, double val);
8455 
8473 double GetParmLowerLimit(const string&in parm_id);
8474 
8499 int GetParmType(const string&in parm_id);
8500 
8532 string GetParmName(const string&in parm_id);
8533 
8558 string GetParmGroupName(const string&in parm_id);
8559 
8584 string GetParmDisplayGroupName(const string&in parm_id);
8585 
8611 string GetParmContainer(const string&in parm_id);
8612 
8631 void SetParmDescript(const string&in parm_id, const string&in desc);
8632 
8653 string FindParm(const string&in parm_container_id, const string&in parm_name, const string&in group_name);
8654 
8674 string GetParm(const string&in geom_id, const string&in name, const string&in group);
8675 
8696 string[]@ FindContainers();
8697 
8712 string[]@ FindContainersWithName(const string&in name);
8713 
8729 string FindContainer(const string&in name, int index);
8730 
8745 string GetContainerName(const string&in parm_container_id);
8746 
8769 string[]@ FindContainerGroupNames(const string&in parm_container_id);
8770 
8802 string[]@ FindContainerParmIDs(const string&in parm_container_id);
8803 
8827 double ComputeMinClearanceDistance(const string&in geom_id, int set);
8828 
8855 double SnapParm(const string&in parm_id, double target_min_dist, bool inc_flag, int set);
8856 
8873 void AddVarPresetGroup(const string&in group_name);
8874 
8893 void AddVarPresetSetting(const string&in setting_name);
8894 
8915 void AddVarPresetParm(const string&in parm_ID);
8916 
8936 void AddVarPresetParm(const string&in parm_ID, const string&in group_name);
8937 
8961 void EditVarPresetParm(const string&in parm_ID, double parm_val);
8962 
8990 void EditVarPresetParm(const string&in parm_ID, double parm_val, const string&in group_name, const string&in setting_name);
8991 
9014 void DeleteVarPresetParm(const string&in parm_ID);
9015 
9041 void DeleteVarPresetParm(const string&in parm_ID, const string&in group_name);
9042 
9068 void SwitchVarPreset(const string&in group_name, const string&in setting_name);
9069 
9089 bool DeleteVarPresetSet(const string&in group_name, const string&in setting_name);
9090 
9119 string GetCurrentGroupName();
9120 
9149 string GetCurrentSettingName();
9150 
9167 string[]@ GetVarPresetGroupNames();
9168 
9188 string[]@ GetVarPresetSettingNamesWName(const string&in group_name);
9189 
9220 string[]@ GetVarPresetSettingNamesWIndex(int group_index);
9221 
9248 double[]@ GetVarPresetParmVals();
9249 
9281 double[]@ GetVarPresetParmValsWNames(const string&in group_name, const string&in setting_name);
9282 
9307 string[]@ GetVarPresetParmIDs();
9308 
9337 string[]@ GetVarPresetParmIDsWName(const string&in group_name);
9338 
9352 void SetPCurve(const string&in geom_id, const int&in pcurveid, double[]@ tvec, double[]@ valvec, const int&in newtype);
9353 
9365 void PCurveConvertTo(const string&in geom_id, const int&in pcurveid, const int&in newtype);
9366 
9378 int PCurveGetType(const string&in geom_id, const int&in pcurveid);
9379 
9390 double[]@ PCurveGetTVec(const string&in geom_id, const int&in pcurveid);
9391 
9402 double[]@ PCurveGetValVec(const string&in geom_id, const int&in pcurveid);
9403 
9414 void PCurveDeletePt(const string&in geom_id, const int&in pcurveid, const int&in indx);
9415 
9427 int PCurveSplit(const string&in geom_id, const int&in pcurveid, const double&in tsplit);
9428 
9445 void AddExcrescence(const string&in excresName, const int&in excresType, const double&in excresVal);
9446 
9464 void DeleteExcrescence(const int&in excresName);
9465 
9473 void UpdateParasiteDrag();
9474 
9491 void WriteAtmosphereCSVFile(const string&in file_name, const int&in atmos_type);
9492 
9519 void CalcAtmosphere(const double&in alt, const double&in delta_temp, const int&in atmos_type, double&out temp, double&out pres, double&out pres_ratio, double&out rho_ratio);
9520 
9533 void WriteBodyFFCSVFile(const string&in file_name);
9534 
9547 void WriteWingFFCSVFile(const string&in file_name);
9548 
9561 void WriteCfEqnCSVFile(const string&in file_name);
9562 
9575 void WritePartialCfMethodCSVFile(const string&in file_name);
9576 
9602 vec3d CompPnt01(const string&in geom_id, const int&in surf_indx, const double&in u, const double&in w);
9603 
9629 vec3d CompNorm01(const string&in geom_id, const int&in surf_indx, const double&in u, const double&in w);
9630 
9656 vec3d CompTanU01(const string&in geom_id, const int&in surf_indx, const double&in u, const double&in w);
9657 
9683 vec3d CompTanW01(const string&in geom_id, const int&in surf_indx, const double&in u, const double&in w);
9684 
9716 void CompCurvature01(const string&in geom_id, const int&in surf_indx, const double&in u, const double&in w, double&out k1, double&out k2, double&out ka, double&out kg);
9717 
9755 double ProjPnt01(const string&in geom_id, const int&in surf_indx, const vec3d&in pt, double&out u, double&out w);
9756 
9798 double ProjPnt01I(const string&in geom_id, const vec3d&in pt, int&out surf_indx, double&out u, double&out w);
9799 
9842 double ProjPnt01Guess(const string&in geom_id, const int&in surf_indx, const vec3d&in pt, const double&in u0, const double&in w0, double&out u, double&out w);
9843 
9884 double AxisProjPnt01(const string&in geom_id, const int&in surf_indx, const int&in iaxis, const vec3d&in pt, double&out u_out, double&out w_ou, vec3d&out p_out);
9885 
9927 double AxisProjPnt01I(const string&in geom_id, const int&in iaxis, const vec3d&in pt, int&out surf_indx_out, double&out u_out, double&out w_out, vec3d&out p_out);
9928 
9975 double AxisProjPnt01Guess(const string&in geom_id, const int&in surf_indx, const int&in iaxis, const vec3d&in pt, const double&in u0, const double&in w0, double&out u_out, double&out w_out, vec3d&out p_out);
9976 
9998 void GetUWTess01(const string&in geom_id, int&in surf_indx, double[]@ us, double[]@ ws);
9999 
10032 vec3d[]@ CompVecPnt01(const string&in geom_id, const int&in surf_indx, double[]@ us, double[]@ ws);
10033 
10066 vec3d[]@ CompVecNorm01(const string&in geom_id, const int&in surf_indx, double[]@ us, double[]@ ws);
10067 
10105 void CompVecCurvature01(const string&in geom_id, const int&in surf_indx, double[]@ us, double[]@ ws, double[]@ k1s, double[]@ k2s, double[]@ kas, double[]@ kgs);
10106 
10153 void ProjVecPnt01(const string&in geom_id, const int&in surf_indx, vec3d[]@ pts, double[]@ us, double[]@ ws, double[]@ ds);
10154 
10214 void ProjVecPnt01Guess(const string&in geom_id, const int&in surf_indx, vec3d[]@ pts, double[]@ u0s, double[]@ w0s, double[]@ us, double[]@ ws, double[]@ ds);
10215 
10278 void AxisProjVecPnt01(const string&in geom_id, const int&in surf_indx, const int&in iaxis, vec3d[]@ pts, double[]@ us, double[]@ ws, vec3d[]@ ps_out, double[]@ ds);
10279 
10348 void AxisProjVecPnt01Guess(const string&in geom_id, int&in surf_indx, const int&in iaxis, vec3d[]@ pts, double[]@ u0s, double[]@ w0s, double[]@ us, double[]@ ws, vec3d[]@ ps_out, double[]@ ds);
10349 
10380 string AddRuler(const string&in startgeomid, int startsurfindx, double startu, double startw, const string&in endgeomid, int endsurfindx, double endu, double endw, const string&in name);
10381 
10412 string[]@ GetAllRulers();
10413 
10439 void DelRuler(const string&in id);
10440 
10463 void DeleteAllRulers();
10464 
10487 string AddProbe(const string&in geomid, int surfindx, double u, double w, const string&in name);
10488 
10510 string[]@ GetAllProbes();
10511 
10534 void DelProbe(const string&in id);
10535 
10557 void DeleteAllProbes();
10558 
10578 int AddFeaStruct(const string&in geom_id, bool init_skin = true, int surfindex = 0);
10579 
10600 void DeleteFeaStruct(const string&in geom_id, int fea_struct_ind);
10601 
10621 void SetFeaMeshStructIndex(int struct_index);
10622 
10642 string GetFeaStructID(const string&in geom_id, int fea_struct_ind);
10643 
10668 int GetFeaStructIndex(const string&in struct_id);
10669 
10691 string GetFeaStructParentGeomID(const string&in struct_id);
10692 
10718 string GetFeaStructName(const string&in geom_id, int fea_struct_ind);
10719 
10747 void SetFeaStructName(const string&in geom_id, int fea_struct_ind, const string&in name);
10748 
10769 string[]@ GetFeaStructIDVec();
10770 
10793 void SetFeaPartName(const string&in part_id, const string&in name);
10794 
10820 void SetFeaMeshVal(const string&in geom_id, int fea_struct_ind, int type, double val);
10821 
10850 void SetFeaMeshFileName(const string&in geom_id, int fea_struct_ind, int file_type, const string&in file_name);
10851 
10881 void ComputeFeaMesh(const string&in geom_id, int fea_struct_ind, int file_type);
10882 
10908 void ComputeFeaMesh(const string&in struct_id, int file_type);
10909 
10936 string AddFeaPart(const string&in geom_id, int fea_struct_ind, int type);
10937 
10964 void DeleteFeaPart(const string&in geom_id, int fea_struct_ind, const string&in part_id);
10965 
10995 string GetFeaPartID(const string&in fea_struct_id, int fea_part_index);
10996 
11025 string GetFeaPartName(const string&in part_id);
11026 
11052 int GetFeaPartType(const string&in part_id);
11053 
11084 int GetFeaSubSurfIndex(const string&in ss_id);
11085 
11108 int NumFeaStructures();
11109 
11138 int NumFeaParts(const string&in fea_struct_id);
11139 
11168 int NumFeaSubSurfs(const string&in fea_struct_id);
11169 
11195 string[]@ GetFeaPartIDVec(const string&in fea_struct_id);
11196 
11222 string[]@ GetFeaSubSurfIDVec(const string&in fea_struct_id);
11223 
11263 void SetFeaPartPerpendicularSparID(const string&in part_id, const string&in perpendicular_spar_id);
11264 
11303 string GetFeaPartPerpendicularSparID(const string&in part_id);
11304 
11331 string AddFeaSubSurf(const string&in geom_id, int fea_struct_ind, int type);
11332 
11359 void DeleteFeaSubSurf(const string&in geom_id, int fea_struct_ind, const string&in ss_id);
11360 
11375 string AddFeaMaterial();
11376 
11394 string AddFeaProperty(int property_type = 0);
11395 
11408 void Print(const string&in data, bool new_line = true);
11409 
11422 void Print(const vec3d&in data, bool new_line = true);
11423 
11436 void Print(double data, bool new_line = true);
11437 
11450 void Print(int data, bool new_line = true);
11451 
11467 double Min(double x, double y);
11468 
11484 double Max(double x, double y);
11485 
11500 double Rad2Deg(double r);
11501 
11516 double Deg2Rad(double d);
11517 
11531 string GetVSPVersion();
11532 
11548 string GetVSPExePath();
11549 
11570 bool SetVSPAEROPath(const string&in path);
11571 
11589 string GetVSPAEROPath();
11590 
11611 bool CheckForVSPAERO(const string&in path);
11612 
11628 void VSPCheckSetup();
11629 
11647 void VSPRenew();
11648 
11662 
11663 
void rotate_x(double cos_alpha, double sin_alpha)
ErrorObj GetLastError()
void CutCustomXSec(const string &in xsec_surf_id, int index)
EXCRES_TYPE
Definition: openvsp_as.h:1380
void ProjVecPnt01Guess(const string &in geom_id, const int &in surf_indx, vec3d[]@ pts, double[]@ u0s, double[]@ w0s, double[]@ us, double[]@ ws, double[]@ ds)
void SetXSecTanSlews(const string &in xsec_id, int side, double top, double right=- 1.0e12, double bottom=- 1.0e12, double left=- 1.0e12)
void SetParmLowerLimit(const string &in parm_id, double val)
void GetUWTess01(const string &in geom_id, int &in surf_indx, double[]@ us, double[]@ ws)
void CloneSurf(int index, Matrix4d &in mat)
void SetEditXSecFixedUVec(const string &in xsec_id, bool[]@ fixed_u_vec)
WING_BLEND
Definition: openvsp_as.h:2118
FF_B_EQN
Definition: openvsp_as.h:1528
string GetVSPFileName()
void SetCustomCenter(double x, double y, double z)
VSPAERO_STABILITY_TYPE
Definition: openvsp_as.h:2078
void loadXZRef()
void scale_y(double scale)
VIEW_TYPE
Definition: openvsp_as.h:2021
void CalcAtmosphere(const double &in alt, const double &in delta_temp, const int &in atmos_type, double &out temp, double &out pres, double &out pres_ratio, double &out rho_ratio)
void SetBackground(double r, double g, double b)
string GetUnsteadyGroupName(int group_index)
double [] GetEllipsoidCpDist(vec3d[]@ surf_pnt_arr, const vec3d &in abc_rad, const vec3d &in V_inf)
void DeleteAllProbes()
string [] FindGeomsWithName(const string &in name)
vec3d cross(const vec3d &in a, const vec3d &in b)
string CreateGeomResults(const string &in geom_id, const string &in name)
void DeleteGeomVec(string[]@ del_arr)
void DeleteAllCFDSources()
vec3d xform(const vec3d &in v)
void SetIntAnalysisInput(const string &in analysis, const string &in name, int[]@ indata_arr, int index=0)
XSEC_TRIM_TYPE
Definition: openvsp_as.h:2219
string [] FindContainersWithName(const string &in name)
double mag() const
void scale_x(double scale)
void SetLowerCST(const string &in xsec_id, int deg, double[]@ coeff_arr)
ANG_UNITS
Definition: openvsp_as.h:1058
void AxisProjVecPnt01(const string &in geom_id, const int &in surf_indx, const int &in iaxis, vec3d[]@ pts, double[]@ us, double[]@ ws, vec3d[]@ ps_out, double[]@ ds)
string GetVSPAEROPath()
string AddFeaPart(const string &in geom_id, int fea_struct_ind, int type)
VSPAERO_ANALYSIS_METHOD
Definition: openvsp_as.h:2036
int GetLowerCSTDegree(const string &in xsec_id)
double GetXSecWidth(const string &in xsec_id)
AngelScript ScriptExtension for representing the C++ std::FILE.
Definition: openvsp_as.h:297
string GetCurrentGroupName()
double signed_angle(const vec3d &in a, const vec3d &in b, const vec3d &in ref)
void SetFeaMeshStructIndex(int struct_index)
void SetCFDMeshVal(int type, double val)
vec3d [] GetAirfoilLowerPnts(const string &in xsec_id)
CF_LAM_EQN
Definition: openvsp_as.h:1208
int GetIntParmVal(const string &in parm_id)
int [] GetIntResults(const string &in id, const string &in name, int index=0)
void AddDefaultSources()
DIR_INDEX
Definition: openvsp_as.h:1314
A class for representing 4x4 matricies.
Definition: openvsp_as.h:793
string GetParmContainer(const string &in parm_id)
string AppendXSec(const string &in xsec_surf_id, int type)
void SetVec3dAnalysisInput(const string &in analysis, const string &in name, vec3d[]@ indata_arr, int index=0)
VIEW_ROT
Definition: openvsp_as.h:2009
void ScreenGrab(const string &in file_name, int w, int h, bool transparentBG)
bool GetBoolParmVal(const string &in parm_id)
int GetNumSubSurf(const string &in geom_id)
string [] GetAllDataNames(const string &in results_id)
vec3d operator-(const vec3d &in) const
void rotate_z_zero_x(double cos_alpha, double sin_alpha)
double [] PCurveGetValVec(const string &in geom_id, const int &in pcurveid)
string GetCustomParm(int index)
void offset_x(double offset)
vec3d & set_z(double z)
void DeleteFeaPart(const string &in geom_id, int fea_struct_ind, const string &in part_id)
void SkinXSecSurf(bool closed_flag=false)
void VSPExit(int error_code)
string GetFeaStructParentGeomID(const string &in struct_id)
string [] GetSubSurfIDVec(const string &in geom_id)
XSEC_CRV_TYPE
Definition: openvsp_as.h:2179
VSP_SURF_TYPE
Definition: openvsp_as.h:2105
FEA_UNIT_TYPE
Definition: openvsp_as.h:1515
void TranslateSet(int set_index, const vec3d &in translation_vec)
vec3d reflect_yz()
string GetSubSurf(const string &in geom_id, int index)
int GetSetIndex(const string &in name)
void translatef(const double &in x, const double &in y, const double &in z)
TEMP_UNITS
Definition: openvsp_as.h:1970
void TransformSurf(int index, Matrix4d &in mat)
void ReadFileAirfoil(const string &in xsec_id, const string &in file_name)
ATTACH_ROT_TYPE
Definition: openvsp_as.h:1082
void WriteBezierAirfoil(const string &in file_name, const string &in geom_id, const double &in foilsurf_u)
CF_TURB_EQN
Definition: openvsp_as.h:1218
string [] ListAnalysis()
vec3d [] GetVec3dResults(const string &in id, const string &in name, int index=0)
void SetXSecWidth(const string &in xsec_id, double w)
AngelScript ScriptExtension for representing the C++ std::vector.
Definition: openvsp_as.h:254
void UpdateParasiteDrag()
FEA_SLICE_TYPE
Definition: openvsp_as.h:1500
void AddAllToVSPAEROControlSurfaceGroup(int CSGroupIndex)
void rotate_z_zero_y(double cos_alpha, double sin_alpha)
double GetParmVal(const string &in parm_id)
void PasteXSec(const string &in geom_id, int index)
vec3d [] GetVec3dAnalysisInput(const string &in analysis, const string &in name, int index=0)
void AddExcrescence(const string &in excresName, const int &in excresType, const double &in excresVal)
FEA_PART_TYPE
Definition: openvsp_as.h:1471
void normalize()
double [] GetEditXSecUVec(const string &in xsec_id)
string [] GetAllSubSurfIDs()
void DeleteVarPresetParm(const string &in parm_ID)
string AddXSecSurf()
FEA_PART_ELEMENT_TYPE
Definition: openvsp_as.h:1460
double AxisProjPnt01I(const string &in geom_id, const int &in iaxis, const vec3d &in pt, int &out surf_indx_out, double &out u_out, double &out w_out, vec3d &out p_out)
int GetNumMainSurfs(const string &in geom_id)
void WriteVSPFile(const string &in file_name, int set)
void DemoteCSTLower(const string &in xsec_id)
void SetFeaPartName(const string &in part_id, const string &in name)
int [] GetIntAnalysisInput(const string &in analysis, const string &in name, int index=0)
void WriteBodyFFCSVFile(const string &in file_name)
string AddRuler(const string &in startgeomid, int startsurfindx, double startu, double startw, const string &in endgeomid, int endsurfindx, double endu, double endw, const string &in name)
double GetParmUpperLimit(const string &in parm_id)
string GetVSPAEROControlGroupName(int CSGroupIndex)
void PrintAnalysisInputs(const string &in analysis)
string ImportFile(const string &in file_name, int file_type, const string &in parent)
COMPUTATION_FILE_TYPE
Definition: openvsp_as.h:1258
void DelProbe(const string &in id)
SUBSURF_INOUT
Definition: openvsp_as.h:1907
void EditXSecDelPnt(const string &in xsec_id, const int &in indx)
string FindUnsteadyGroup(int group_index)
REF_WING_TYPE
Definition: openvsp_as.h:1822
void SetGeomDrawType(const string &in geom_id, int type)
vec3d ComputeXSecPnt(const string &in xsec_id, double fract)
vec3d reflect_xy()
RES_GEOM_TYPE
Definition: openvsp_as.h:1847
string ComputeMassProps(int set, int num_slices)
vec3d [] CompVecNorm01(const string &in geom_id, const int &in surf_indx, double[]@ us, double[]@ ws)
string AddFeaProperty(int property_type=0)
string FindResultsID(const string &in name, int index=0)
string FindActuatorDisk(int disk_index)
void scale(const double &in scale)
void CutGeomToClipboard(const string &in geom_id)
A class for representing 3D vectors.
Definition: openvsp_as.h:350
double cos_angle(const vec3d &in a, const vec3d &in b)
int GetNumActuatorDisks()
RES_DATA_TYPE
Definition: openvsp_as.h:1833
RHO_UNITS
Definition: openvsp_as.h:1859
void AddVarPresetParm(const string &in parm_ID)
string [] GetVarPresetParmIDsWName(const string &in group_name)
void TransformSet(int set_index, const vec3d &in translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag)
int GetNumSets()
VSP_SURF_CFD_TYPE
Definition: openvsp_as.h:2091
void PrintOnErrors()
void FitAfCST(const string &in xsec_surf_id, int xsec_index, int deg)
double SetParmValUpdate(const string &in parm_id, double val)
void PromoteCSTUpper(const string &in xsec_id)
void SetXSecTanAngles(const string &in xsec_id, int side, double top, double right=- 1.0e12, double bottom=- 1.0e12, double left=- 1.0e12)
vec3d operator/(double b) const
void InsertVSPFile(const string &in file_name, const string &in parent)
string GetFeaPartPerpendicularSparID(const string &in part_id)
void DeleteSubSurf(const string &in geom_id, const string &in sub_id)
void UpdateGui(int gui_id, const string &in parm_id)
void SetBEMPropID(const string &in prop_id)
void DeleteGeom(const string &in geom_id)
void SetDoubleAnalysisInput(const string &in analysis, const string &in name, double[]@ indata_arr, int index=0)
void loadIdentity()
int GetNumXSecSurfs(const string &in geom_id)
void SetVspSurfType(int type, int surf_index=- 1)
string GetVSPExePath()
double [] GetVKTAirfoilCpDist(const double &in alpha, const double &in epsilon, const double &in kappa, const double &in tau, vec3d[]@ xydata)
XSEC_WIDTH_SHIFT
Definition: openvsp_as.h:2245
int GetFeaSubSurfIndex(const string &in ss_id)
int GetNumAnalysisInputData(const string &in analysis, const string &in name)
string FindContainer(const string &in name, int index)
string [] FindGeoms()
XSEC_SIDES_TYPE
Definition: openvsp_as.h:2208
double SetParmVal(const string &in parm_id, double val)
void SetCFDWakeFlag(const string &in geom_id, bool flag)
string [] GetFeaStructIDVec()
GDEV
Definition: openvsp_as.h:1578
void PrintResults(const string &in id)
double z() const
void ScaleSet(int set_index, double scale)
string ComputeCompGeom(int set, bool half_mesh, int file_export_types)
double [] GetDoubleResults(const string &in id, const string &in name, int index=0)
void RemoveXSecSurf(const string &in xsec_id)
string AppendCustomXSec(const string &in xsec_surf_id, int type)
void SetStringAnalysisInput(const string &in analysis, const string &in name, string[]@ indata_arr, int index=0)
int GetNumControlSurfaceGroups()
vec3d [] GetEllipsoidSurfPnts(const vec3d &in center, const vec3d &in abc_rad, int u_npts=20, int w_npts=20)
int GetBORXSecShape(const string &in geom_id)
vec3d & set_x(double x)
string GetContainerName(const string &in parm_container_id)
vec3d CompTanW01(const string &in geom_id, const int &in surf_indx, const double &in u, const double &in w)
double dist(const vec3d &in a, const vec3d &in b)
void WriteCfEqnCSVFile(const string &in file_name)
int AddFeaStruct(const string &in geom_id, bool init_skin=true, int surfindex=0)
vec3d [] CompVecPnt01(const string &in geom_id, const int &in surf_indx, double[]@ us, double[]@ ws)
VSPAERO_PRECONDITION
Definition: openvsp_as.h:2067
string GetDesignVar(int index)
string GetResultsName(const string &in results_id)
string [] FindContainers()
vec3d [] GetEditXSecCtrlVec(const string &in xsec_id, const bool non_dimensional=true)
bool CheckClearTriggerEvent(int gui_id)
double & operator[](int) const
void DeleteResult(const string &in id)
FF_W_EQN
Definition: openvsp_as.h:1546
int GetDesignVarType(int index)
vec3d GetCustomXSecRot(const string &in xsec_id)
void SetSubSurfName(const string &in geom_id, const string &in sub_id, const string &in name)
int GetResultsType(const string &in results_id, const string &in data_name)
double Max(double x, double y)
INTERSECT_EXPORT_TYPE
Definition: openvsp_as.h:1653
string AddFeaMaterial()
void SetupCustomDefaultSource(int type, int surf_index, double l1, double r1, double u1, double w1, double l2=0, double r2=0, double u2=0, double w2=0)
SUBSURF_TYPE
Definition: openvsp_as.h:1928
int GetUpperCSTDegree(const string &in xsec_id)
double [] PCurveGetTVec(const string &in geom_id, const int &in pcurveid)
double SnapParm(const string &in parm_id, double target_min_dist, bool inc_flag, int set)
Matrix4d GetXSecSurfGlobalXForm(const string &in xsec_surf_id)
bool GetSetFlag(const string &in geom_id, int set_index)
vec3d GetCustomXSecLoc(const string &in xsec_id)
STEP_REPRESENTATION
Definition: openvsp_as.h:1886
double GetParmLowerLimit(const string &in parm_id)
double dot(const vec3d &in a, const vec3d &in b)
void SetFeaMeshVal(const string &in geom_id, int fea_struct_ind, int type, double val)
string [] FindContainerGroupNames(const string &in parm_container_id)
double x() const
void CopyPasteSet(int copyIndex, int pasteIndex)
double SetParmValLimits(const string &in parm_id, double val, double lower_limit, double upper_limit)
int NumFeaSubSurfs(const string &in fea_struct_id)
void WriteAtmosphereCSVFile(const string &in file_name, const int &in atmos_type)
string [] GetAllRulers()
void AddDesignVar(const string &in parm_id, int type)
string ComputePlaneSlice(int set, int num_slices, const vec3d &in norm, bool auto_bnd, double start_bnd=0, double end_bnd=0)
void Print(const string &in data, bool new_line=true)
void RemoveSelectedFromCSGroup(int[]@ selected, int CSGroupIndex)
void rotateX(const double &in ang)
void WriteWingFFCSVFile(const string &in file_name)
string InsertCustomXSec(const string &in xsec_surf_id, int type, int index)
double angle(const vec3d &in a, const vec3d &in b)
void EditXSecInitShape(const string &in xsec_id)
double [] GetUpperCSTCoefs(const string &in xsec_id)
string [] GetGeomTypes()
int CreateVSPAEROControlSurfaceGroup()
string [] GetVarPresetSettingNamesWIndex(int group_index)
string GetFeaStructID(const string &in geom_id, int fea_struct_ind)
double Min(double x, double y)
void SetXSecSurfGlobalXForm(const string &in xsec_surf_id, const Matrix4d &in mat)
double ProjPnt01Guess(const string &in geom_id, const int &in surf_indx, const vec3d &in pt, const double &in u0, const double &in w0, double &out u, double &out w)
string [] GetVarPresetParmIDs()
string GetParmName(const string &in parm_id)
vec3d getAngles()
string [] GetAllResultsNames()
string [] FindContainerParmIDs(const string &in parm_container_id)
int GetNumUnsteadyRotorGroups()
void SetXSecWidthHeight(const string &in xsec_id, double w, double h)
double ComputeMinClearanceDistance(const string &in geom_id, int set)
string [] GetCompleteCSNameVec()
bool SetVSPAEROPath(const string &in path)
void CompVecCurvature01(const string &in geom_id, const int &in surf_indx, double[]@ us, double[]@ ws, double[]@ k1s, double[]@ k2s, double[]@ kas, double[]@ kgs)
void loadYZRef()
void VSPCheckSetup()
string GetParmDisplayGroupName(const string &in parm_id)
void buildXForm(const vec3d &in pos, const vec3d &in rot, const vec3d &in cent_rot)
string SetVSPAERORefWingID(const string &in geom_id)
string [] GetAnalysisInputNames(const string &in analysis)
int GetNumAnalysis()
void loadXYRef()
void scale_z(double scale)
int GetGeomVSPSurfCfdType(const string &in geom_id, int main_surf_ind=0)
void DelRuler(const string &in id)
void RemoveAllFromVSPAEROControlSurfaceGroup(int CSGroupIndex)
void rotate(const double &in ang, const vec3d &in axis)
VIEW_NUM
Definition: openvsp_as.h:1997
bool [] GetEditXSecFixedUVec(const string &in xsec_id)
string GetSubSurfName(const string &in geom_id, const string &in sub_id)
void CompCurvature01(const string &in geom_id, const int &in surf_indx, const double &in u, const double &in w, double &out k1, double &out k2, double &out ka, double &out kg)
CFD_CONTROL_TYPE
Definition: openvsp_as.h:1140
FREESTREAM_PD_UNITS
Definition: openvsp_as.h:1568
string [] GetAllProbes()
string GetGeomName(const string &in geom_id)
vec3d operator+(const vec3d &in) const
int GetSubSurfIndex(const string &in sub_id)
ERROR_CODE
Definition: openvsp_as.h:1350
void offset_y(double offset)
string [] GetStringResults(const string &in id, const string &in name, int index=0)
string GetVSPVersion()
void SetAirfoilPnts(const string &in xsec_id, vec3d[]@ up_pnt_vec, vec3d[]@ low_pnt_vec)
EXPORT_TYPE
Definition: openvsp_as.h:1393
void AutoGroupVSPAEROControlSurfaces()
string AddGeom(const string &in type, const string &in parent=string())
void offset_z(double offset)
string FindLatestResultsID(const string &in name)
void ChangeBORXSecShape(const string &in geom_id, int type)
VEL_UNITS
Definition: openvsp_as.h:1982
void SetPCurve(const string &in geom_id, const int &in pcurveid, double[]@ tvec, double[]@ valvec, const int &in newtype)
string [] GetGeomParmIDs(const string &in geom_id)
void SetXSecContinuity(const string &in xsec_id, int cx)
string [] GetVarPresetGroupNames()
int GetFeaPartType(const string &in part_id)
PRES_UNITS
Definition: openvsp_as.h:1737
int PCurveGetType(const string &in geom_id, const int &in pcurveid)
void AxisProjVecPnt01Guess(const string &in geom_id, int &in surf_indx, const int &in iaxis, vec3d[]@ pts, double[]@ u0s, double[]@ w0s, double[]@ us, double[]@ ws, vec3d[]@ ps_out, double[]@ ds)
string GetXSecParm(const string &in xsec_id, const string &in name)
string GetXSec(const string &in xsec_surf_id, int xsec_index)
XSEC_TYPE
Definition: openvsp_as.h:2231
string [] GetAvailableCSNameVec(int CSGroupIndex)
DELIM_TYPE
Definition: openvsp_as.h:1291
string FindParm(const string &in parm_container_id, const string &in parm_name, const string &in group_name)
vec3d CompPnt01(const string &in geom_id, const int &in surf_indx, const double &in u, const double &in w)
ABS_REL_FLAG
Definition: openvsp_as.h:1038
void rotateY(const double &in ang)
void DeleteFeaSubSurf(const string &in geom_id, int fea_struct_ind, const string &in ss_id)
void CopyCustomXSec(const string &in xsec_surf_id, int index)
int GetNumData(const string &in results_id, const string &in data_name)
DISPLAY_TYPE
Definition: openvsp_as.h:1325
void SetVspSurfCfdType(int type, int surf_index=- 1)
string [] GetXSecParmIDs(const string &in xsec_id)
void ClearVSPModel()
int GetNumDesignVars()
string GetFeaPartName(const string &in part_id)
int GetGeomVSPSurfType(const string &in geom_id, int main_surf_ind=0)
void ClearXSecSurfs()
bool CheckForVSPAERO(const string &in path)
void ComputeCFDMesh(int set, int file_type)
IMPORT_TYPE
Definition: openvsp_as.h:1625
void SetXSecPnts(const string &in xsec_id, vec3d[]@ pnt_arr)
int EditXSecSplit01(const string &in xsec_id, const double &in u)
SYM_XSEC_TYPE
Definition: openvsp_as.h:1958
vec3d [] GetAirfoilCoordinates(const string &in geom_id, const double &in foilsurf_u)
SUBSURF_INCLUDE
Definition: openvsp_as.h:1896
WING_DRIVERS
Definition: openvsp_as.h:2135
void SwitchVarPreset(const string &in group_name, const string &in setting_name)
double y() const
DRAW_TYPE
Definition: openvsp_as.h:1337
void SetSetName(int index, const string &in name)
string GetGeomTypeName(const string &in geom_id)
SYM_FLAG
Definition: openvsp_as.h:1942
VSPAERO_NOISE_TYPE
Definition: openvsp_as.h:2046
vec3d [] ReadFileXSec(const string &in xsec_id, const string &in file_name)
void WriteTestResults()
ErrorObj PopLastError()
SET_TYPE
Definition: openvsp_as.h:1873
double Deg2Rad(double d)
double Rad2Deg(double r)
vec3d CompNorm01(const string &in geom_id, const int &in surf_indx, const double &in u, const double &in w)
CFD_MESH_SOURCE_TYPE
Definition: openvsp_as.h:1194
void ReadApplyXDDMFile(const string &in file_name)
void SetViewAxis(bool vaxis)
void affineInverse()
ATTACH_TRANS_TYPE
Definition: openvsp_as.h:1093
DIMENSION_SET
Definition: openvsp_as.h:1304
int GetTotalNumSurfs(const string &in geom_id)
string ExecAnalysis(const string &in analysis)
bool DeleteVarPresetSet(const string &in group_name, const string &in setting_name)
string AddProbe(const string &in geomid, int surfindx, double u, double w, const string &in name)
PATCH_TYPE
Definition: openvsp_as.h:1710
MASS_UNIT
Definition: openvsp_as.h:1682
double GetXSecHeight(const string &in xsec_id)
AngelScript ScriptExtension for representing generic container that can hold any value.
Definition: openvsp_as.h:329
vec3d GetGeomBBoxMin(const string &in geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true)
A class for representing API Errors.
Definition: openvsp_as.h:1001
bool GetErrorLastCallFlag()
void DeleteAllResults()
BOR_MODE
Definition: openvsp_as.h:1104
void ResetXSecSkinParms(const string &in xsec_id)
vec3d [] GetProxyVec3dArray()
int GetAnalysisInputType(const string &in analysis, const string &in name)
CAMBER_INPUT_FLAG
Definition: openvsp_as.h:1116
void WriteDESFile(const string &in file_name)
int GetNumTotalErrors()
void SetFeaMeshFileName(const string &in geom_id, int fea_struct_ind, int file_type, const string &in file_name)
string GetFeaStructName(const string &in geom_id, int fea_struct_ind)
void SetShowBorders(bool brdr)
PROJ_BNDY_TYPE
Definition: openvsp_as.h:1756
XDDM_QUANTITY_TYPE
Definition: openvsp_as.h:2155
CAP_TYPE
Definition: openvsp_as.h:1126
string GetXSecSurf(const string &in geom_id, int index)
XSEC_CLOSE_TYPE
Definition: openvsp_as.h:2165
PROJ_TGT_TYPE
Definition: openvsp_as.h:1782
string [] GetActiveCSNameVec(int CSGroupIndex)
void ComputeDegenGeom(int set, int file_type)
vec3d [] GetAirfoilUpperPnts(const string &in xsec_id)
FEA_RIB_NORMAL
Definition: openvsp_as.h:1488
vec3d reflect_xz()
void AddVarPresetGroup(const string &in group_name)
double ProjPnt01(const string &in geom_id, const int &in surf_indx, const vec3d &in pt, double &out u, double &out w)
void SetFeaStructName(const string &in geom_id, int fea_struct_ind, const string &in name)
vec3d GetGeomBBoxMax(const string &in geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true)
void SetFeaPartPerpendicularSparID(const string &in part_id, const string &in perpendicular_spar_id)
int GetParmType(const string &in parm_id)
string AddFeaSubSurf(const string &in geom_id, int fea_struct_ind, int type)
string GetCurrentSettingName()
void SetSetFlag(const string &in geom_id, int set_index, bool flag)
void DeleteAllDesignVars()
void ReadVSPFile(const string &in file_name)
void Update(bool update_managers=true)
vec3d ComputeXSecTan(const string &in xsec_id, double fract)
int AddGui(int type, const string &in label=string(), const string &in parm_name=string(), const string &in group_name=string(), double range=10.0)
FEA_CROSS_SECT_TYPE
Definition: openvsp_as.h:1426
int GetXSecShape(const string &in xsec_id)
SUBSURF_LINE_TYPE
Definition: openvsp_as.h:1918
int GetSubSurfType(const string &in sub_id)
FEA_EXPORT_TYPE
Definition: openvsp_as.h:1440
void SetAnalysisInputDefaults(const string &in analysis)
string GetSetName(int index)
void ChangeXSecShape(const string &in xsec_surf_id, int xsec_index, int type)
void CopyXSec(const string &in geom_id, int index)
void CutXSec(const string &in geom_id, int index)
void SetUpperCST(const string &in xsec_id, int deg, double[]@ coeff_arr)
string GetCurrCustomGeom()
void DemoteCSTUpper(const string &in xsec_id)
void ClearAllCustomDefaultSources()
double AxisProjPnt01(const string &in geom_id, const int &in surf_indx, const int &in iaxis, const vec3d &in pt, double &out u_out, double &out w_ou, vec3d &out p_out)
void DeleteExcrescence(const int &in excresName)
void ProjVecPnt01(const string &in geom_id, const int &in surf_indx, vec3d[]@ pts, double[]@ us, double[]@ ws, double[]@ ds)
double dist_squared(const vec3d &in a, const vec3d &in b)
double [] GetDoubleAnalysisInput(const string &in analysis, const string &in name, int index=0)
void SetCustomXSecRot(const string &in xsec_id, const vec3d &in rot)
void AddVarPresetSetting(const string &in setting_name)
COLLISION_ERRORS
Definition: openvsp_as.h:1247
void AddCFDSource(int type, const string &in 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 SetCustomXSecLoc(const string &in xsec_id, const vec3d &in loc)
void PromoteCSTLower(const string &in xsec_id)
void InsertXSec(const string &in geom_id, int index, int type)
void SetVSP3FileName(const string &in file_name)
void ReparameterizeEditXSec(const string &in xsec_id)
void SetParmDescript(const string &in parm_id, const string &in desc)
int GetNumXSec(const string &in xsec_surf_id)
void PCurveDeletePt(const string &in geom_id, const int &in pcurveid, const int &in indx)
string GetParmGroupName(const string &in parm_id)
void UpdateGeom(const string &in geom_id)
void WriteSeligAirfoil(const string &in file_name, const string &in geom_id, const double &in foilsurf_u)
string [] GetGeomSet(const string &in name)
bool ValidParm(const string &in id)
string FindGeom(const string &in name, int index)
int GetNumUnsteadyGroups()
void SetParmUpperLimit(const string &in parm_id, double val)
INIT_EDIT_XSEC_TYPE
Definition: openvsp_as.h:1642
void PCurveConvertTo(const string &in geom_id, const int &in pcurveid, const int &in newtype)
string GetErrorString()
double [] GetVarPresetParmVals()
string [] GetVarPresetSettingNamesWName(const string &in group_name)
string GetGeomParent(const string &in geom_id)
void rotate_y(double cos_alpha, double sin_alpha)
void ConvertXSecToEdit(const string &in geom_id, const int &in indx=0)
int [] GetUnsteadyGroupSurfIndexes(int group_index)
vec3d & set_xyz(double x, double y, double z)
void rotate_z(double cos_alpha, double sin_alpha)
string AddParm(int type, const string &in name, const string &in group)
string [] GetUnsteadyGroupCompIDs(int group_index)
double [] GetVarPresetParmValsWNames(const string &in group_name, const string &in setting_name)
int NumFeaParts(const string &in fea_struct_id)
vec3d [] GetFeatureLinePnts(const string &in geom_id)
void DeleteFeaStruct(const string &in geom_id, int fea_struct_ind)
string [] GetFeaSubSurfIDVec(const string &in fea_struct_id)
AIRFOIL_EXPORT_TYPE
Definition: openvsp_as.h:1048
AngelScript ScriptExtension for representing the C++ std::string.
Definition: openvsp_as.h:197
void MoveEditXSecPnt(const string &in xsec_id, const int &in indx, const vec3d &in new_pnt)
void SetGeomDisplayType(const string &in geom_id, int type)
void SetXSecTanStrengths(const string &in xsec_id, int side, double top, double right=- 1.0e12, double bottom=- 1.0e12, double left=- 1.0e12)
void DeleteAllRulers()
void WriteResultsCSVFile(const string &in id, const string &in file_name)
void SetEditXSecPnts(const string &in xsec_id, double[]@ u_vec, vec3d[]@ control_pts)
double [] GetLowerCSTCoefs(const string &in xsec_id)
string ExportFile(const string &in file_name, int write_set_index, int file_type)
void EditVarPresetParm(const string &in parm_ID, double parm_val)
ERROR_CODE GetErrorCode()
void SetXSecHeight(const string &in xsec_id, double h)
PROP_PCURVE
Definition: openvsp_as.h:1804
void EditXSecConvertTo(const string &in xsec_id, const int &in newtype)
string [] GetGeomChildren(const string &in geom_id)
void WritePartialCfMethodCSVFile(const string &in file_name)
void SetGeomName(const string &in geom_id, const string &in name)
vec3d operator *(double b) const
void VSPRenew()
double [][] GetDoubleMatResults(const string &in id, const string &in name, int index=0)
string [] GetFeaPartIDVec(const string &in fea_struct_id)
int NumFeaStructures()
PCURV_TYPE
Definition: openvsp_as.h:1724
vec3d [] GetHersheyBarDragDist(const int &in npts, const double &in alpha, const double &in Vinf, const double &in span, bool full_span_flag=false)
PROP_MODE
Definition: openvsp_as.h:1793
double ProjPnt01I(const string &in geom_id, const vec3d &in pt, int &out surf_indx, double &out u, double &out w)
void SetXSecCurvatures(const string &in xsec_id, int side, double top, double right=- 1.0e12, double bottom=- 1.0e12, double left=- 1.0e12)
GENDER
Definition: openvsp_as.h:1615
double AxisProjPnt01Guess(const string &in geom_id, const int &in surf_indx, const int &in iaxis, const vec3d &in pt, const double &in u0, const double &in w0, double &out u_out, double &out w_out, vec3d &out p_out)
int PCurveSplit(const string &in geom_id, const int &in pcurveid, const double &in tsplit)
void SetVSPAEROControlGroupName(const string &in name, int CSGroupIndex)
string GetVSPAERORefWingID()
string [] GetStringAnalysisInput(const string &in analysis, const string &in name, int index=0)
vec3d CompTanU01(const string &in geom_id, const int &in surf_indx, const double &in u, const double &in w)
void SetDriverGroup(const string &in geom_id, int section_index, int driver_0, int driver_1, int driver_2)
ATMOS_TYPE
Definition: openvsp_as.h:1068
void CopyGeomToClipboard(const string &in geom_id)
PROJ_DIR_TYPE
Definition: openvsp_as.h:1768
vec3d & set_y(double y)
void RotateSet(int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg)
vec3d RotateArbAxis(const vec3d &in p, double theta, const vec3d &in axis)
void PasteCustomXSec(const string &in xsec_surf_id, int index)
CFD_MESH_EXPORT_TYPE
Definition: openvsp_as.h:1172
void rotateZ(const double &in ang)
LEN_UNITS
Definition: openvsp_as.h:1667
void SilenceErrors()
void SetComputationFileName(int file_type, const string &in file_name)
string GetFeaPartID(const string &in fea_struct_id, int fea_part_index)
int GetFeaStructIndex(const string &in struct_id)
string GetParm(const string &in geom_id, const string &in name, const string &in group)
int GetNumResults(const string &in name)
string [] PasteGeomClipboard(const string &in parent_id="")
void ComputeFeaMesh(const string &in geom_id, int fea_struct_ind, int file_type)
vec3d [] GetHersheyBarLiftDist(const int &in npts, const double &in alpha, const double &in Vinf, const double &in span, bool full_span_flag=false)
string [] GetGeomSetAtIndex(int index)
VSPAERO_NOISE_UNIT
Definition: openvsp_as.h:2057
string AddSubSurf(const string &in geom_id, int type, int surfindex=0)
string [] GetSubSurfParmIDs(const string &in sub_id)
void ReadApplyDESFile(const string &in file_name)
void AddSelectedToCSGroup(int[]@ selected, int CSGroupIndex)
void WriteXDDMFile(const string &in file_name)
vec3d [] GetVKTAirfoilPnts(const int &in npts, const double &in alpha, const double &in epsilon, const double &in kappa, const double &in tau)
PARM_TYPE
Definition: openvsp_as.h:1696