Version: 9.15.0
Home
NETGEN_2D_Remote_Algorithm Class Reference

Tetrahedron 2D algorithm. More...

Inheritance diagram for NETGEN_2D_Remote_Algorithm:
Inheritance graph

Public Member Functions

def __init__ (self, mesh, geom=0)
 Private constructor. More...
 
def MaxElementArea (self, area, UseExisting=0)
 Defines MaxElementArea parameter of hypothesis basing on the definition of the maximum area of each triangle. More...
 
def LengthFromEdges (self)
 Defines LengthFromEdges hypothesis to build triangles based on the length of the edges taken from the wire. More...
 
def SetUseSurfaceCurvature (self, toUse=True)
 Sets UseSurfaceCurvature flag. More...
 
def SetQuadAllowed (self, toAllow=True)
 Sets QuadAllowed flag. More...
 
def SetMaxSize (self, theSize)
 Sets MaxSize parameter. More...
 
def SetMinSize (self, theSize)
 Sets MinSize parameter. More...
 
def SetOptimize (self, theVal)
 Sets Optimize flag. More...
 
def SetFineness (self, theFineness)
 Sets Fineness parameter. More...
 
def SetGrowthRate (self, theRate)
 Sets GrowthRate parameter. More...
 
def SetNbThreads (self, theNumber)
 Sets NbThreads parameter. More...
 
def Parameters (self, which=SOLE)
 Creates meshing hypothesis according to the chosen algorithm type and initializes it with default parameters. More...
 
def SetMeshSizeFile (self, file)
 Defines a file specifying size of elements at points and lines. More...
 
def SetLocalSizeOnShape (self, shape, size)
 Set size of elements on a shape. More...
 

Data Fields

 params
 

Static Public Attributes

 algoType = NETGEN_2D_Remote
 type of algorithm used with helper function in smeshBuilder.Mesh class More...
 
bool isDefault = False
 flag pointing either this algorithm should be used by default in dynamic method of smeshBuilder.Mesh class More...
 
string docHelper = "Remotely Creates triangles in face of solids"
 doc string of the method More...
 
string meshMethod = "Triangle"
 name of the dynamic method in smeshBuilder.Mesh class More...
 

Detailed Description

Tetrahedron 2D algorithm.

It can be created by calling smeshBuilder.Mesh.Triangle() or smeshBuilder.Mesh.Triangle( smeshBuilder.NETGEN, geom=0 )

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

References NETGEN_Algorithm.algoType, NETGEN_1D2D3D_Algorithm.algoType, NETGEN_1D2D_Algorithm.algoType, NETGEN_2D_Only_Algorithm.algoType, NETGEN_3D_Algorithm.algoType, NETGEN_3D_Remote_Algorithm.algoType, NETGEN_2D_Remote_Algorithm.algoType, and NETGEN_1D2D_Algorithm_2.algoType.

Member Function Documentation

◆ MaxElementArea()

def MaxElementArea (   self,
  area,
  UseExisting = 0 
)
inherited

Defines MaxElementArea parameter of hypothesis basing on the definition of the maximum area of each triangle.

Parameters
areamaximum area value of each triangle
UseExistingif True - searches for an existing hypothesis created with the same parameters, else (default) - creates a new one
Returns
hypothesis object

References Mesh_Algorithm.Hypothesis().

◆ LengthFromEdges()

def LengthFromEdges (   self)
inherited

Defines LengthFromEdges hypothesis to build triangles based on the length of the edges taken from the wire.

Returns
hypothesis object

References Mesh_Algorithm.CompareEqualHyp(), and Mesh_Algorithm.Hypothesis().

◆ SetUseSurfaceCurvature()

def SetUseSurfaceCurvature (   self,
  toUse = True 
)
inherited

Sets UseSurfaceCurvature flag.

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

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

◆ SetQuadAllowed()

def SetQuadAllowed (   self,
  toAllow = True 
)
inherited

Sets QuadAllowed flag.

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

References Mesh_Algorithm.CompareEqualHyp(), Mesh_Algorithm.geom, Mesh_Algorithm.Hypothesis(), Mesh_Algorithm.mesh, NETGEN_Algorithm.Parameters(), and NETGEN_Algorithm.params.

◆ SetMaxSize()

def SetMaxSize (   self,
  theSize 
)
inherited

Sets MaxSize parameter.

Parameters
theSizenew value of the MaxSize parameter

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

◆ SetMinSize()

def SetMinSize (   self,
  theSize 
)
inherited

Sets MinSize parameter.

Parameters
theSizenew value of the MinSize parameter

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

◆ SetOptimize()

def SetOptimize (   self,
  theVal 
)
inherited

Sets Optimize flag.

Parameters
theValnew value of the Optimize parameter

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

◆ SetFineness()

def SetFineness (   self,
  theFineness 
)
inherited

Sets Fineness parameter.

Parameters
theFinenessnew value of the Fineness parameter; it can be: VeryCoarse, Coarse, Moderate, Fine, VeryFine or Custom

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

◆ SetGrowthRate()

def SetGrowthRate (   self,
  theRate 
)
inherited

Sets GrowthRate parameter.

Parameters
theRatenew value of the GrowthRate parameter

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

◆ SetNbThreads()

def SetNbThreads (   self,
  theNumber 
)
inherited

Sets NbThreads parameter.

Parameters
theRatenew value of the NbThreads parameter

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

◆ Parameters()

def Parameters (   self,
  which = SOLE 
)
inherited

Creates meshing hypothesis according to the chosen algorithm type and initializes it with default parameters.

Parameters
whichhypothesis type; can be either SOLE (default) or SIMPLE
Returns
hypothesis object

◆ SetMeshSizeFile()

def SetMeshSizeFile (   self,
  file 
)
inherited

Defines a file specifying size of elements at points and lines.

Parameters
filename of the file

References NETGEN_Algorithm.Parameters().

◆ SetLocalSizeOnShape()

def SetLocalSizeOnShape (   self,
  shape,
  size 
)
inherited

Set size of elements on a shape.

Parameters
shape- geometry
size- element size

References NETGEN_Algorithm.Parameters().

Field Documentation

◆ algoType

algoType = NETGEN_2D_Remote
static

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

◆ isDefault

bool isDefault = False
static

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

◆ docHelper

string docHelper = "Remotely Creates triangles in face of solids"
static

doc string of the method

◆ meshMethod

string meshMethod = "Triangle"
staticinherited

name of the dynamic method in smeshBuilder.Mesh class

◆ params

params
inherited