Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
StdMeshersBuilder_Cartesian_3D Class Reference

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

Inheritance diagram for StdMeshersBuilder_Cartesian_3D:
Inheritance graph

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

Detailed Description

Defines a Body Fitting 3D algorithm.

It is created by calling smeshBuilder.Mesh.BodyFitted(geom=0)

Constructor & Destructor Documentation

Member Function Documentation

def SetGrid (   self,
  xGridDef,
  yGridDef,
  zGridDef,
  sizeThreshold = 4.0,
  implEdges = False 
)

Defines "Body Fitting parameters" hypothesis.

Parameters
xGridDefis definition of the grid along the X asix. It can be in either of two following forms:
  • Explicit coordinates of nodes, e.g. [-1.5, 0.0, 3.1] or range( -100,200,10)
  • Functions f(t) defining grid spacing at each point on grid axis. If there are several functions, they must be accompanied by relative coordinates of points dividing the whole shape into ranges where the functions apply; points coodrinates should vary within (0.0, 1.0) range. Parameter t of the spacing function f(t) varies from 0.0 to 1.0 within a shape range. Examples:
    • "10.5" - defines a grid with a constant spacing
    • [["1", "1+10*t", "11"] [0.1, 0.6]] - defines different spacing in 3 ranges.
yGridDefdefines the grid along the Y asix the same way as xGridDef does.
zGridDefdefines 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.
implEdgesenables 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.

Parameters
xAxiseither SMESH.DirStruct or a vector, or 3 vector components
yAxiseither SMESH.DirStruct or a vector, or 3 vector components
zAxiseither 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.

Parameters
isOrthogonaldefines 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

Parameters
pcoordinates of the fixed point. Either SMESH.PointStruct or a vertex or 3 components of coordinates.
toUnsetdefines 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().

Field Documentation

string meshMethod = "BodyFitted"
static

name of the dynamic method in smeshBuilder.Mesh class

string algoType = "Cartesian_3D"
static

type of algorithm used with helper function in smeshBuilder.Mesh class

isDefault = True
static

flag pointing whether this algorithm should be used by default in dynamic method of smeshBuilder.Mesh class

string docHelper = "Creates Body Fitting 3D algorithm for volumes"
static

doc string of the method

hyp