Defines a Body Fitting 3D algorithm. More...

Public Member Functions | |
| def | __init__ |
| Private constructor. More... | |
| def | SetGrid |
| Defines "Body Fitting parameters" hypothesis. More... | |
| def | SetAxesDirs |
| Defines custom directions of axes of the grid. More... | |
| def | SetOptimalAxesDirs |
| Automatically defines directions of axes of the grid at which a number of generated hexahedra is maximal. More... | |
| def | SetFixedPoint |
| Sets/unsets a fixed point. More... | |
Data Fields | |
| hyp | |
Static Public Attributes | |
| string | meshMethod = "BodyFitted" |
| name of the dynamic method in smeshBuilder.Mesh class More... | |
| string | algoType = "Cartesian_3D" |
| type of algorithm used with helper function in smeshBuilder.Mesh class More... | |
| isDefault = True | |
| flag pointing whether this algorithm should be used by default in dynamic method of smeshBuilder.Mesh class More... | |
| string | docHelper = "Creates Body Fitting 3D algorithm for volumes" |
| doc string of the method More... | |
Defines a Body Fitting 3D algorithm.
It is created by calling smeshBuilder.Mesh.BodyFitted(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 StdMeshersBuilder_Segment.algoType, StdMeshersBuilder_CompositeSegment.algoType, StdMeshersBuilder_Segment_Python.algoType, StdMeshersBuilder_Triangle_MEFISTO.algoType, StdMeshersBuilder_Quadrangle.algoType, StdMeshersBuilder_Hexahedron.algoType, StdMeshersBuilder_Projection1D.algoType, StdMeshersBuilder_Projection2D.algoType, StdMeshersBuilder_Projection1D2D.algoType, StdMeshersBuilder_Projection3D.algoType, StdMeshersBuilder_Prism3D.algoType, StdMeshersBuilder_RadialPrism3D.algoType, StdMeshersBuilder_RadialQuadrangle1D2D.algoType, StdMeshersBuilder_QuadMA_1D2D.algoType, StdMeshersBuilder_PolygonPerFace.algoType, StdMeshersBuilder_UseExistingElements_1D.algoType, StdMeshersBuilder_UseExistingElements_1D2D.algoType, StdMeshersBuilder_Cartesian_3D.algoType, and Mesh_Algorithm.Create().
| def SetGrid | ( | self, | |
| xGridDef, | |||
| yGridDef, | |||
| zGridDef, | |||
sizeThreshold = 4.0, |
|||
implEdges = False |
|||
| ) |
Defines "Body Fitting parameters" hypothesis.
| xGridDef | is definition of the grid along the X asix. It can be in either of two following forms:
|
| yGridDef | defines the grid along the Y asix the same way as xGridDef does. |
| zGridDef | defines the grid along the Z asix the same way as xGridDef does. |
| sizeThreshold | (> 1.0) defines a minimal size of a polyhedron so that a polyhedron of size less than hexSize/sizeThreshold is not created. |
| implEdges | enables implementation of geometrical edges into the mesh. |
References Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, StdMeshersBuilder_Cartesian_3D.hyp, hypMethodWrapper.hyp, and Mesh_Algorithm.Hypothesis().
| def SetAxesDirs | ( | self, | |
| xAxis, | |||
| yAxis, | |||
| zAxis | |||
| ) |
Defines custom directions of axes of the grid.
| xAxis | either SMESH.DirStruct or a vector, or 3 vector components |
| yAxis | either SMESH.DirStruct or a vector, or 3 vector components |
| zAxis | either SMESH.DirStruct or a vector, or 3 vector components |
References Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, StdMeshersBuilder_Cartesian_3D.hyp, hypMethodWrapper.hyp, and Mesh_Algorithm.Hypothesis().
| def SetOptimalAxesDirs | ( | self, | |
isOrthogonal = True |
|||
| ) |
Automatically defines directions of axes of the grid at which a number of generated hexahedra is maximal.
| isOrthogonal | defines whether the axes mush be orthogonal |
References Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, StdMeshersBuilder_Cartesian_3D.hyp, hypMethodWrapper.hyp, and Mesh_Algorithm.Hypothesis().
| def SetFixedPoint | ( | self, | |
| p, | |||
toUnset = False |
|||
| ) |
Sets/unsets a fixed point.
The algorithm makes a plane of the grid pass through the fixed point in each direction at which the grid is defined by spacing
| p | coordinates of the fixed point. Either SMESH.PointStruct or a vertex or 3 components of coordinates. |
| toUnset | defines whether the fixed point is defined or removed. |
References Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, StdMeshersBuilder_Cartesian_3D.hyp, hypMethodWrapper.hyp, and Mesh_Algorithm.Hypothesis().
|
static |
name of the dynamic method in smeshBuilder.Mesh class
|
static |
type of algorithm used with helper function in smeshBuilder.Mesh class
|
static |
flag pointing whether this algorithm should be used by default in dynamic method of smeshBuilder.Mesh class
|
static |
doc string of the method
| hyp |