MG-Tetra Optimization algorithm - optimizer of tetrahedral meshes.
More...
MG-Tetra Optimization algorithm - optimizer of tetrahedral meshes.
It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.MG_Tetra_Optimization )
def __init__ |
( |
|
self, |
|
|
|
mesh, |
|
|
|
geom = 0 |
|
) |
| |
Private constructor.
- Parameters
-
mesh | parent mesh object algorithm is assigned to |
geom | - not used |
def SetOptimizationOnly |
( |
|
self, |
|
|
|
optMode |
|
) |
| |
Set Optimization mode.
- Parameters
-
optMode | optimization mode, one of the following values: smeshBuilder.Mode_NO, smeshBuilder.Mode_YES (default), smeshBuilder.MODE_ONLY |
References GHS3D_Algorithm.Parameters().
def SetSplitOverConstrained |
( |
|
self, |
|
|
|
ovcMode |
|
) |
| |
Set mode of splitting over-constrained elements.
- Parameters
-
ovcMode,one | of the following values smeshBuilder.Mode_NO (default), smeshBuilder.Mode_YES, smeshBuilder.Mode_ONLY |
References GHS3D_Algorithm.Parameters().
def SetSmoothOffSlivers |
( |
|
self, |
|
|
|
toSmooth |
|
) |
| |
def SetPThreadsMode |
( |
|
self, |
|
|
|
mode |
|
) |
| |
Set multithread mode.
- Parameters
-
mode | - the mode, one of the following values: smeshBuilder.Mode_SAFE, smeshBuilder.Mode_AGGRESSIVE, smeshBuilder.Mode_NONE (default) |
References GHS3D_Algorithm.Parameters().
def SetMaximalNumberOfThreads |
( |
|
self, |
|
|
|
nb |
|
) |
| |
def SetOptimizationLevel |
( |
|
self, |
|
|
|
level |
|
) |
| |
Set Optimization level:
- Parameters
-
level | optimization level, one of the following values
- None_Optimization
- Light_Optimization
- Standard_Optimization
- StandardPlus_Optimization
- Strong_Optimization.
Default is Standard_Optimization |
References GHS3D_Algorithm.Parameters().
def SetMaximumMemory |
( |
|
self, |
|
|
|
MB |
|
) |
| |
def SetInitialMemory |
( |
|
self, |
|
|
|
MB |
|
) |
| |
Set initial size of memory to be used by the algorithm (in Megabytes) in automatic memory adjustment mode.
- Parameters
-
References GHS3D_Algorithm.Parameters().
def SetWorkingDirectory |
( |
|
self, |
|
|
|
path |
|
) |
| |
def SetKeepFiles |
( |
|
self, |
|
|
|
toKeep |
|
) |
| |
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.
- Parameters
-
toRemove | "remove log on success" flag value |
References GHS3D_Algorithm.Parameters().
def SetPrintLogInFile |
( |
|
self, |
|
|
|
toPrintLogInFile |
|
) |
| |
Print the the log in a file.
If set to false, the log is printed on the standard output
- Parameters
-
toPrintLogInFile | "print log in a file" flag value |
References GHS3D_Algorithm.Parameters().
def SetVerboseLevel |
( |
|
self, |
|
|
|
level |
|
) |
| |
Set verbosity level [0-10].
- Parameters
-
level | verbosity level
- 0 - no standard output,
- 2 - prints the data, quality statistics of the skin and final meshes and indicates when the final mesh is being saved. In addition the software gives indication regarding the CPU time.
- 10 - same as 2 plus the main steps in the computation, quality statistics histogram of the skin mesh, quality statistics histogram together with the characteristics of the final mesh.
|
References GHS3D_Algorithm.Parameters().
def SetToCreateNewNodes |
( |
|
self, |
|
|
|
toCreate |
|
) |
| |
def SetAdvancedOption |
( |
|
self, |
|
|
|
option |
|
) |
| |
def SetToMeshHoles |
( |
|
self, |
|
|
|
toMesh |
|
) |
| |
|
inherited |
def SetToMakeGroupsOfDomains |
( |
|
self, |
|
|
|
toMakeGroups |
|
) |
| |
|
inherited |
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
- Parameters
-
toMakeGroups | "Make groups of domains" flag value |
References GHS3D_Algorithm.Parameters().
def SetToUseBoundaryRecoveryVersion |
( |
|
self, |
|
|
|
toUse |
|
) |
| |
|
inherited |
To use boundary recovery version which tries to create mesh on a very poor quality surface mesh.
- Parameters
-
toUse | "use boundary recovery version" flag value |
References GHS3D_Algorithm.Parameters().
def SetFEMCorrection |
( |
|
self, |
|
|
|
toUseFem |
|
) |
| |
|
inherited |
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.
- Parameters
-
toUseFem | "apply finite-element correction" flag value |
References GHS3D_Algorithm.Parameters().
def SetToRemoveCentralPoint |
( |
|
self, |
|
|
|
toRemove |
|
) |
| |
|
inherited |
def SetEnforcedVertex |
( |
|
self, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
size, |
|
|
|
vertexName = "" , |
|
|
|
groupName = "" |
|
) |
| |
|
inherited |
To set an enforced vertex.
- Parameters
-
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().
def SetEnforcedVertexGeom |
( |
|
self, |
|
|
|
theVertex, |
|
|
|
size, |
|
|
|
groupName = "" |
|
) |
| |
|
inherited |
To set an enforced vertex given a GEOM vertex, group or compound.
- Parameters
-
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, and GHS3D_Algorithm.Parameters().
def RemoveEnforcedVertex |
( |
|
self, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| |
|
inherited |
def RemoveEnforcedVertexGeom |
( |
|
self, |
|
|
|
theVertex |
|
) |
| |
|
inherited |
def SetEnforcedMesh |
( |
|
self, |
|
|
|
theSource, |
|
|
|
elementType, |
|
|
|
size = -1 , |
|
|
|
groupName = "" |
|
) |
| |
|
inherited |
To set an enforced mesh with given size and add the enforced elements in the group "groupName".
- Parameters
-
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().
def SetTextOption |
( |
|
self, |
|
|
|
option |
|
) |
| |
|
inherited |
string meshMethod = "Tetrahedron" |
|
static |
string docHelper = "Creates MG-Tetra optimizer of tetrahedral meshes" |
|
static |