Functions | |
def | MakeDividedCylinder |
Builds a cylinder prepared for hexa meshes. More... | |
def | MakeDividedDisk |
This function allows creating a disk already divided into blocks. More... | |
def | MakeDividedDiskPntVecR |
This function allows creating a disk already divided into blocks. More... | |
def | MakePipeTShape |
Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). More... | |
def | MakePipeTShapeChamfer |
Create a T-shape object with chamfer and with specified caracteristics for the main and the incident pipes (radius, width, half-length). More... | |
def | MakePipeTShapeFillet |
Create a T-shape object with fillet and with specified caracteristics for the main and the incident pipes (radius, width, half-length). More... | |
def | MakeSmoothingSurface |
Create a surface from a cloud of points. More... | |
def MakeDividedCylinder | ( | self, | |
theR, | |||
theH, | |||
thePattern, | |||
theName = None |
|||
) |
Builds a cylinder prepared for hexa meshes.
theR | Radius of the cylinder |
theH | Height of the cylinder |
thePattern | Division pattern. It can be GEOM.SQUARE or GEOM.HEXAGON |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.GetAdvancedOperations(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeDividedDisk | ( | self, | |
theR, | |||
theOrientation, | |||
thePattern, | |||
theName = None |
|||
) |
This function allows creating a disk already divided into blocks.
It can be used to create divided pipes for later meshing in hexaedra.
theR | Radius of the disk |
theOrientation | Orientation of the plane on which the disk will be built 1 = XOY, 2 = OYZ, 3 = OZX |
thePattern | Division pattern. It can be GEOM.SQUARE or GEOM.HEXAGON |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.GetAdvancedOperations(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeDividedDiskPntVecR | ( | self, | |
theCenter, | |||
theVector, | |||
theRadius, | |||
thePattern, | |||
theName = None |
|||
) |
This function allows creating a disk already divided into blocks.
It can be used to create divided pipes for later meshing in hexaedra.
theCenter | Center of the disk |
theVector | Normal vector to the plane of the created disk |
theRadius | Radius of the disk |
thePattern | Division pattern. It can be GEOM.SQUARE or GEOM.HEXAGON |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.GetAdvancedOperations(), geomBuilder.MakePipeTShape(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakePipeTShape | ( | self, | |
theR1, | |||
theW1, | |||
theL1, | |||
theR2, | |||
theW2, | |||
theL2, | |||
theHexMesh = True , |
|||
theP1 = None , |
|||
theP2 = None , |
|||
theP3 = None , |
|||
theRL = 0 , |
|||
theWL = 0 , |
|||
theLtransL = 0 , |
|||
theLthinL = 0 , |
|||
theRR = 0 , |
|||
theWR = 0 , |
|||
theLtransR = 0 , |
|||
theLthinR = 0 , |
|||
theRI = 0 , |
|||
theWI = 0 , |
|||
theLtransI = 0 , |
|||
theLthinI = 0 , |
|||
theName = None |
|||
) |
Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length).
The extremities of the main pipe are located on junctions points P1 and P2. The extremity of the incident pipe is located on junction point P3. If P1, P2 and P3 are not given, the center of the shape is (0,0,0) and the main plane of the T-shape is XOY.
theR1 | Internal radius of main pipe |
theW1 | Width of main pipe |
theL1 | Half-length of main pipe |
theR2 | Internal radius of incident pipe (R2 < R1) |
theW2 | Width of incident pipe (R2+W2 < R1+W1) |
theL2 | Half-length of incident pipe |
theHexMesh | Boolean indicating if shape is prepared for hex mesh (default=True) |
theP1 | 1st junction point of main pipe |
theP2 | 2nd junction point of main pipe |
theP3 | Junction point of incident pipe |
theRL | Internal radius of left thickness reduction |
theWL | Width of left thickness reduction |
theLtransL | Length of left transition part |
theLthinL | Length of left thin part |
theRR | Internal radius of right thickness reduction |
theWR | Width of right thickness reduction |
theLtransR | Length of right transition part |
theLthinR | Length of right thin part |
theRI | Internal radius of incident thickness reduction |
theWI | Width of incident thickness reduction |
theLtransI | Length of incident transition part |
theLthinI | Length of incident thin part |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder.GetAdvancedOperations(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakePipeTShapeChamfer | ( | self, | |
theR1, | |||
theW1, | |||
theL1, | |||
theR2, | |||
theW2, | |||
theL2, | |||
theH, | |||
theW, | |||
theHexMesh = True , |
|||
theP1 = None , |
|||
theP2 = None , |
|||
theP3 = None , |
|||
theRL = 0 , |
|||
theWL = 0 , |
|||
theLtransL = 0 , |
|||
theLthinL = 0 , |
|||
theRR = 0 , |
|||
theWR = 0 , |
|||
theLtransR = 0 , |
|||
theLthinR = 0 , |
|||
theRI = 0 , |
|||
theWI = 0 , |
|||
theLtransI = 0 , |
|||
theLthinI = 0 , |
|||
theName = None |
|||
) |
Create a T-shape object with chamfer and with specified caracteristics for the main and the incident pipes (radius, width, half-length).
The chamfer is created on the junction of the pipes. The extremities of the main pipe are located on junctions points P1 and P2. The extremity of the incident pipe is located on junction point P3. If P1, P2 and P3 are not given, the center of the shape is (0,0,0) and the main plane of the T-shape is XOY.
theR1 | Internal radius of main pipe |
theW1 | Width of main pipe |
theL1 | Half-length of main pipe |
theR2 | Internal radius of incident pipe (R2 < R1) |
theW2 | Width of incident pipe (R2+W2 < R1+W1) |
theL2 | Half-length of incident pipe |
theH | Height of the chamfer. |
theW | Width of the chamfer. |
theHexMesh | Boolean indicating if shape is prepared for hex mesh (default=True) |
theP1 | 1st junction point of main pipe |
theP2 | 2nd junction point of main pipe |
theP3 | Junction point of incident pipe |
theRL | Internal radius of left thickness reduction |
theWL | Width of left thickness reduction |
theLtransL | Length of left transition part |
theLthinL | Length of left thin part |
theRR | Internal radius of right thickness reduction |
theWR | Width of right thickness reduction |
theLtransR | Length of right transition part |
theLthinR | Length of right thin part |
theRI | Internal radius of incident thickness reduction |
theWI | Width of incident thickness reduction |
theLtransI | Length of incident transition part |
theLthinI | Length of incident thin part |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder._toListOfNames(), geomBuilder.def_names, geomBuilder.GetAdvancedOperations(), geomBuilder.MakePipeTShapeFillet(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakePipeTShapeFillet | ( | self, | |
theR1, | |||
theW1, | |||
theL1, | |||
theR2, | |||
theW2, | |||
theL2, | |||
theRF, | |||
theHexMesh = True , |
|||
theP1 = None , |
|||
theP2 = None , |
|||
theP3 = None , |
|||
theRL = 0 , |
|||
theWL = 0 , |
|||
theLtransL = 0 , |
|||
theLthinL = 0 , |
|||
theRR = 0 , |
|||
theWR = 0 , |
|||
theLtransR = 0 , |
|||
theLthinR = 0 , |
|||
theRI = 0 , |
|||
theWI = 0 , |
|||
theLtransI = 0 , |
|||
theLthinI = 0 , |
|||
theName = None |
|||
) |
Create a T-shape object with fillet and with specified caracteristics for the main and the incident pipes (radius, width, half-length).
The fillet is created on the junction of the pipes. The extremities of the main pipe are located on junctions points P1 and P2. The extremity of the incident pipe is located on junction point P3. If P1, P2 and P3 are not given, the center of the shape is (0,0,0) and the main plane of the T-shape is XOY.
theR1 | Internal radius of main pipe |
theW1 | Width of main pipe |
theL1 | Half-length of main pipe |
theR2 | Internal radius of incident pipe (R2 < R1) |
theW2 | Width of incident pipe (R2+W2 < R1+W1) |
theL2 | Half-length of incident pipe |
theRF | Radius of curvature of fillet. |
theHexMesh | Boolean indicating if shape is prepared for hex mesh (default=True) |
theP1 | 1st junction point of main pipe |
theP2 | 2nd junction point of main pipe |
theP3 | Junction point of incident pipe |
theRL | Internal radius of left thickness reduction |
theWL | Width of left thickness reduction |
theLtransL | Length of left transition part |
theLthinL | Length of left thin part |
theRR | Internal radius of right thickness reduction |
theWR | Width of right thickness reduction |
theLtransR | Length of right transition part |
theLthinR | Length of right thin part |
theRI | Internal radius of incident thickness reduction |
theWI | Width of incident thickness reduction |
theLtransI | Length of incident transition part |
theLthinI | Length of incident thin part |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder._toListOfNames(), geomBuilder.def_names, geomBuilder.GetAdvancedOperations(), geomBuilder.MakeSmoothingSurface(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def MakeSmoothingSurface | ( | self, | |
thelPoints, | |||
theNbMax = 2 , |
|||
theDegMax = 8 , |
|||
theDMax = 0.0 , |
|||
theName = None |
|||
) |
Create a surface from a cloud of points.
thelPoints | list of points. Compounds of points are accepted as well. |
theNbMax | maximum number of Bezier pieces in the resulting surface. |
theDegMax | maximum degree of the resulting BSpline surface. |
theDMax | 3D tolerance of initial approximation. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.GetAdvancedOperations(), and geomBuilder.RaiseIfFailed().