Eidolon
Public Member Functions | Public Attributes | List of all members
ElemTypeDef Class Reference

Inherits object.

Collaboration diagram for ElemTypeDef:
Collaboration graph

Public Member Functions

def __init__ (self, geom, basisname, desc, order, xis, vertices, faces, internalxis, basis, pointsearch, facetype)
 
def isFixedNodeCount (self)
 
def numNodes (self)
 
def numVertices (self)
 
def numFaces (self)
 
def numFaceVertices (self, face=0)
 
def getFaceIndices (self, face)
 
def getFaceVertexIndices (self, face)
 
def getFaceType (self, face, asLinear=False)
 
def getFaceFarIndex (self, face)
 
def getInternalFaceXiSub (self, face)
 
def applyBasis (self, vals, xi0, xi1, xi2, args, kwargs)
 
def applyCoeffs (self, vals, coeffs)
 
def faceXiToElemXi (self, face, xi0, xi1)
 
def applyPointSearch (self, elemnodes, pt, refine, args, kwargs)
 
def __repr__ (self)
 

Public Attributes

 geom
 
 dim
 
 isSimplex
 
 basisname
 
 desc
 
 order
 
 xis
 
 centerxi
 
 vertices
 
 faces
 
 basis
 
 pointsearch
 
 facetype
 
 internalxis
 
 facevertices
 
 edges
 

Detailed Description

Defines an element type as its basis function. This includes geometry and face type information.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  geom,
  basisname,
  desc,
  order,
  xis,
  vertices,
  faces,
  internalxis,
  basis,
  pointsearch,
  facetype 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

◆ applyBasis()

def applyBasis (   self,
  vals,
  xi0,
  xi1,
  xi2,
  args,
  kwargs 
)
Evaluates the basis function at the xi point, multiplies the values by the coefficients, and sums the result.
Here is the call graph for this function:

◆ applyCoeffs()

def applyCoeffs (   self,
  vals,
  coeffs 
)
Apply the given coefficients to the given values and return the summed result.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ applyPointSearch()

def applyPointSearch (   self,
  elemnodes,
  pt,
  refine,
  args,
  kwargs 
)
Attempt to find what xi coordinate in an element defined by node values `elemnodes' the point `pt' is found at.
Here is the call graph for this function:

◆ faceXiToElemXi()

def faceXiToElemXi (   self,
  face,
  xi0,
  xi1 
)
Convert the xi value (xi0,xi1) on face number `face' to an element xi value for a 3D element. If self.dim
is less than 3, the result is simply (xi0,xi1,0). This relies on face 0 being on the xi YZ plane at xi0=0.
Here is the call graph for this function:

◆ getFaceFarIndex()

def getFaceFarIndex (   self,
  face 
)
Returns the index of a vertex far from the given face, or -1 if not fixed or is not applicable.
Here is the call graph for this function:

◆ getFaceIndices()

def getFaceIndices (   self,
  face 
)
Returns the indices for a face, or [] if not fixed.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFaceType()

def getFaceType (   self,
  face,
  asLinear = False 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFaceVertexIndices()

def getFaceVertexIndices (   self,
  face 
)
Here is the call graph for this function:

◆ getInternalFaceXiSub()

def getInternalFaceXiSub (   self,
  face 
)
Returns the value to subtract from a xi on the given face to get an internal xi.

◆ isFixedNodeCount()

def isFixedNodeCount (   self)
Returns true if the basis function is defined for a fixed number of control nodes, eg. nodal lagrange.
Here is the caller graph for this function:

◆ numFaces()

def numFaces (   self)
Returns the number of faces, -1 if not fixed.
Here is the call graph for this function:

◆ numFaceVertices()

def numFaceVertices (   self,
  face = 0 
)
Returns the number of vertices for a face, or -1 if not fixed.
Here is the caller graph for this function:

◆ numNodes()

def numNodes (   self)
Returns the number of nodes used to define this basis type, -1 if not fixed.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ numVertices()

def numVertices (   self)
Returns the number of corner nodes, -1 if not fixed.
Here is the call graph for this function:

Member Data Documentation

◆ basis

basis

◆ basisname

basisname

◆ centerxi

centerxi

◆ desc

desc

◆ dim

dim

◆ edges

edges

◆ faces

faces

◆ facetype

facetype

◆ facevertices

facevertices

◆ geom

geom

◆ internalxis

internalxis

◆ isSimplex

isSimplex

◆ order

order

◆ pointsearch

pointsearch

◆ vertices

vertices

◆ xis

xis

The documentation for this class was generated from the following file: