hp3D::HexFunctions Class Reference

Auxiliary functions for hexahedra. More...

#include <hexFunctions.hh>

Static Public Member Functions

static concepts::Real2d coordTrans (const concepts::Real x, const concepts::Real y, uint k, concepts::Z2 r, concepts::Z4 t)
 Returns the x,y coordinate in the right order with corrected orientation such that physical coordinates on the Hexahedron and on the boundary coincide Real x - first coordinate Real y - second coordinate uint k - face Z2 r - orientation parameter rho Z4 t - quad parameter tau. More...
 
static concepts::Real2d coordTransInv (const concepts::Real x, const concepts::Real y, uint k, concepts::Z2 r, concepts::Z4 t)
 
static void edgeIndex (const uint i, const uint qIndex, const uint rIndex, uint ll[3])
 Computes the tensor product index ll for an edge with index i and precomputed indices qIndex and rIndex (use edgeOrientation to compute them). More...
 
static void edgeOrientation (const uint i, uint &pIndex, uint &qIndex, uint &rIndex)
 Helps distributing the polynomial degree to the edges. More...
 
static void faceIndex (const uint i, const uint rIndex, uint ll[3])
 Computes the tensor product index ll for a face with index i and precomputed index rIndex (use faceOrientation to compute it). More...
 
static void faceOrientation (const concepts::Hexahedron &cntr, const uint i, uint &pIndex, uint &qIndex, uint &rIndex)
 Helps distributing the polynomial degree to the faces. More...
 
static void faceShapefctOrientation (const concepts::Hexahedron &cntr, const uint i, bool &flip0, bool &flip1)
 Determines wether a shape function direction has to flip the sign for the odd degree polynomials. More...
 
static uint index (const uint ll[3], const ushort p[3])
 Computes the linear index from the tensor product index ll using the polynomial degrees p. More...
 
static const concepts::ushortsetDegreeHex2Quad (const ushort *p, uint k, concepts::Z4 tau)
 This method sets the appropriate polynomial degree for a facequad from a hexahderon depending on its orientation ushort* p the three degrees uint k - face Z4 tau quad parameter tau. More...
 
static void vertexIndex (const uint i, uint ll[3])
 Computes the tensor product index ll for a vertex with index i. More...
 

Detailed Description

Auxiliary functions for hexahedra.

Author
Philipp Frauenfelder, 2002

Definition at line 27 of file hexFunctions.hh.

Member Function Documentation

◆ coordTrans()

static concepts::Real2d hp3D::HexFunctions::coordTrans ( const concepts::Real  x,
const concepts::Real  y,
uint  k,
concepts::Z2  r,
concepts::Z4  t 
)
static

Returns the x,y coordinate in the right order with corrected orientation such that physical coordinates on the Hexahedron and on the boundary coincide Real x - first coordinate Real y - second coordinate uint k - face Z2 r - orientation parameter rho Z4 t - quad parameter tau.

◆ coordTransInv()

static concepts::Real2d hp3D::HexFunctions::coordTransInv ( const concepts::Real  x,
const concepts::Real  y,
uint  k,
concepts::Z2  r,
concepts::Z4  t 
)
static

◆ edgeIndex()

static void hp3D::HexFunctions::edgeIndex ( const uint  i,
const uint  qIndex,
const uint  rIndex,
uint  ll[3] 
)
static

Computes the tensor product index ll for an edge with index i and precomputed indices qIndex and rIndex (use edgeOrientation to compute them).

Returns
ll

◆ edgeOrientation()

static void hp3D::HexFunctions::edgeOrientation ( const uint  i,
uint &  pIndex,
uint &  qIndex,
uint &  rIndex 
)
static

Helps distributing the polynomial degree to the edges.

Parameters
iIndex of the edge [0..11]
pIndexIndex of the polynomial degree of this edge in the array of the element
qIndex,rIndexOther indices
Returns
pIndex, qIndex, rIndex

◆ faceIndex()

static void hp3D::HexFunctions::faceIndex ( const uint  i,
const uint  rIndex,
uint  ll[3] 
)
static

Computes the tensor product index ll for a face with index i and precomputed index rIndex (use faceOrientation to compute it).

Returns
ll

◆ faceOrientation()

static void hp3D::HexFunctions::faceOrientation ( const concepts::Hexahedron cntr,
const uint  i,
uint &  pIndex,
uint &  qIndex,
uint &  rIndex 
)
static

Helps distributing the polynomial degree to the faces.

Parameters
cntrConnector
iIndex of the face [0..5]
pIndexIndex of the first polynomial degree of this face in the array of the element
qIndexIndex of the second polynomial degree of this face in the array of the element
rIndexOther index
Returns
pIndex, qIndex, rIndex

◆ faceShapefctOrientation()

static void hp3D::HexFunctions::faceShapefctOrientation ( const concepts::Hexahedron cntr,
const uint  i,
bool &  flip0,
bool &  flip1 
)
static

Determines wether a shape function direction has to flip the sign for the odd degree polynomials.

Parameters
cntrConnector
iIndex of the face [0..5]
flip0Return value, the first direction has to flip
flip1Return value, the second direction has to flip

◆ index()

static uint hp3D::HexFunctions::index ( const uint  ll[3],
const ushort  p[3] 
)
inlinestatic

Computes the linear index from the tensor product index ll using the polynomial degrees p.

Returns
Linear index

Definition at line 86 of file hexFunctions.hh.

◆ setDegreeHex2Quad()

static const concepts::ushort* hp3D::HexFunctions::setDegreeHex2Quad ( const ushort *  p,
uint  k,
concepts::Z4  tau 
)
static

This method sets the appropriate polynomial degree for a facequad from a hexahderon depending on its orientation ushort* p the three degrees uint k - face Z4 tau quad parameter tau.

◆ vertexIndex()

static void hp3D::HexFunctions::vertexIndex ( const uint  i,
uint  ll[3] 
)
static

Computes the tensor product index ll for a vertex with index i.

Returns
ll

The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich