Tetrahedron MG-Tetra 3D algorithm. More...
Public Member Functions | |
def | __init__ |
Private constructor. More... | |
def | Parameters |
Defines hypothesis having several parameters. More... | |
def | SetToMeshHoles |
To mesh "holes" in a solid or not. More... | |
def | SetToMakeGroupsOfDomains |
To make groups of volumes of different domains when mesh is generated from skin. More... | |
def | SetOptimizationLevel |
Set Optimization level: More... | |
def | SetMaximumMemory |
Set maximal size of memory to be used by the algorithm (in Megabytes). More... | |
def | SetInitialMemory |
Set initial size of memory to be used by the algorithm (in Megabytes) in automatic memory adjustment mode. More... | |
def | SetWorkingDirectory |
Set path to working directory. More... | |
def | SetKeepFiles |
To keep working files or remove them. More... | |
def | SetRemoveLogOnSuccess |
Remove or not the log file (if any) in case of successful computation. More... | |
def | SetPrintLogInFile |
Print the the log in a file. More... | |
def | SetVerboseLevel |
Set verbosity level [0-10]. More... | |
def | SetToCreateNewNodes |
To create new nodes. More... | |
def | SetToUseBoundaryRecoveryVersion |
To use boundary recovery version which tries to create mesh on a very poor quality surface mesh. More... | |
def | SetFEMCorrection |
Applies finite-element correction by replacing overconstrained elements where it is possible. More... | |
def | SetToRemoveCentralPoint |
To remove initial central point. More... | |
def | SetEnforcedVertex |
To set an enforced vertex. More... | |
def | SetEnforcedVertexGeom |
To set an enforced vertex given a GEOM vertex, group or compound. More... | |
def | RemoveEnforcedVertex |
To remove an enforced vertex. More... | |
def | RemoveEnforcedVertexGeom |
To remove an enforced vertex given a GEOM vertex, group or compound. More... | |
def | SetEnforcedMesh |
To set an enforced mesh with given size and add the enforced elements in the group "groupName". More... | |
def | SetTextOption |
Sets command line option as text. More... | |
def | SetAdvancedOption |
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 |
References GHS3D_Algorithm.algoType, and Mesh_Algorithm.Create().
def Parameters | ( | self | ) |
Defines hypothesis having several parameters.
References Mesh_Algorithm.Hypothesis(), and GHS3D_Algorithm.params.
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().
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().
def SetOptimizationLevel | ( | self, | |
level | |||
) |
Set Optimization level:
level | optimization level, one of the following values
|
References GHS3D_Algorithm.Parameters().
def SetMaximumMemory | ( | self, | |
MB | |||
) |
Set maximal size of memory to be used by the algorithm (in Megabytes).
MB | maximal size of memory |
References GHS3D_Algorithm.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 |
References GHS3D_Algorithm.Parameters().
def SetWorkingDirectory | ( | self, | |
path | |||
) |
Set path to working directory.
path | working directory |
References GHS3D_Algorithm.Parameters().
def SetKeepFiles | ( | self, | |
toKeep | |||
) |
To keep working files or remove them.
toKeep | "keep working files" flag value |
References GHS3D_Algorithm.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 |
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
toPrintLogInFile | "print log in a file" flag value |
References GHS3D_Algorithm.Parameters().
def SetVerboseLevel | ( | self, | |
level | |||
) |
Set verbosity level [0-10].
level | verbosity level
|
References GHS3D_Algorithm.Parameters().
def SetToCreateNewNodes | ( | self, | |
toCreate | |||
) |
To create new nodes.
toCreate | "create new nodes" flag value |
References GHS3D_Algorithm.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().
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().
def SetToRemoveCentralPoint | ( | self, | |
toRemove | |||
) |
To remove initial central point.
toRemove | "remove initial central point" flag value |
References GHS3D_Algorithm.Parameters().
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().
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, and GHS3D_Algorithm.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().
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, and GHS3D_Algorithm.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().
def SetTextOption | ( | self, | |
option | |||
) |
Sets command line option as text.
option | command line option |
References GHS3D_Algorithm.Parameters(), and GHS3D_Algorithm.SetAdvancedOption().
def SetAdvancedOption | ( | self, | |
option | |||
) |
Sets command line option as text.
option | command line option |
References GHS3D_Algorithm.Parameters().
|
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 |