Version: 9.16.0
Home
NETGEN_1D2D3D_Algorithm Class Reference

Tetrahedron 1D-2D-3D algorithm. More...

Inheritance diagram for NETGEN_1D2D3D_Algorithm:
Inheritance graph

Public Member Functions

def __init__ (self, mesh, geom=0)
 Private constructor. More...
 
def SetSecondOrder (self, theVal)
 Sets SecondOrder flag. More...
 
def SetNbSegPerEdge (self, theVal)
 Sets NbSegPerEdge parameter. More...
 
def SetNbSegPerRadius (self, theVal)
 Sets NbSegPerRadius parameter. More...
 
def SetChordalError (self, theVal)
 Sets ChordalError parameter. More...
 
def SetRidgeAngle (self, theVal)
 Sets RidgeAngle parameter. More...
 
def SetQuadAllowed (self, toAllow=True)
 Sets QuadAllowed flag. More...
 
def SetUseSurfaceCurvature (self, toUse=True)
 Sets UseSurfaceCurvature flag. More...
 
def SetFuseEdges (self, toFuse=False)
 Sets FuseEdges flag. More...
 
def SetNumberOfSegments (self, theVal)
 Sets number of segments overriding the value set by SetLocalLength() More...
 
def SetLocalLength (self, theVal)
 Sets number of segments overriding the value set by SetNumberOfSegments() More...
 
def MaxElementArea (self, area)
 Defines MaxElementArea parameter of NETGEN_SimpleParameters_3D hypothesis. More...
 
def LengthFromEdges (self)
 Defines LengthFromEdges parameter of NETGEN_SimpleParameters_3D hypothesis. More...
 
def LengthFromFaces (self)
 Defines LengthFromFaces parameter of NETGEN_SimpleParameters_3D hypothesis. More...
 
def MaxElementVolume (self, vol)
 Defines MaxElementVolume parameter of NETGEN_SimpleParameters_3D hypothesis. More...
 

Static Public Attributes

string meshMethod = "Tetrahedron"
 name of the dynamic method in smeshBuilder.Mesh class More...
 
 algoType = NETGEN_1D2D3D
 type of algorithm used with helper function in smeshBuilder.Mesh class More...
 
string docHelper = "Creates tetrahedron 3D algorithm for solids"
 doc string of the method More...
 

Detailed Description

Tetrahedron 1D-2D-3D algorithm.

It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.NETGEN_1D2D3D, geom=0 ). This algorithm generates all 1D (edges), 2D (faces) and 3D (volumes) elements for given geometrical shape.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Parameters
meshparent mesh object algorithm is assigned to
geomgeometry (shape/sub-shape) algorithm is assigned to; if it is 0 (default), the algorithm is assigned to the main shape

Reimplemented from NETGEN_Algorithm.

Reimplemented in NETGEN_1D2D_Algorithm, NETGEN_1D2D_Algorithm_2, and NETGEN_1D2D3D_Algorithm_2.

Member Function Documentation

◆ SetSecondOrder()

def SetSecondOrder (   self,
  theVal 
)

Sets SecondOrder flag.

Parameters
theValnew value of the SecondOrder parameter

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetSecondOrder().

◆ SetNbSegPerEdge()

def SetNbSegPerEdge (   self,
  theVal 
)

Sets NbSegPerEdge parameter.

Parameters
theValnew value of the NbSegPerEdge parameter

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetNbSegPerEdge().

◆ SetNbSegPerRadius()

def SetNbSegPerRadius (   self,
  theVal 
)

Sets NbSegPerRadius parameter.

Parameters
theValnew value of the NbSegPerRadius parameter

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetNbSegPerRadius().

◆ SetChordalError()

def SetChordalError (   self,
  theVal 
)

Sets ChordalError parameter.

Parameters
theValnew value of the ChordalError parameter

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetChordalError().

◆ SetRidgeAngle()

def SetRidgeAngle (   self,
  theVal 
)

Sets RidgeAngle parameter.

Parameters
theValnew value of the RidgeAngle parameter

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetRidgeAngle().

◆ SetQuadAllowed()

def SetQuadAllowed (   self,
  toAllow = True 
)

Sets QuadAllowed flag.

Parameters
toAllownew value of the QuadAllowed parameter (True by default)

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetQuadAllowed().

◆ SetUseSurfaceCurvature()

def SetUseSurfaceCurvature (   self,
  toUse = True 
)

Sets UseSurfaceCurvature flag.

Parameters
toUsenew value of the UseSurfaceCurvature parameter (True by default)

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetUseSurfaceCurvature().

◆ SetFuseEdges()

def SetFuseEdges (   self,
  toFuse = False 
)

Sets FuseEdges flag.

Parameters
toFusenew value of the FuseEdges parameter (False by default)

References NETGEN_Algorithm.Parameters(), NETGEN_Algorithm.params, and NETGEN_1D2D3D_Algorithm.SetFuseEdges().

◆ SetNumberOfSegments()

def SetNumberOfSegments (   self,
  theVal 
)

Sets number of segments overriding the value set by SetLocalLength()

Parameters
theValnew value of number of segments parameter

References NETGEN_Algorithm.Parameters(), and NETGEN_1D2D3D_Algorithm.SetNumberOfSegments().

◆ SetLocalLength()

def SetLocalLength (   self,
  theVal 
)

Sets number of segments overriding the value set by SetNumberOfSegments()

Parameters
theValnew value of local length parameter

References NETGEN_Algorithm.Parameters(), and NETGEN_1D2D3D_Algorithm.SetLocalLength().

◆ MaxElementArea()

def MaxElementArea (   self,
  area 
)

Defines MaxElementArea parameter of NETGEN_SimpleParameters_3D hypothesis.

Overrides value set by LengthFromEdges()

Parameters
areanew value of MaxElementArea parameter

References NETGEN_Algorithm.Parameters().

◆ LengthFromEdges()

def LengthFromEdges (   self)

Defines LengthFromEdges parameter of NETGEN_SimpleParameters_3D hypothesis.

Overrides value set by MaxElementArea()

References NETGEN_1D2D3D_Algorithm.LengthFromEdges(), and NETGEN_Algorithm.Parameters().

◆ LengthFromFaces()

def LengthFromFaces (   self)

Defines LengthFromFaces parameter of NETGEN_SimpleParameters_3D hypothesis.

Overrides value set by MaxElementVolume()

References NETGEN_1D2D3D_Algorithm.LengthFromFaces(), and NETGEN_Algorithm.Parameters().

◆ MaxElementVolume()

def MaxElementVolume (   self,
  vol 
)

Defines MaxElementVolume parameter of NETGEN_SimpleParameters_3D hypothesis.

Overrides value set by LengthFromFaces()

Parameters
volnew value of MaxElementVolume parameter

References NETGEN_Algorithm.Parameters().

Field Documentation

◆ meshMethod

string meshMethod = "Tetrahedron"
static

name of the dynamic method in smeshBuilder.Mesh class

◆ algoType

algoType = NETGEN_1D2D3D
static

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

◆ docHelper

string docHelper = "Creates tetrahedron 3D algorithm for solids"
static

doc string of the method