GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
GooseFEM::Mesh::Tri3 Namespace Reference

Simple meshes of and mesh operations for triangular elements of type ElementType::Tri3. More...

Classes

class  Regular
 Regular grid of squares, with each square cut into two triangular elements. More...
 

Functions

array_type::tensor< int, 1 > getOrientation (const array_type::tensor< double, 2 > &coor, const array_type::tensor< size_t, 2 > &conn)
 Read the orientation of a mesh of triangular elements of type ElementType::Tri3.
 
array_type::tensor< size_t, 2 > setOrientation (const array_type::tensor< double, 2 > &coor, const array_type::tensor< size_t, 2 > &conn, const array_type::tensor< int, 1 > &val, int orientation=-1)
 Set the orientation of a mesh of triangular elements of type ElementType::Tri3.
 
array_type::tensor< size_t, 2 > setOrientation (const array_type::tensor< double, 2 > &coor, const array_type::tensor< size_t, 2 > &conn, int orientation=-1)
 Set the orientation of a mesh of triangular elements of type ElementType::Tri3.
 

Detailed Description

Simple meshes of and mesh operations for triangular elements of type ElementType::Tri3.

Function Documentation

◆ getOrientation()

array_type::tensor< int, 1 > GooseFEM::Mesh::Tri3::getOrientation ( const array_type::tensor< double, 2 > & coor,
const array_type::tensor< size_t, 2 > & conn )
inline

Read the orientation of a mesh of triangular elements of type ElementType::Tri3.

Parameters
coorNodal coordinates [nnode, ndim].
connConnectivity [nelem, nne].
Returns
Orientation (-1 or +1) per element [nelem].

Definition at line 240 of file MeshTri3.h.

◆ setOrientation() [1/2]

array_type::tensor< size_t, 2 > GooseFEM::Mesh::Tri3::setOrientation ( const array_type::tensor< double, 2 > & coor,
const array_type::tensor< size_t, 2 > & conn,
const array_type::tensor< int, 1 > & val,
int orientation = -1 )
inline

Set the orientation of a mesh of triangular elements of type ElementType::Tri3.

For efficiency this function reuses the output of getOrientation().

Parameters
coorNodal coordinates [nnode, ndim].
connConnectivity [nelem, nne].
valCurrent orientation per element (output of getOrientation()) [nelem].
orientationTarget orientation (applied to all elements).
Returns
Connectivity (order of nodes-per-element may have changed) [nelem, nne].

Definition at line 279 of file MeshTri3.h.

◆ setOrientation() [2/2]

array_type::tensor< size_t, 2 > GooseFEM::Mesh::Tri3::setOrientation ( const array_type::tensor< double, 2 > & coor,
const array_type::tensor< size_t, 2 > & conn,
int orientation = -1 )
inline

Set the orientation of a mesh of triangular elements of type ElementType::Tri3.

Parameters
coorNodal coordinates [nnode, ndim].
connConnectivity [nelem, nne].
orientationTarget orientation (applied to all elements).
Returns
Connectivity (order of nodes-per-element may have changed) [nelem, nne].

Definition at line 313 of file MeshTri3.h.