Defines a hexahedron 3D algorithm. More...

Public Member Functions | |
| def | __init__ (self, mesh, geom=0) |
| Private constructor. More... | |
| def | SetMinMaxHexes (self, min=3, max=8) |
| Defines "SetMinMaxHexes" hypothesis to give two MG-Hexa parameters. More... | |
| def | SetMinMaxSize (self, min, max) |
| Defines "SetMinMaxSize" hypothesis to give two MG-Hexa parameters. More... | |
| def | SetSizeMap (self, theObject, theSize) |
| Sets a size map. More... | |
| def | UnsetSizeMap (self, theObject) |
| Unsets a size map : this is meant to be used only by the dump. More... | |
| def | SetAdvancedOption (self, theOptions) |
| Set values of advanced options. More... | |
| def | GetAdvancedOption (self) |
| def | MinMaxQuad (self, min=3, max=8, quad=True) |
| (OBSOLETE) Defines "MinMaxQuad" hypothesis to give three MG-Hexa parameters More... | |
| def | SetOptionValue (self, optionName, optionValue) |
| Set advanced option value. More... | |
| def | SetViscousLayers (self, numberOfLayers, firstLayerSize, growth, facesWithLayers, imprintedFaces=[], direction=Inward) |
| Defines "ViscousLayers" hypothesis to give MG-Hexa parameters. 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 | Parameters (self) |
| Defines hypothesis having several parameters. More... | |
Data Fields | |
| params | |
Static Public Attributes | |
| string | meshMethod = "Hexahedron" |
| name of the dynamic method in smeshBuilder.Mesh class More... | |
| algoType = MG_Hexa | |
| type of algorithm used with helper function in smeshBuilder.Mesh class More... | |
| string | docHelper = "Creates hexahedron 3D algorithm for volumes" |
| doc string of the method in smeshBuilder.Mesh class More... | |
Defines a hexahedron 3D algorithm.
It is created by calling smeshBuilder.Mesh.Hexahedron( smeshBuilder.MG_Hexa, 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 Mesh_Algorithm.Create().
| def SetMinMaxHexes | ( | self, | |
min = 3, |
|||
max = 8 |
|||
| ) |
Defines "SetMinMaxHexes" hypothesis to give two MG-Hexa parameters.
| min | minimal level of recursive partitioning on the initial octree cube |
| max | maximal level of recursive partitioning on the initial octree cube |
References Hexotic_Algorithm.Parameters().
| def SetMinMaxSize | ( | self, | |
| min, | |||
| max | |||
| ) |
Defines "SetMinMaxSize" hypothesis to give two MG-Hexa parameters.
| min | minimal element's size |
| max | maximal element's size |
References Hexotic_Algorithm.Parameters().
| def SetSizeMap | ( | self, | |
| theObject, | |||
| theSize | |||
| ) |
Sets a size map.
| theObject | geometrical object to assign local size to |
| theSize | local size on the given object |
References Mesh_Algorithm.mesh, Hexotic_Algorithm.Parameters(), and Hexotic_Algorithm.SetSizeMap().
| def UnsetSizeMap | ( | self, | |
| theObject | |||
| ) |
Unsets a size map : this is meant to be used only by the dump.
| theObject | geometrical object to unassign local size |
References Mesh_Algorithm.mesh, Hexotic_Algorithm.Parameters(), and Hexotic_Algorithm.UnsetSizeMap().
| def SetAdvancedOption | ( | self, | |
| theOptions | |||
| ) |
Set values of advanced options.
| theOptions | string in a form "option_1 v1 option_2 v2" |
References Hexotic_Algorithm.Parameters(), and Hexotic_Algorithm.SetAdvancedOption().
| def GetAdvancedOption | ( | self | ) |
References Hexotic_Algorithm.GetAdvancedOption(), and Hexotic_Algorithm.Parameters().
| def MinMaxQuad | ( | self, | |
min = 3, |
|||
max = 8, |
|||
quad = True |
|||
| ) |
(OBSOLETE) Defines "MinMaxQuad" hypothesis to give three MG-Hexa parameters
| min | minimal level of recursive partitioning on the initial octree cube |
| max | maximal level of recursive partitioning on the initial octree cube |
| quad | not documented |
References Hexotic_Algorithm.SetMinMaxHexes().
| def SetOptionValue | ( | self, | |
| optionName, | |||
| optionValue | |||
| ) |
Set advanced option value.
| optionName | option name |
| optionValue | option value |
References Hexotic_Algorithm.Parameters(), and Hexotic_Algorithm.SetOptionValue().
| def SetViscousLayers | ( | self, | |
| numberOfLayers, | |||
| firstLayerSize, | |||
| growth, | |||
| facesWithLayers, | |||
imprintedFaces = [], |
|||
direction = Inward |
|||
| ) |
Defines "ViscousLayers" hypothesis to give MG-Hexa parameters.
| numberOfLayers | number of boundary layers |
| firstLayerSize | height of the first layer |
| growth | geometric progression for the boundary layer growth |
| direction | describes whether the layers grow inwards or outwards. Possible values are:
|
| facesWithLayers | list of surfaces from which the boundary layers should be grown |
| imprintedFaces | list of surfaces that can be imprinted by boundary layers |
References Mesh_Algorithm.mesh, and Hexotic_Algorithm.Parameters().
| def SetKeepFiles | ( | self, | |
| toKeep | |||
| ) |
To keep working files or remove them.
| toKeep | "keep working files" flag value |
References Hexotic_Algorithm.Parameters(), and Hexotic_Algorithm.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 |
References Hexotic_Algorithm.Parameters(), and Hexotic_Algorithm.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 |
References Hexotic_Algorithm.Parameters().
| def Parameters | ( | self | ) |
Defines hypothesis having several parameters.
References Mesh_Algorithm.Hypothesis(), and Hexotic_Algorithm.params.
|
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 |