Tetrahedron MG-Tetra 3D algorithm. More...

Public Member Functions | |
| def | __init__ (self, mesh, geom=0) |
| Private constructor. More... | |
| def | Parameters (self) |
| Defines hypothesis having several parameters. More... | |
| def | SetMinSize (self, theMinSize) |
| Set lower boundary of mesh element size Set it to zero to deactivate this option. More... | |
| def | SetMaxSize (self, theMaxSize) |
| Set upper boundary of mesh element size Set it to zero to deactivate this option. More... | |
| def | SetVolumeProximity (self, toUse) |
| Activate/deactivate volume proximity computation. More... | |
| def | SetNbVolumeProximityLayers (self, nbLayers) |
| Set number of surface element layers to be generated due to volume proximity. More... | |
| def | SetToMeshHoles (self, toMesh) |
| To mesh "holes" in a solid or not. More... | |
| def | SetToMakeGroupsOfDomains (self, toMakeGroups) |
| To make groups of volumes of different domains when mesh is generated from skin. More... | |
| def | SetOptimizationLevel (self, level) |
| Set Optimization level: More... | |
| def | SetMaximumMemory (self, MB) |
| Set maximal size of memory to be used by the algorithm (in Megabytes). More... | |
| def | SetInitialMemory (self, MB) |
| Set initial size of memory to be used by the algorithm (in Megabytes) in automatic memory adjustment mode. More... | |
| def | SetWorkingDirectory (self, path) |
| Set path to working directory. More... | |
| def | SetKeepFiles (self, toKeep) |
| To keep working files or remove them. More... | |
| def | SetRemoveLogOnSuccess (self, toRemove) |
| Remove or not the log file (if any) in case of successful computation. More... | |
| def | SetPrintLogInFile (self, toPrintLogInFile) |
| Print the the log in a file. More... | |
| def | SetVerboseLevel (self, level) |
| Set verbosity level [0-10]. More... | |
| def | SetToCreateNewNodes (self, toCreate) |
| To create new nodes. More... | |
| def | SetToUseBoundaryRecoveryVersion (self, toUse) |
| To use boundary recovery version which tries to create mesh on a very poor quality surface mesh. More... | |
| def | SetFEMCorrection (self, toUseFem) |
| Applies finite-element correction by replacing overconstrained elements where it is possible. More... | |
| def | SetToRemoveCentralPoint (self, toRemove) |
| To remove initial central point. More... | |
| def | SetAlgorithm (self, algoId) |
| To set the algorithm id. More... | |
| def | SetUseNumOfThreads (self, useThreads) |
| To use parallel mode. More... | |
| def | SetNumOfThreads (self, numThreads) |
| To set the number of threads to be used. More... | |
| def | SetPthreadMode (self, pthreadMode) |
| Set SetPthreadMode. More... | |
| def | SetPthreadMode (self, parallelMode) |
| Set SetParallelMode. More... | |
| def | SetEnforcedVertex (self, x, y, z, size, vertexName="", groupName="") |
| To set an enforced vertex. More... | |
| def | SetEnforcedVertexGeom (self, theVertex, size, groupName="") |
| To set an enforced vertex given a GEOM vertex, group or compound. More... | |
| def | RemoveEnforcedVertex (self, x, y, z) |
| To remove an enforced vertex. More... | |
| def | RemoveEnforcedVertexGeom (self, theVertex) |
| To remove an enforced vertex given a GEOM vertex, group or compound. More... | |
| def | SetEnforcedMesh (self, theSource, elementType, size=-1, groupName="") |
| To set an enforced mesh with given size and add the enforced elements in the group "groupName". More... | |
| def | SetOptionValue (self, optionName, optionValue) |
| Set advanced option value. More... | |
| def | SetAdvancedOption (self, optionAndValue) |
| Sets command line option as text. More... | |
| def | SetTextOption (self, option) |
| OBSOLETE Sets command line option as text. More... | |
Data Fields | |
| params | |
Static Public Attributes | |
| string | meshMethod = "Tetrahedron" |
| name of the dynamic method in smeshBuilder.Mesh class More... | |
| algoType = MG_Tetra | |
| type of algorithm used with helper function in smeshBuilder.Mesh class More... | |
| string | docHelper = "Creates tetrahedron 3D algorithm" |
| doc string of the method in smeshBuilder.Mesh class More... | |
Tetrahedron MG-Tetra 3D algorithm.
It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.MG_Tetra, geom=0 )
| def __init__ | ( | self, | |
| mesh, | |||
geom = 0 |
|||
| ) |
Private constructor.
| mesh | parent mesh object algorithm is assigned to |
| geom | geometry (shape/sub-shape) algorithm is assigned to; if it is 0 (default), the algorithm is assigned to the main shape |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.algoType, GHS3D_Optimizer.algoType, and Mesh_Algorithm.Create().
| def Parameters | ( | self | ) |
Defines hypothesis having several parameters.
Reimplemented in GHS3D_Optimizer.
References Mesh_Algorithm.Hypothesis(), GHS3D_Algorithm.params, and GHS3D_Optimizer.params.
| def SetMinSize | ( | self, | |
| theMinSize | |||
| ) |
Set lower boundary of mesh element size Set it to zero to deactivate this option.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetMaxSize | ( | self, | |
| theMaxSize | |||
| ) |
Set upper boundary of mesh element size Set it to zero to deactivate this option.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetVolumeProximity | ( | self, | |
| toUse | |||
| ) |
Activate/deactivate volume proximity computation.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetNbVolumeProximityLayers | ( | self, | |
| nbLayers | |||
| ) |
Set number of surface element layers to be generated due to volume proximity.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetToMeshHoles | ( | self, | |
| toMesh | |||
| ) |
To mesh "holes" in a solid or not.
Default is to mesh.
| toMesh | "mesh holes" flag value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetToMakeGroupsOfDomains | ( | self, | |
| toMakeGroups | |||
| ) |
To make groups of volumes of different domains when mesh is generated from skin.
Default is to make groups. This option works only (1) for the mesh w/o shape and (2) if GetToMeshHoles() == true
| toMakeGroups | "Make groups of domains" flag value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetOptimizationLevel | ( | self, | |
| level | |||
| ) |
Set Optimization level:
| level | optimization level, one of the following values
|
Default is Standard_Optimization
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetMaximumMemory | ( | self, | |
| MB | |||
| ) |
Set maximal size of memory to be used by the algorithm (in Megabytes).
| MB | maximal size of memory |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetInitialMemory | ( | self, | |
| MB | |||
| ) |
Set initial size of memory to be used by the algorithm (in Megabytes) in automatic memory adjustment mode.
| MB | initial size of memory |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetWorkingDirectory | ( | self, | |
| path | |||
| ) |
Set path to working directory.
| path | working directory |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetKeepFiles | ( | self, | |
| toKeep | |||
| ) |
To keep working files or remove them.
| toKeep | "keep working files" flag value |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetRemoveLogOnSuccess | ( | self, | |
| toRemove | |||
| ) |
Remove or not the log file (if any) in case of successful computation.
The log file remains in case of errors anyway. If the "keep working files" flag is set to true, this option has no effect.
| toRemove | "remove log on success" flag value |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetPrintLogInFile | ( | self, | |
| toPrintLogInFile | |||
| ) |
Print the the log in a file.
If set to false, the log is printed on the standard output
| toPrintLogInFile | "print log in a file" flag value |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetVerboseLevel | ( | self, | |
| level | |||
| ) |
Set verbosity level [0-10].
| level | verbosity level
|
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetToCreateNewNodes | ( | self, | |
| toCreate | |||
| ) |
To create new nodes.
| toCreate | "create new nodes" flag value |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetToUseBoundaryRecoveryVersion | ( | self, | |
| toUse | |||
| ) |
To use boundary recovery version which tries to create mesh on a very poor quality surface mesh.
| toUse | "use boundary recovery version" flag value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetFEMCorrection | ( | self, | |
| toUseFem | |||
| ) |
Applies finite-element correction by replacing overconstrained elements where it is possible.
The process is cutting first the overconstrained edges and second the overconstrained facets. This insure that no edges have two boundary vertices and that no facets have three boundary vertices.
| toUseFem | "apply finite-element correction" flag value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetToRemoveCentralPoint | ( | self, | |
| toRemove | |||
| ) |
To remove initial central point.
| toRemove | "remove initial central point" flag value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetAlgorithm | ( | self, | |
| algoId | |||
| ) |
To set the algorithm id.
| algorithm | ID 0 MGTetra HPC - 1 MGTetra |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetUseNumOfThreads | ( | self, | |
| useThreads | |||
| ) |
To use parallel mode.
| toUseNumOfThreads | "use max number of threads" flag value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetNumOfThreads | ( | self, | |
| numThreads | |||
| ) |
To set the number of threads to be used.
| numberOfThreads | define max_num_threads for MGTetra and MGTetra HPC |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetPthreadMode | ( | self, | |
| pthreadMode | |||
| ) |
Set SetPthreadMode.
| pthreadMode | for parallel algorithm in MGTetra
|
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetPthreadMode | ( | self, | |
| parallelMode | |||
| ) |
Set SetParallelMode.
| parallelMode | for parallel algorithm in MGTetra HPC
|
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Algorithm.SetPthreadMode().
| def SetEnforcedVertex | ( | self, | |
| x, | |||
| y, | |||
| z, | |||
| size, | |||
vertexName = "", |
|||
groupName = "" |
|||
| ) |
To set an enforced vertex.
| x | : x coordinate |
| y | : y coordinate |
| z | : z coordinate |
| size | : size of 1D element around enforced vertex |
| vertexName | : name of the enforced vertex |
| groupName | : name of the group |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetEnforcedVertexGeom | ( | self, | |
| theVertex, | |||
| size, | |||
groupName = "" |
|||
| ) |
To set an enforced vertex given a GEOM vertex, group or compound.
| theVertex | : GEOM vertex (or group, compound) to be projected on theFace. |
| size | : size of 1D element around enforced vertex |
| groupName | : name of the group |
References Mesh_Algorithm.mesh, GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def RemoveEnforcedVertex | ( | self, | |
| x, | |||
| y, | |||
| z | |||
| ) |
To remove an enforced vertex.
| x | : x coordinate |
| y | : y coordinate |
| z | : z coordinate |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def RemoveEnforcedVertexGeom | ( | self, | |
| theVertex | |||
| ) |
To remove an enforced vertex given a GEOM vertex, group or compound.
| theVertex | : GEOM vertex (or group, compound) to be projected on theFace. |
References Mesh_Algorithm.mesh, GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetEnforcedMesh | ( | self, | |
| theSource, | |||
| elementType, | |||
size = -1, |
|||
groupName = "" |
|||
| ) |
To set an enforced mesh with given size and add the enforced elements in the group "groupName".
| theSource | : source mesh which provides constraint elements/nodes |
| elementType | : SMESH.ElementType (NODE, EDGE or FACE) |
| size | : size of elements around enforced elements. Unused if -1. |
| groupName | : group in which enforced elements will be added. Unused if "". |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetOptionValue | ( | self, | |
| optionName, | |||
| optionValue | |||
| ) |
Set advanced option value.
| optionName | option name |
| optionValue | option value |
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetAdvancedOption | ( | self, | |
| optionAndValue | |||
| ) |
Sets command line option as text.
| optionAndValue | command line option in a form "option value" |
Reimplemented in GHS3D_Optimizer.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetTextOption | ( | self, | |
| option | |||
| ) |
OBSOLETE Sets command line option as text.
| option | command line option |
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Algorithm.SetAdvancedOption().
|
static |
name of the dynamic method in smeshBuilder.Mesh class
|
static |
type of algorithm used with helper function in smeshBuilder.Mesh class
|
static |
doc string of the method in smeshBuilder.Mesh class
| params |