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...
Functions | |
| std::string | vsp::GetComputationFileName (int file_type) |
| void | vsp::SetComputationFileName (int file_type, const std::string &file_name) |
| void | vsp::ComputeCFDMesh (int set, int degenset, int file_export_types) |
| void | vsp::SetCFDMeshModeID (const std::string &mode_id) |
| std::string | vsp::GetCFDMeshModeID () |
| void | vsp::SetIntersectModeID (const std::string &mode_id) |
| std::string | vsp::GetIntersectModeID () |
| double | vsp::GetCFDMeshVal (int type) |
| void | vsp::SetCFDMeshVal (int type, double val) |
| bool | vsp::GetCFDWakeFlag (const std::string &geom_id) |
| void | vsp::SetCFDWakeFlag (const std::string &geom_id, bool flag) |
| void | vsp::SetCFDFarFieldGeomID (const std::string &geom_id) |
| std::string | vsp::GetCFDFarFieldGeomID () |
| int | vsp::GetNumCFDSources (const std::string &geom_id) |
| std::string | vsp::GetCFDSourceName (const std::string &geom_id, int source_index) |
| std::string | vsp::GetCFDSourceNameByID (const std::string &source_id) |
| void | vsp::SetCFDSourceName (const std::string &geom_id, int source_index, const std::string &name) |
| void | vsp::SetCFDSourceNameByID (const std::string &source_id, const std::string &name) |
| int | vsp::GetCFDSourceType (const std::string &geom_id, int source_index) |
| int | vsp::GetCFDSourceTypeByID (const std::string &source_id) |
| void | vsp::DeleteCFDSource (const std::string &geom_id, int source_index) |
| void | vsp::DeleteCFDSourceByID (const std::string &source_id) |
| void | vsp::DeleteAllCFDSources () |
| std::string | vsp::GetCFDSourceID (const std::string &geom_id, int source_index) |
| std::vector< std::string > | vsp::GetCFDSourceIDVec (const std::string &geom_id) |
| void | vsp::AdjustAllCFDSourceLen (double mult) |
| void | vsp::AdjustAllCFDSourceRad (double mult) |
| void | vsp::AddDefaultSources () |
| std::string | 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
| [in] | type | int CFD Mesh source type( i.e.BOX_SOURCE ) |
| [in] | geom_id | string Geom ID |
| [in] | surf_index | int Main surface index |
| [in] | l1 | double Source first edge length |
| [in] | r1 | double Source first radius |
| [in] | u1 | double Source first U location |
| [in] | w1 | double Source first W location |
| [in] | l2 | double Source second edge length |
| [in] | r2 | double Source second radius |
| [in] | u2 | double Source second U location |
| [in] | w2 | double Source second W location |
|
extern |
Add default CFD Mesh sources for all Geoms
|
extern |
Scale the edge length of every CFD Mesh source in the model by a common factor. This is what the four global source length buttons on the CFD Mesh screen do, at 1/1.5, 1/1.1, 1.1 and 1.5. Sources are usually sized relative to one another, so scaling them together is how a mesh is refined or coarsened as a whole.
| [in] | mult | double Factor to scale every source length by |
|
extern |
Scale the radius of influence of every CFD Mesh source in the model by a common factor. This is what the four global source radius buttons on the CFD Mesh screen do, at 1/1.5, 1/1.1, 1.1 and 1.5.
| [in] | mult | double Factor to scale every source radius by |
|
extern |
Create a CFD Mesh for the components in the set. This analysis cannot be run through the Analysis Manager. When the CFD Mesh UseMode flag is on, the sets of its mode replace set and degenset.
| [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) |
|
extern |
Delete every CFD Mesh source on every Geom.
|
extern |
Delete a single CFD Mesh source from the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | source_index | int Source index |
|
extern |
Delete a CFD Mesh source, by source ID.
| [in] | source_id | string CFD Mesh source ID |
|
extern |
Get the Geom that stands in for the CFD Mesh far field box. Comes back empty when none has been named.
|
extern |
Get the mode CFD Mesh uses when its UseMode flag is on.
|
extern |
Set the value of a specific CFD Mesh option
| [in] | type | int CFD Mesh control type enum (i.e. CFD_GROWTH_RATIO) |
| [in] | val | double Value to set |
Get the value of a specific CFD Mesh option
| [in] | type | int CFD Mesh control type enum (i.e. CFD_GROWTH_RATIO) |
|
extern |
Get the ParmContainer ID of a CFD Mesh source, so its size and placement can be read and driven after the source has been created. A source's Parms live in the "Source" group and are named SrcLen, SrcRad, U_Loc and W_Loc, with SrcLen2, SrcRad2 and the numbered locations on the source types that take two ends.
| [in] | geom_id | string Geom ID |
| [in] | source_index | int CFD Mesh source index |
|
extern |
Get the IDs of the CFD Mesh sources of a Geom, in the order of their indexes.
| [in] | geom_id | string Geom ID |
|
extern |
Get the name of a CFD Mesh source on the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | source_index | int Source index |
|
extern |
Get the name of a CFD Mesh source, by source ID.
| [in] | source_id | string CFD Mesh source ID |
|
extern |
Get the type of one CFD Mesh source on a Geom.
| [in] | geom_id | string Geom ID |
| [in] | source_index | int Index of the source on that Geom |
|
extern |
Get the type of a CFD Mesh source, by source ID.
| [in] | source_id | string CFD Mesh source ID |
|
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.
| [in] | geom_id | string Geom ID |
| [in] | flag | bool True to activate, false to deactivate |
Get the CFD Mesh wake flag for a particular Geom
| [in] | geom_id | string Geom ID |
|
extern |
Get the file name of a specified file type. Note, this function cannot be used to set FEA Mesh file names.
| [in] | file_type | int File type enum (i.e. CFD_TRI_TYPE, COMP_GEOM_TXT_TYPE) |
| [in] | file_name | string File name |
Get the file name of a specified file type. Note, this function cannot be used to get FEA Mesh file names.
| [in] | file_type | int File type enum (i.e. CFD_TRI_TYPE, COMP_GEOM_TXT_TYPE) |
|
extern |
Get the mode Surface Intersection uses when its UseMode flag is on.
|
extern |
Delete all CFD Mesh sources for all Geoms
Get the number of CFD Mesh sources on the specified Geom
| [in] | geom_id | string Geom ID |
|
extern |
Set the Geom that stands in for the CFD Mesh far field box. Turning the far field on and choosing to use a component for it are separate settings; this one only names the component. Pass an empty string to clear it.
| [in] | geom_id | string Geom ID, or an empty string to clear |
|
extern |
Set the mode CFD Mesh uses when its UseMode flag is on, or an empty string for none. The flag is the "UseMode" Parm, group "Global", of the "CFDMeshSettings" container.
| [in] | mode_id | string Mode ID, or an empty string |
|
extern |
Set one of the CFD Mesh settings. The type is one of the CFD mesh setting enums, and the value is read as a double whatever the setting means.
| [in] | type | int CFD mesh setting enum (i.e. CFD_MIN_EDGE_LEN) |
| [in] | val | double Value to set |
|
extern |
Get the type of a CFD Mesh source on the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | source_index | int Source index |
Set the name of a CFD Mesh source on the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | source_index | int Source index |
| [in] | name | string Source name |
|
extern |
Set the name of a CFD Mesh source, by source ID.
| [in] | source_id | string CFD Mesh source ID |
| [in] | name | string New name for the source |
|
extern |
Say whether a Geom sheds a wake in CFD Mesh. This is the Wake check box on the CFD Mesh screen.
| [in] | geom_id | string Geom ID |
| [in] | flag | bool True to shed a wake from this Geom |
|
extern |
Set the file name a computation writes for one export type. The type is one of the computation file type enums, and each is remembered separately.
| [in] | file_type | int Computation file type enum (i.e. CFD_STL_TYPE) |
| [in] | file_name | string Name of the file to write |
|
extern |
Set the mode Surface Intersection uses when its UseMode flag is on, or an empty string for none. The flag is the "UseMode" Parm, group "Global", of the "SurfaceIntersectSettings" container.
| [in] | mode_id | string Mode ID, or an empty string |