Version: 9.16.0
Home
NETGEN_2D_Only_Algorithm Class Reference

Triangle NETGEN 2D algorithm. More...

Inheritance diagram for NETGEN_2D_Only_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...
 

Static Public Attributes

string meshMethod = "Triangle"
 name of the dynamic method in smeshBuilder.Mesh class More...
 
 algoType = NETGEN_2D
 type of algorithm used with helper function in smeshBuilder.Mesh class More...
 
bool isDefault = True
 flag pointing whether this algorithm should be used by default in dynamic method of smeshBuilder.Mesh class More...
 
string docHelper = "Creates triangle 2D algorithm for faces"
 doc string of the method More...
 

Detailed Description

Triangle NETGEN 2D algorithm.

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

This algorithm generates only 2D (faces) elements for given geometrical shape and, in contrast to NETGEN_1D2D_Algorithm class, should be used in conjunction with other 1D meshing algorithm.

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

Member Function Documentation

◆ MaxElementArea()

def MaxElementArea (   self,
  area,
  UseExisting = 0 
)

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)

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 
)

Sets UseSurfaceCurvature flag.

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

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

◆ SetQuadAllowed()

def SetQuadAllowed (   self,
  toAllow = True 
)

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(), NETGEN_Algorithm.params, and NETGEN_2D_Only_Algorithm.SetQuadAllowed().

Field Documentation

◆ meshMethod

string meshMethod = "Triangle"
static

name of the dynamic method in smeshBuilder.Mesh class

◆ algoType

algoType = NETGEN_2D
static

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

◆ isDefault

bool isDefault = True
static

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

◆ docHelper

string docHelper = "Creates triangle 2D algorithm for faces"
static

doc string of the method