MG-Tetra Optimization algorithm - optimizer of tetrahedral meshes. More...

Public Member Functions | |
| def | __init__ (self, mesh, geom=0) |
| Private constructor. More... | |
| def | Parameters (self) |
| Defines hypothesis having several parameters. More... | |
| def | SetOptimizationOnly (self, optMode) |
| Set Optimization mode. More... | |
| def | SetSplitOverConstrained (self, ovcMode) |
| Set mode of splitting over-constrained elements. More... | |
| def | SetSmoothOffSlivers (self, toSmooth) |
| Activate smoothing sliver elements: More... | |
| def | SetPThreadsMode (self, mode) |
| Set multithread mode. More... | |
| def | SetMaximalNumberOfThreads (self, nb) |
| Set maximal number of threads. 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 | SetAdvancedOption (self, option) |
| 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_Optimization | |
| type of algorithm used with helper function in smeshBuilder.Mesh class More... | |
| string | docHelper = "Creates MG-Tetra optimizer of tetrahedral meshes" |
| doc string of the method in smeshBuilder.Mesh class 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.
| mesh | parent mesh object algorithm is assigned to |
| geom | - not used |
Reimplemented from GHS3D_Algorithm.
| def Parameters | ( | self | ) |
Defines hypothesis having several parameters.
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.params, and GHS3D_Optimizer.params.
| def SetOptimizationOnly | ( | self, | |
| optMode | |||
| ) |
Set Optimization mode.
| optMode | optimization mode, one of the following values: smeshBuilder.Mode_NO, smeshBuilder.Mode_YES (default), smeshBuilder.MODE_ONLY |
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetOptimizationOnly().
| def SetSplitOverConstrained | ( | self, | |
| ovcMode | |||
| ) |
Set mode of splitting over-constrained elements.
| ovcMode,one | of the following values smeshBuilder.Mode_NO (default), smeshBuilder.Mode_YES, smeshBuilder.Mode_ONLY |
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetSplitOverConstrained().
| def SetSmoothOffSlivers | ( | self, | |
| toSmooth | |||
| ) |
Activate smoothing sliver elements:
| toSmooth | - Boolean flag |
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetSmoothOffSlivers().
| def SetPThreadsMode | ( | self, | |
| mode | |||
| ) |
Set multithread mode.
| mode | - the mode, one of the following values: smeshBuilder.Mode_SAFE, smeshBuilder.Mode_AGGRESSIVE, smeshBuilder.Mode_NONE (default) |
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetPThreadsMode().
| def SetMaximalNumberOfThreads | ( | self, | |
| nb | |||
| ) |
Set maximal number of threads.
| nb | - number of threads |
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetMaximalNumberOfThreads().
| def SetOptimizationLevel | ( | self, | |
| level | |||
| ) |
Set Optimization level:
| level | optimization level, one of the following values
|
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetOptimizationLevel().
| def SetMaximumMemory | ( | self, | |
| MB | |||
| ) |
Set maximal size of memory to be used by the algorithm (in Megabytes).
| MB | maximal size of memory |
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetMaximumMemory().
| 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 from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetInitialMemory().
| def SetWorkingDirectory | ( | self, | |
| path | |||
| ) |
Set path to working directory.
| path | working directory |
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetWorkingDirectory().
| def SetKeepFiles | ( | self, | |
| toKeep | |||
| ) |
To keep working files or remove them.
| toKeep | "keep working files" flag value |
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetKeepFiles().
| 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 from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetRemoveLogOnSuccess().
| 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 from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), and GHS3D_Optimizer.Parameters().
| def SetVerboseLevel | ( | self, | |
| level | |||
| ) |
Set verbosity level [0-10].
| level | verbosity level
|
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetVerboseLevel().
| def SetToCreateNewNodes | ( | self, | |
| toCreate | |||
| ) |
To create new nodes.
| toCreate | "create new nodes" flag value |
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.SetToCreateNewNodes().
| def SetAdvancedOption | ( | self, | |
| option | |||
| ) |
Sets command line option as text.
| option | command line option |
Reimplemented from GHS3D_Algorithm.
References GHS3D_Algorithm.Parameters(), GHS3D_Optimizer.Parameters(), and GHS3D_Optimizer.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 |