This group of functions is used to setup and run the CFD Mesh tool through the API. Click here to return to the main page.
More...
|
void | vsp::SetComputationFileName (int file_type, const std::string &file_name) |
|
void | vsp::ComputeCFDMesh (int set, int degenset, int file_export_types) |
|
void | vsp::SetCFDMeshVal (int type, double val) |
|
void | vsp::SetCFDWakeFlag (const std::string &geom_id, bool flag) |
|
void | vsp::DeleteAllCFDSources () |
|
void | vsp::AddDefaultSources () |
|
void | vsp::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) |
|
◆ AddCFDSource()
void vsp::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 ) |
|
extern |
Add a CFD Mesh default source for the indicated Geom. Note, certain input params may not be used depending on the source type
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)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
- See also
- CFD_MESH_SOURCE_TYPE
- Parameters
-
[in] | type | CFD Mesh source type( i.e.BOX_SOURCE ) |
[in] | geom_id | string Geom ID |
[in] | surf_index | Main surface index |
[in] | l1 | Source first edge length |
[in] | r1 | Source first radius |
[in] | u1 | Source first U location |
[in] | w1 | Source first W location |
[in] | l2 | Source second edge length |
[in] | r2 | Source second radius |
[in] | u2 | Source second U location |
[in] | w2 | Source second W location |
◆ AddDefaultSources()
void vsp::AddDefaultSources |
( |
| ) |
|
|
extern |
Add default CFD Mesh sources for all Geoms
◆ ComputeCFDMesh()
void vsp::ComputeCFDMesh |
( |
int | set, |
|
|
int | degenset, |
|
|
int | file_export_types ) |
|
extern |
Create a CFD Mesh for the components in the set. This analysis cannot be run through the Analysis Manager.
Print( "\tComputing CFDMesh..." );
void ComputeCFDMesh(int set, int degenset, int file_export_types)
void SetComputationFileName(int file_type, const std::string &file_name)
- See also
- COMPUTATION_FILE_TYPE
- Parameters
-
[in] | set | int Set index (i.e. SET_ALL) |
[in] | degenset | int DegenSet index (i.e. SET_NONE) |
[in] | file_export_types | int CFD Mesh file type to export (supports XOR i.e CFD_SRF_TYPE & CFD_STL_TYPE) |
◆ DeleteAllCFDSources()
void vsp::DeleteAllCFDSources |
( |
| ) |
|
|
extern |
Delete all CFD Mesh sources for all Geoms
void DeleteAllCFDSources()
◆ SetCFDMeshVal()
void vsp::SetCFDMeshVal |
( |
int | type, |
|
|
double | val ) |
|
extern |
Set the value of a specific CFD Mesh option
void SetCFDMeshVal(int type, double val)
- See also
- CFD_CONTROL_TYPE
- Parameters
-
[in] | type | int CFD Mesh control type enum (i.e. CFD_GROWTH_RATIO) |
[in] | val | double Value to set |
◆ SetCFDWakeFlag()
void vsp::SetCFDWakeFlag |
( |
const std::string & | geom_id, |
|
|
bool | flag ) |
|
extern |
Activate or deactivate the CFD Mesh wake for a particular Geom. Note, the wake flag is only applicable for wing-type surfaces. Also, this function is simply an alternative to setting the value of the Parm with the available Parm setting API functions.
string wid =
AddGeom(
"WING",
"" );
void SetCFDWakeFlag(const std::string &geom_id, bool flag)
- See also
- SetParmVal, SetParmValUpdate
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | flag | True to activate, false to deactivate |
◆ SetComputationFileName()
void vsp::SetComputationFileName |
( |
int | file_type, |
|
|
const std::string & | file_name ) |
|
extern |
Get the file name of a specified file type. Note, this function cannot be used to set FEA Mesh file names.
void ComputeDegenGeom(int set, int file_export_types)
- See also
- COMPUTATION_FILE_TYPE, SetFeaMeshFileName
- Parameters
-
[in] | file_type | File type enum (i.e. CFD_TRI_TYPE, COMP_GEOM_TXT_TYPE) |
[in] | file_name | File name |