Defines a Prism 3D algorithm, which is either "Extrusion 3D" or "Radial Prism" depending on geometry. More...

Public Member Functions | |
| def | __init__ |
| Private constructor. More... | |
| def | Get3DHypothesis |
| Return 3D hypothesis holding the 1D one. More... | |
| def | OwnHypothesis |
| Private method creating a 1D hypothesis and storing it in the LayerDistribution hypothesis. More... | |
| def | NumberOfLayers |
| Defines "NumberOfLayers" hypothesis, specifying the number of layers of prisms to build between the inner and outer shells. More... | |
| def | LocalLength |
| Defines "LocalLength" hypothesis, specifying the segment length to build between the inner and the outer shells. More... | |
| def | NumberOfSegments |
| Defines "NumberOfSegments" hypothesis, specifying the number of layers of prisms to build between the inner and the outer shells. More... | |
| def | Arithmetic1D |
| Defines "Arithmetic1D" hypothesis, specifying the distribution of segments to build between the inner and the outer shells with a length that changes in arithmetic progression. More... | |
| def | GeometricProgression |
| Defines "GeometricProgression" hypothesis, specifying the distribution of segments to build between the inner and the outer shells with a length that changes in Geometric progression. More... | |
| def | StartEndLength |
| Defines "StartEndLength" hypothesis, specifying distribution of segments to build between the inner and the outer shells as geometric length increasing. More... | |
| def | AutomaticLength |
| Defines "AutomaticLength" hypothesis, specifying the number of segments to build between the inner and outer shells. More... | |
Data Fields | |
| algoType | |
| distribHyp | |
| nbLayers | |
Static Public Attributes | |
| string | meshMethod = "Prism" |
| name of the dynamic method in smeshBuilder.Mesh class More... | |
| string | algoType = "Prism_3D" |
| type of algorithm used with helper function in smeshBuilder.Mesh class More... | |
| string | docHelper = "Creates prism 3D algorithm for volumes" |
| doc string of the method More... | |
Defines a Prism 3D algorithm, which is either "Extrusion 3D" or "Radial Prism" depending on geometry.
It is created by calling smeshBuilder.Mesh.Prism(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 Get3DHypothesis | ( | self | ) |
Return 3D hypothesis holding the 1D one.
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, and StdMeshersBuilder_Prism3D.distribHyp.
| def OwnHypothesis | ( | self, | |
| hypType, | |||
args = [], |
|||
so = "libStdMeshersEngine.so" |
|||
| ) |
Private method creating a 1D hypothesis and storing it in the LayerDistribution hypothesis.
Returns the created hypothesis
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_Prism3D.distribHyp, Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, Mesh_Algorithm.Hypothesis(), and StdMeshersBuilder_Prism3D.nbLayers.
| def NumberOfLayers | ( | self, | |
| n, | |||
UseExisting = 0 |
|||
| ) |
Defines "NumberOfLayers" hypothesis, specifying the number of layers of prisms to build between the inner and outer shells.
| n | number of layers |
| UseExisting | if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one |
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_Prism3D.distribHyp, Mesh_Algorithm.geom, StdMeshersBuilder_Segment.geom, Mesh.geom, Mesh_Algorithm.Hypothesis(), smeshBuilder.IsEqual(), and StdMeshersBuilder_Prism3D.nbLayers.
| def LocalLength | ( | self, | |
| l, | |||
p = 1e-07 |
|||
| ) |
Defines "LocalLength" hypothesis, specifying the segment length to build between the inner and the outer shells.
| l | the length of segments |
| p | the precision of rounding |
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, and StdMeshersBuilder_Prism3D.OwnHypothesis().
| def NumberOfSegments | ( | self, | |
| n, | |||
s = [] |
|||
| ) |
Defines "NumberOfSegments" hypothesis, specifying the number of layers of prisms to build between the inner and the outer shells.
| n | the number of layers |
| s | the scale factor (optional) |
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, and StdMeshersBuilder_Prism3D.OwnHypothesis().
| def Arithmetic1D | ( | self, | |
| start, | |||
| end | |||
| ) |
Defines "Arithmetic1D" hypothesis, specifying the distribution of segments to build between the inner and the outer shells with a length that changes in arithmetic progression.
| start | the length of the first segment |
| end | the length of the last segment |
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, and StdMeshersBuilder_Prism3D.OwnHypothesis().
| def GeometricProgression | ( | self, | |
| start, | |||
| ratio | |||
| ) |
Defines "GeometricProgression" hypothesis, specifying the distribution of segments to build between the inner and the outer shells with a length that changes in Geometric progression.
| start | the length of the first segment |
| ratio | the common ratio of the geometric progression |
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, and StdMeshersBuilder_Prism3D.OwnHypothesis().
| def StartEndLength | ( | self, | |
| start, | |||
| end | |||
| ) |
Defines "StartEndLength" hypothesis, specifying distribution of segments to build between the inner and the outer shells as geometric length increasing.
| start | for the length of the first segment |
| end | for the length of the last segment |
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, and StdMeshersBuilder_Prism3D.OwnHypothesis().
| def AutomaticLength | ( | self, | |
fineness = 0 |
|||
| ) |
Defines "AutomaticLength" hypothesis, specifying the number of segments to build between the inner and outer shells.
| fineness | defines the quality of the mesh within the range [0-1] |
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, and StdMeshersBuilder_Prism3D.OwnHypothesis().
|
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
| algoType |
| distribHyp |
| nbLayers |