The following group of API functions are available for general computations. In general, it is best practice to perform computations through the the Analysis group instead of calling these functions directly. Click here to return to the main page.
More...
|
std::string | vsp::ComputeMassProps (int set, int num_slices, int idir) |
|
std::string | vsp::ComputeCompGeom (int set, bool half_mesh, int file_export_types) |
|
std::string | vsp::ComputePlaneSlice (int set, int num_slices, const vec3d &norm, bool auto_bnd, double start_bnd=0, double end_bnd=0, bool measureduct=false) |
|
void | vsp::ComputeDegenGeom (int set, int file_export_types) |
|
◆ ComputeCompGeom()
std::string vsp::ComputeCompGeom |
( |
int | set, |
|
|
bool | half_mesh, |
|
|
int | file_export_types ) |
|
extern |
Mesh, intersect, and trim components in the set. Alternatively can be run through the Analysis Manager with 'CompGeom'.
std::string ComputeCompGeom(int set, bool half_mesh, int file_export_types)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
std::string FindLatestResultsID(const std::string &name)
const std::vector< double > & GetDoubleResults(const std::string &id, const std::string &name, int index=0)
- See also
- SetAnalysisInputDefaults, PrintAnalysisInputs, ExecAnalysis, COMPUTATION_FILE_TYPE
- Parameters
-
[in] | set | Set index (i.e. SET_ALL) |
[in] | half_mesh | Flag to ignore surfaces on the negative side of the XZ plane (e.g. symmetry) |
[in] | file_export_types | CompGeom file type to export (supports XOR i.e. COMP_GEOM_CSV_TYPE & COMP_GEOM_TXT_TYPE ) |
- Returns
- MeshGeom ID
◆ ComputeDegenGeom()
void vsp::ComputeDegenGeom |
( |
int | set, |
|
|
int | file_export_types ) |
|
extern |
Compute the degenerate geometry representation for the components in the set. Alternatively can be run through the Analysis Manager with 'DegenGeom' or 'VSPAERODegenGeom'.
void SetComputationFileName(int file_type, const std::string &file_name)
void ComputeDegenGeom(int set, int file_export_types)
- See also
- SetAnalysisInputDefaults, PrintAnalysisInputs, ExecAnalysis, COMPUTATION_FILE_TYPE
- Parameters
-
[in] | set | int Set index (i.e. SET_ALL) |
[in] | file_export_types | int DegenGeom file type to export (supports XOR i.e DEGEN_GEOM_M_TYPE & DEGEN_GEOM_CSV_TYPE) |
◆ ComputeMassProps()
std::string vsp::ComputeMassProps |
( |
int | set, |
|
|
int | num_slices, |
|
|
int | idir ) |
|
extern |
Compute mass properties for the components in the set. Alternatively can be run through the Analysis Manager with 'MassProp'.
if ( double_arr.size() != 1 ) { Print( "---> Error: API ComputeMassProps" ); }
std::string ComputeMassProps(int set, int num_slices, int idir)
- See also
- SetAnalysisInputDefaults, PrintAnalysisInputs, ExecAnalysis
- Parameters
-
[in] | set | Set index (i.e. SET_ALL) |
[in] | num_slices | Number of slices |
[in] | idir | Direction of slicing for integration |
- Returns
- MeshGeom ID
◆ ComputePlaneSlice()
std::string vsp::ComputePlaneSlice |
( |
int | set, |
|
|
int | num_slices, |
|
|
const vec3d & | norm, |
|
|
bool | auto_bnd, |
|
|
double | start_bnd = 0, |
|
|
double | end_bnd = 0, |
|
|
bool | measureduct = false ) |
|
extern |
Slice and mesh the components in the set. Alternatively can be run through the Analysis Manager with 'PlanarSlice'.
if ( double_arr.size() != 6 ) { Print( "---> Error: API ComputePlaneSlice" ); }
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)
- See also
- SetAnalysisInputDefaults, PrintAnalysisInputs, ExecAnalysis
- Parameters
-
[in] | set | Set index (i.e. SET_ALL) |
[in] | num_slices | Number of slices |
[in] | norm | Normal axis for all slices |
[in] | auto_bnd | Flag to automatically set the start and end bound locations |
[in] | start_bnd | Location of the first slice along the normal axis (default: 0.0) |
[in] | end_bnd | Location of the last slice along the normal axis (default: 0.0) |
[in] | measureduct | Flag to measure negative area inside positive area (default: false) |
- Returns
- MeshGeom ID