Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Advanced objects creation functions

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...
 

Detailed Description

Function Documentation

def MakeDividedCylinder (   self,
  theR,
  theH,
  thePattern,
  theName = None 
)

Builds a cylinder prepared for hexa meshes.

Parameters
theRRadius of the cylinder
theHHeight of the cylinder
thePatternDivision pattern. It can be GEOM.SQUARE or GEOM.HEXAGON
theNameObject 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.
Returns
New GEOM_Object, containing the created shape.

Example

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.

Parameters
theRRadius of the disk
theOrientationOrientation of the plane on which the disk will be built 1 = XOY, 2 = OYZ, 3 = OZX
thePatternDivision pattern. It can be GEOM.SQUARE or GEOM.HEXAGON
theNameObject 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.
Returns
New GEOM_Object, containing the created shape.

Example

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.

Parameters
theCenterCenter of the disk
theVectorNormal vector to the plane of the created disk
theRadiusRadius of the disk
thePatternDivision pattern. It can be GEOM.SQUARE or GEOM.HEXAGON
theNameObject 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.
Returns
New GEOM_Object, containing the created shape.

Example

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.

Parameters
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theHexMeshBoolean indicating if shape is prepared for hex mesh (default=True)
theP11st junction point of main pipe
theP22nd junction point of main pipe
theP3Junction point of incident pipe
theRLInternal radius of left thickness reduction
theWLWidth of left thickness reduction
theLtransLLength of left transition part
theLthinLLength of left thin part
theRRInternal radius of right thickness reduction
theWRWidth of right thickness reduction
theLtransRLength of right transition part
theLthinRLength of right thin part
theRIInternal radius of incident thickness reduction
theWIWidth of incident thickness reduction
theLtransILength of incident transition part
theLthinILength of incident thin part
theNameObject 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.
Returns
List of GEOM.GEOM_Object, containing the created shape and propagation groups.

Example

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.

Parameters
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theHHeight of the chamfer.
theWWidth of the chamfer.
theHexMeshBoolean indicating if shape is prepared for hex mesh (default=True)
theP11st junction point of main pipe
theP22nd junction point of main pipe
theP3Junction point of incident pipe
theRLInternal radius of left thickness reduction
theWLWidth of left thickness reduction
theLtransLLength of left transition part
theLthinLLength of left thin part
theRRInternal radius of right thickness reduction
theWRWidth of right thickness reduction
theLtransRLength of right transition part
theLthinRLength of right thin part
theRIInternal radius of incident thickness reduction
theWIWidth of incident thickness reduction
theLtransILength of incident transition part
theLthinILength of incident thin part
theNameObject 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.
Returns
List of GEOM.GEOM_Object, containing the created shape and propagation groups.

Example

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.

Parameters
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theRFRadius of curvature of fillet.
theHexMeshBoolean indicating if shape is prepared for hex mesh (default=True)
theP11st junction point of main pipe
theP22nd junction point of main pipe
theP3Junction point of incident pipe
theRLInternal radius of left thickness reduction
theWLWidth of left thickness reduction
theLtransLLength of left transition part
theLthinLLength of left thin part
theRRInternal radius of right thickness reduction
theWRWidth of right thickness reduction
theLtransRLength of right transition part
theLthinRLength of right thin part
theRIInternal radius of incident thickness reduction
theWIWidth of incident thickness reduction
theLtransILength of incident transition part
theLthinILength of incident thin part
theNameObject 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.
Returns
List of GEOM.GEOM_Object, containing the created shape and propagation groups.

Example

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.

Parameters
thelPointslist of points. Compounds of points are accepted as well.
theNbMaxmaximum number of Bezier pieces in the resulting surface.
theDegMaxmaximum degree of the resulting BSpline surface.
theDMax3D tolerance of initial approximation.
theNameObject 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.
Returns
New GEOM_Object, containing the created shape.
Note
3D tolerance of initial approximation represents a tolerance of initial plate surface approximation. If this parameter is equal to 0 (default value) it is computed. In this case an error of initial plate surface computation is used as the approximation tolerance. This error represents a maximal distance between computed plate surface and given points.

Example

References geomBuilder._autoPublish(), geomBuilder.GetAdvancedOperations(), and geomBuilder.RaiseIfFailed().