Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Public Member Functions | Data Fields | Static Public Attributes
StdMeshersDC_Cartesian_3D Class Reference

Defines a Body Fitting 3D algorithm It is created by calling Mesh.BodyFitted(geom=0) More...

Public Member Functions

def __init__
def SetGrid
 Defines "Body Fitting parameters" hypothesis.
def FindHypothesis
 Finds a hypothesis in the study by its type name and parameters.
def FindAlgorithm
 Finds the algorithm in the study by its type name.
def GetSubMesh
 If the algorithm is global, returns 0;
else returns the submesh associated to this algorithm.
def GetAlgorithm
 Returns the wrapped mesher.
def GetCompatibleHypothesis
 Gets the list of hypothesis that can be used with this algorithm.
def GetName
 Gets the name of the algorithm.
def SetName
 Sets the name to the algorithm.
def GetId
 Gets the id of the algorithm.
def Create
 Private method.
def Assign
 Private method.
def CompareHyp
def CompareEqualHyp
def Hypothesis
 Private method.
def MainShapeEntry
 Returns entry of the shape to mesh in the study.
def ViscousLayers
 Defines "ViscousLayers" hypothesis to give parameters of layers of prisms to build near mesh boundary.
def ReversedEdgeIndices
 Transform a list of ether edges or tuples (edge 1st_vertex_of_edge) into a list acceptable to SetReversedEdges() of some 1D hypotheses.

Data Fields

 hyp
 mesh
 geom
 subm
 algo

Static Public Attributes

string meshMethod = "BodyFitted"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Cartesian_3D"
 Name of algorithm type.
 isDefault = True

Detailed Description

Defines a Body Fitting 3D algorithm It is created by calling Mesh.BodyFitted(geom=0)

Constructor & Destructor Documentation

def __init__ (   self,
  mesh,
  geom = 0 
)

Member Function Documentation

def SetGrid (   self,
  xGridDef,
  yGridDef,
  zGridDef,
  sizeThreshold = 4.0,
  UseExisting = 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 witin 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
UseExistingif ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

References Mesh.geom, Mesh_Algorithm.geom, StdMeshersDC_Cartesian_3D.hyp, hypMethodWrapper.hyp, and Mesh_Algorithm.Hypothesis().

def FindHypothesis (   self,
  hypname,
  args,
  CompareMethod,
  smeshpyD 
)
inherited

Finds a hypothesis in the study by its type name and parameters.

Finds only the hypotheses created in smeshpyD engine.

Returns
SMESH.SMESH_Hypothesis
def FindAlgorithm (   self,
  algoname,
  smeshpyD 
)
inherited

Finds the algorithm in the study by its type name.

Finds only the algorithms, which have been created in smeshpyD engine.

Returns
SMESH.SMESH_Algo
def GetSubMesh (   self)
inherited

If the algorithm is global, returns 0;
else returns the submesh associated to this algorithm.

References Mesh_Algorithm.subm.

def GetAlgorithm (   self)
inherited

Returns the wrapped mesher.

References Mesh_Algorithm.algo.

def GetCompatibleHypothesis (   self)
inherited

Gets the list of hypothesis that can be used with this algorithm.

References Mesh_Algorithm.algo.

def GetName (   self)
inherited

Gets the name of the algorithm.

References Mesh_Algorithm.algo.

def SetName (   self,
  name 
)
inherited

Sets the name to the algorithm.

References Mesh_Algorithm.algo.

def GetId (   self)
inherited

Gets the id of the algorithm.

def Create (   self,
  mesh,
  geom,
  hypo,
  so = "libStdMeshersEngine.so" 
)
inherited
def Assign (   self,
  algo,
  mesh,
  geom 
)
inherited
def CompareHyp (   self,
  hyp,
  args 
)
inherited
def CompareEqualHyp (   self,
  hyp,
  args 
)
inherited
def Hypothesis (   self,
  hyp,
  args = [],
  so = "libStdMeshersEngine.so",
  UseExisting = 0,
  CompareMethod = "" 
)
inherited
def MainShapeEntry (   self)
inherited

Returns entry of the shape to mesh in the study.

References Mesh.mesh, and Mesh_Algorithm.mesh.

Field Documentation

string meshMethod = "BodyFitted"
static

Name of method of class Mesh creating an instance of this class.

string algoType = "Cartesian_3D"
static

Name of algorithm type.

isDefault = True
static
hyp
mesh
inherited
geom
inherited
subm
inherited
algo
inherited
Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS