Version: 9.15.0
Home
NETGEN_Algorithm Class Reference

Base of all NETGEN algorithms. More...

Inheritance diagram for NETGEN_Algorithm:
Inheritance graph

Public Member Functions

def __init__ (self, mesh, geom=0)
 Private constructor. 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

 meshMethod
 
 params
 
 algoType
 

Detailed Description

Base of all NETGEN algorithms.

This class provides common methods for all algorithms implemented by NETGEN plugin.

Note
This class must not be instantiated directly.

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 in NETGEN_1D2D3D_Algorithm_2, NETGEN_1D2D_Algorithm_2, NETGEN_2D_Remote_Algorithm, NETGEN_3D_Remote_Algorithm, NETGEN_3D_Algorithm, NETGEN_2D_Only_Algorithm, NETGEN_1D2D_Algorithm, and NETGEN_1D2D3D_Algorithm.

Member Function Documentation

◆ SetMaxSize()

def SetMaxSize (   self,
  theSize 
)

Sets MaxSize parameter.

Parameters
theSizenew value of the MaxSize parameter

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

◆ SetMinSize()

def SetMinSize (   self,
  theSize 
)

Sets MinSize parameter.

Parameters
theSizenew value of the MinSize parameter

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

◆ SetOptimize()

def SetOptimize (   self,
  theVal 
)

Sets Optimize flag.

Parameters
theValnew value of the Optimize parameter

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

◆ SetFineness()

def SetFineness (   self,
  theFineness 
)

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 
)

Sets GrowthRate parameter.

Parameters
theRatenew value of the GrowthRate parameter

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

◆ SetNbThreads()

def SetNbThreads (   self,
  theNumber 
)

Sets NbThreads parameter.

Parameters
theRatenew value of the NbThreads parameter

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

◆ Parameters()

def Parameters (   self,
  which = SOLE 
)

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 
)

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 
)

Set size of elements on a shape.

Parameters
shape- geometry
size- element size

References NETGEN_Algorithm.Parameters().

Field Documentation

◆ meshMethod

meshMethod

◆ params

params

◆ algoType

algoType