The following group of API functions supports all functionality of the FEA Mesh Tool. Structures, FEA Parts, materials, and properties can be defined and manipulated. Mesh and output file settings can be adjusted, and an FEA mesh can be generated.
Click here to return to the main page.
More...
|
int | AddFeaStruct (const string &in geom_id, bool init_skin=true, int surfindex=0) |
|
void | DeleteFeaStruct (const string &in geom_id, int fea_struct_ind) |
|
string | GetFeaStructID (const string &in geom_id, int fea_struct_ind) |
|
int | GetFeaStructIndex (const string &in struct_id) |
|
string | GetFeaStructParentGeomID (const string &in struct_id) |
|
string | GetFeaStructName (const string &in geom_id, int fea_struct_ind) |
|
void | SetFeaStructName (const string &in geom_id, int fea_struct_ind, const string &in name) |
|
string [] | GetFeaStructIDVec () |
|
void | SetFeaPartName (const string &in part_id, const string &in name) |
|
void | SetFeaMeshVal (const string &in geom_id, int fea_struct_ind, int type, double val) |
|
void | SetFeaMeshFileName (const string &in geom_id, int fea_struct_id, int file_type, const string &in file_name) |
|
void | ComputeFeaMesh (const string &in geom_id, int fea_struct_ind, int file_type) |
|
void | ComputeFeaMesh (const string &in struct_id, int file_type) |
|
string | AddFeaPart (const string &in geom_id, int fea_struct_ind, int type) |
|
void | DeleteFeaPart (const string &in geom_id, int fea_struct_ind, const string &in part_id) |
|
string | GetFeaPartID (const string &in fea_struct_id, int fea_part_index) |
|
string | GetFeaPartName (const string &in part_id) |
|
int | GetFeaPartType (const string &in part_id) |
|
int | GetFeaSubSurfIndex (const string &in ss_id) |
|
int | NumFeaStructures () |
|
int | NumFeaParts (const string &in fea_struct_id) |
|
int | NumFeaSubSurfs (const string &in fea_struct_id) |
|
string [] | GetFeaPartIDVec (const string &in fea_struct_id) |
|
string [] | GetFeaSubSurfIDVec (const string &in fea_struct_id) |
|
void | SetFeaPartPerpendicularSparID (const string &in part_id, const string &in perpendicular_spar_id) |
|
string | GetFeaPartPerpendicularSparID (const string &in part_id) |
|
string | AddFeaSubSurf (const string &in geom_id, int fea_struct_ind, int type) |
|
void | DeleteFeaSubSurf (const string &in geom_id, int fea_struct_ind, const string &in ss_id) |
|
string | AddFeaMaterial () |
|
string | AddFeaProperty (int property_type=0) |
|
◆ AddFeaMaterial()
Add an FEA Material the FEA Mesh material library. Materials are available accross all Geoms and Structures.
- Returns
- FEA Material ID
◆ AddFeaPart()
string AddFeaPart |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
int |
type |
|
) |
| |
Add an FEA Part to a Structure
- See also
- FEA_PART_TYPE
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | type | FEA Part type enum (i.e. FEA_RIB) |
- Returns
- FEA Part ID
◆ AddFeaProperty()
string AddFeaProperty |
( |
int |
property_type = 0 | ) |
|
Add aa FEA Property the FEA Mesh property library. Properties are available accross all Geoms and Structures. Currently only beam and shell properties are available. Note FEA_SHELL_AND_BEAM is not a valid property type.
- See also
- FEA_PART_ELEMENT_TYPE
- Parameters
-
[in] | property_type | FEA Property type enum (i.e. FEA_SHELL). |
- Returns
- FEA Property ID
◆ AddFeaStruct()
int AddFeaStruct |
( |
const string &in |
geom_id, |
|
|
bool |
init_skin = true , |
|
|
int |
surfindex = 0 |
|
) |
| |
Add an FEA Structure to a specified Geom
- Warning
- init_skin should ALWAYS be set to true.
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | init_skin | Flag to initialize the FEA Structure by creating an FEA Skin from the parent Geom's OML at surfindex |
[in] | surfindex | Main surface index for the FEA Structure |
- Returns
- FEA Structure index
◆ AddFeaSubSurf()
string AddFeaSubSurf |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
int |
type |
|
) |
| |
Add an FEA SubSurface to a Structure
- See also
- SUBSURF_TYPE
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | type | FEA SubSurface type enum (i.e. SS_ELLIPSE) |
- Returns
- FEA SubSurface ID
◆ ComputeFeaMesh() [1/2]
void ComputeFeaMesh |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
int |
file_type |
|
) |
| |
Compute an FEA Mesh for a Structure. Only a single output file can be generated with this function.
Print(
string(
"--> Generating FeaMesh " ) );
- See also
- SetFeaMeshFileName, FEA_EXPORT_TYPE
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | file_type | FEA output file type enum (i.e. FEA_EXPORT_TYPE) |
◆ ComputeFeaMesh() [2/2]
void ComputeFeaMesh |
( |
const string &in |
struct_id, |
|
|
int |
file_type |
|
) |
| |
Compute an FEA Mesh for a Structure. Only a single output file can be generated with this function.
Print(
string(
"--> Generating FeaMesh " ) );
- See also
- SetFeaMeshFileName, FEA_EXPORT_TYPE
- Parameters
-
[in] | struct_id | FEA Structure ID |
[in] | file_type | FEA output file type enum (i.e. FEA_EXPORT_TYPE) |
◆ DeleteFeaPart()
void DeleteFeaPart |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
const string &in |
part_id |
|
) |
| |
Delete an FEA Part from a Structure
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | part_id | FEA Part ID |
◆ DeleteFeaStruct()
void DeleteFeaStruct |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind |
|
) |
| |
Delete an FEA Structure and all FEA Parts and FEA SubSurfaces associated with it
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
◆ DeleteFeaSubSurf()
void DeleteFeaSubSurf |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
const string &in |
ss_id |
|
) |
| |
Delete an FEA SubSurface from a Structure
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | ss_id | FEA SubSurface ID |
◆ GetFeaPartID()
string GetFeaPartID |
( |
const string &in |
fea_struct_id, |
|
|
int |
fea_part_index |
|
) |
| |
Get the Parm ID of an FEA Part, identified from a FEA Structure Parm ID and FEA Part index.
{
Print(
"Error: GetFeaPartID" );
}
- Parameters
-
[in] | fea_struct_id | FEA Structure ID |
[in] | fea_part_index | FEA Part index |
- Returns
- FEA Part ID
◆ GetFeaPartIDVec()
Get the IDs of all FEA Parts in the given FEA Structure
- See also
- NumFeaParts
- Parameters
-
[in] | fea_struct_id | FEA Structure ID |
- Returns
- Array of FEA Part IDs
◆ GetFeaPartName()
Get the name of an FEA Part
string fuse_id =
AddGeom(
"FUSELAGE" );
string name = "example_name";
{
Print(
"Error: GetFeaPartName" );
}
- See also
- SetFeaPartName
- Parameters
-
- Returns
- FEA Part name
◆ GetFeaPartPerpendicularSparID()
string GetFeaPartPerpendicularSparID |
( |
const string &in |
part_id | ) |
|
Get the ID of the perpendicular spar for an FEA Rib or Rib Array. Note, the FEA Rib or Rib Array doesn't have to have "SPAR_NORMAL" set for the "PerpendicularEdgeType" Parm for this function to still return a value.
string wing_id =
AddGeom(
"WING" );
{
Print(
"Error: GetFeaPartPerpendicularSparID" );
}
- See also
- FEA_RIB_NORMAL, SetFeaPartPerpendicularSparID
- Parameters
-
[in] | part_id | FEA Part ID (Rib or Rib Array Type) |
- Returns
- Perpendicular FEA Spar ID
◆ GetFeaPartType()
int GetFeaPartType |
( |
const string &in |
part_id | ) |
|
Get the type of an FEA Part
{
Print(
"Error: GetFeaPartType" );
}
- See also
- FEA_PART_TYPE
- Parameters
-
- Returns
- FEA Part type enum
◆ GetFeaStructID()
string GetFeaStructID |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind |
|
) |
| |
Get the ID of an FEA Structure
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
- Returns
- FEA Structure ID
◆ GetFeaStructIDVec()
string [] GetFeaStructIDVec |
( |
| ) |
|
Get the IDs of all FEA Structures in the vehicle
string wing_id =
AddGeom(
"WING" );
- See also
- NumFeaStructures
- Returns
- Array of FEA Structure IDs
◆ GetFeaStructIndex()
int GetFeaStructIndex |
( |
const string &in |
struct_id | ) |
|
Get the index of an FEA Structure in its Parent Geom's vector of Structures
- Parameters
-
[in] | struct_id | FEA Structure ID |
- Returns
- FEA Structure index
◆ GetFeaStructName()
string GetFeaStructName |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind |
|
) |
| |
Get the name of an FEA Structure. The FEA Structure name functions as the the Parm Container name
string display_name =
string(
"Current Structure Parm Container Name: ") + parm_container_name +
string(
"\n");
- See also
- FindContainer, SetFeaStructName
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
- Returns
- Name for the FEA Structure
◆ GetFeaStructParentGeomID()
string GetFeaStructParentGeomID |
( |
const string &in |
struct_id | ) |
|
Get the Parent Geom ID for an FEA Structure
- Parameters
-
[in] | struct_id | FEA Structure ID |
- Returns
- Parent Geom ID
◆ GetFeaSubSurfIDVec()
string [] GetFeaSubSurfIDVec |
( |
const string &in |
fea_struct_id | ) |
|
Get the IDs of all FEA SubSurfaces in the given FEA Structure
- See also
- NumFeaSubSurfs
- Parameters
-
[in] | fea_struct_id | FEA Structure ID |
- Returns
- Array of FEA Part IDs
◆ GetFeaSubSurfIndex()
int GetFeaSubSurfIndex |
( |
const string &in |
ss_id | ) |
|
Get the index of an FEA SubSurface give the SubSurface ID
{
Print(
"Error: GetFeaSubSurfIndex" );
}
- Parameters
-
[in] | ss_id | FEA SubSurface ID |
- Returns
- FEA SubSurface Index
◆ NumFeaParts()
int NumFeaParts |
( |
const string &in |
fea_struct_id | ) |
|
Get the number of FEA Parts for a particular FEA Structure
{
Print(
"Error: NumFeaSubSurfs" );
}
- See also
- GetFeaPartIDVec
- Parameters
-
[in] | fea_struct_id | FEA Structure ID |
- Returns
- Number of FEA Parts
◆ NumFeaStructures()
Get the total number of FEA Subsurfaces in the vehicle
string wing_id =
AddGeom(
"WING" );
{
Print(
"Error: NumFeaStructures" );
}
- See also
- GetFeaStructIDVec
- Returns
- Total Number of FEA Structures
◆ NumFeaSubSurfs()
int NumFeaSubSurfs |
( |
const string &in |
fea_struct_id | ) |
|
Get the number of FEA Subsurfaces for a particular FEA Structure
string wing_id =
AddGeom(
"WING" );
{
Print(
"Error: NumFeaSubSurfs" );
}
- See also
- GetFeaSubSurfIDVec
- Parameters
-
[in] | fea_struct_id | FEA Structure ID |
- Returns
- Number of FEA SubSurfaces
◆ SetFeaMeshFileName()
void SetFeaMeshFileName |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_id, |
|
|
int |
file_type, |
|
|
const string &in |
file_name |
|
) |
| |
Set the name of a particular FEA Mesh output file for a specified Structure
string export_name = "FEAMeshTest_calculix.dat";
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_id | FEA Structure index |
[in] | file_type | FEA output file type enum (i.e. FEA_EXPORT_TYPE) |
[in] | file_name | Name for the output file |
◆ SetFeaMeshVal()
void SetFeaMeshVal |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
int |
type, |
|
|
double |
val |
|
) |
| |
Set the value of a particular FEA Mesh option for the specified Structure. Note, FEA Mesh makes use of enums initially created for CFD Mesh but not all CFD Mesh options are available for FEA Mesh.
- See also
- CFD_CONTROL_TYPE
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | type | FEA Mesh option type enum (i.e. CFD_MAX_EDGE_LEN) |
[in] | val | Value the option is set to |
◆ SetFeaPartName()
void SetFeaPartName |
( |
const string &in |
part_id, |
|
|
const string &in |
name |
|
) |
| |
Set the name of an FEA Part
- See also
- GetFeaPartName
- Parameters
-
[in] | part_id | FEA Part ID |
[in] | name | New name for the FEA Part |
◆ SetFeaPartPerpendicularSparID()
void SetFeaPartPerpendicularSparID |
( |
const string &in |
part_id, |
|
|
const string &in |
perpendicular_spar_id |
|
) |
| |
Set the ID of the perpendicular spar for an FEA Rib or Rib Array. Note, the FEA Rib or Rib Array should have "SPAR_NORMAL" set for the "PerpendicularEdgeType" Parm. If it is not, the ID will still be set, but the orientation of the Rib or Rib Array will not change.
string wing_id =
AddGeom(
"WING" );
{
Print(
"Error: SetFeaPartPerpendicularSparID" );
}
- See also
- FEA_RIB_NORMAL, GetFeaPartPerpendicularSparID
- Parameters
-
[in] | part_id | FEA Part ID (Rib or Rib Array Type) |
[in] | perpendicular_spar_id | FEA Spar ID |
◆ SetFeaStructName()
void SetFeaStructName |
( |
const string &in |
geom_id, |
|
|
int |
fea_struct_ind, |
|
|
const string &in |
name |
|
) |
| |
Set the name of an FEA Structure
parm_container_id =
FindContainer(
"Example_Struct", struct_ind );
display_id =
string(
"New Structure Parm Container ID: ") + parm_container_id +
string(
"\n");
- See also
- GetFeaStructName
- Parameters
-
[in] | geom_id | Parent Geom ID |
[in] | fea_struct_ind | FEA Structure index |
[in] | name | New name for the FEA Structure |