FrictionQPotFEM 0.23.3
Loading...
Searching...
No Matches
GooseFEM::Mesh::RegularBase2d< D > Class Template Reference

CRTP base class for regular meshes in 2d. More...

#include <include/GooseFEM/Mesh.h>

Inheritance diagram for GooseFEM::Mesh::RegularBase2d< D >:
Collaboration diagram for GooseFEM::Mesh::RegularBase2d< D >:

Public Types

using derived_type = D
 Underlying type. More...
 
- Public Types inherited from GooseFEM::Mesh::RegularBase< D >
using derived_type = D
 Underlying type. More...
 

Public Member Functions

auto nodesBottomEdge () const
 Nodes along the bottom edge (y = 0), in order of increasing x. More...
 
auto nodesTopEdge () const
 Nodes along the top edge (y = nely * h), in order of increasing x. More...
 
auto nodesLeftEdge () const
 Nodes along the left edge (x = 0), in order of increasing y. More...
 
auto nodesRightEdge () const
 Nodes along the right edge (x = nelx * h), in order of increasing y. More...
 
auto nodesBottomOpenEdge () const
 Nodes along the bottom edge (y = 0), without the corners (at x = 0 and x = nelx * h). More...
 
auto nodesTopOpenEdge () const
 Nodes along the top edge (y = nely * h), without the corners (at x = 0 and x = nelx * h). More...
 
auto nodesLeftOpenEdge () const
 Nodes along the left edge (x = 0), without the corners (at y = 0 and y = nely * h). More...
 
auto nodesRightOpenEdge () const
 Nodes along the right edge (x = nelx * h), without the corners (at y = 0 and y = nely * h). More...
 
auto nodesBottomLeftCorner () const
 The bottom-left corner node (at x = 0, y = 0). More...
 
auto nodesBottomRightCorner () const
 The bottom-right corner node (at x = nelx * h, y = 0). More...
 
auto nodesTopLeftCorner () const
 The top-left corner node (at x = 0, y = nely * h). More...
 
auto nodesTopRightCorner () const
 The top-right corner node (at x = nelx * h, y = nely * h). More...
 
auto nodesLeftBottomCorner () const
 Alias of nodesBottomLeftCorner(). More...
 
auto nodesLeftTopCorner () const
 Alias of nodesTopLeftCorner(). More...
 
auto nodesRightBottomCorner () const
 Alias of nodesBottomRightCorner(). More...
 
auto nodesRightTopCorner () const
 Alias of nodesTopRightCorner(). More...
 
- Public Member Functions inherited from GooseFEM::Mesh::RegularBase< D >
auto nelem () const
 Number of elements. More...
 
auto nnode () const
 Number of nodes. More...
 
auto nne () const
 Number of nodes-per-element == 4. More...
 
auto ndim () const
 Number of dimensions == 2. More...
 
auto nelx () const
 Number of elements in x-direction == width of the mesh in units of h. More...
 
auto nely () const
 Number of elements in y-direction == height of the mesh, in units of h,. More...
 
auto h () const
 Linear edge size of one 'block'. More...
 
auto getElementType () const
 The ElementType(). More...
 
auto coor () const
 Nodal coordinates [nnode, ndim]. More...
 
auto conn () const
 Connectivity [nelem, nne]. More...
 
auto dofs () const
 DOF numbers for each node (numbered sequentially) [nnode, ndim]. More...
 
auto dofsPeriodic () const
 DOF-numbers for the case that the periodicity if fully eliminated. More...
 
auto nodesPeriodic () const
 Periodic node pairs, in two columns: (independent, dependent). More...
 
auto nodesOrigin () const
 Reference node to use for periodicity, because all corners are tied to it. More...
 

Friends

class RegularBase< D >
 

Detailed Description

template<class D>
class GooseFEM::Mesh::RegularBase2d< D >

CRTP base class for regular meshes in 2d.

Definition at line 339 of file Mesh.h.

Member Typedef Documentation

◆ derived_type

template<class D >
using GooseFEM::Mesh::RegularBase2d< D >::derived_type = D

Underlying type.

Definition at line 344 of file Mesh.h.

Member Function Documentation

◆ nodesBottomEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesBottomEdge ( ) const
inline

Nodes along the bottom edge (y = 0), in order of increasing x.

Returns
List of node numbers.

Definition at line 350 of file Mesh.h.

◆ nodesBottomLeftCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesBottomLeftCorner ( ) const
inline

The bottom-left corner node (at x = 0, y = 0).

Same as nodesBottomEdge()[0] and nodesLeftEdge()[0].

Returns
Node number.

Definition at line 427 of file Mesh.h.

◆ nodesBottomOpenEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesBottomOpenEdge ( ) const
inline

Nodes along the bottom edge (y = 0), without the corners (at x = 0 and x = nelx * h).

Same as: nodesBottomEdge()[1: -1].

Returns
List of node numbers.

Definition at line 387 of file Mesh.h.

◆ nodesBottomRightCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesBottomRightCorner ( ) const
inline

The bottom-right corner node (at x = nelx * h, y = 0).

Same as nodesBottomEdge()[-1] and nodesRightEdge()[0].

Returns
Node number.

Definition at line 437 of file Mesh.h.

◆ nodesLeftBottomCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesLeftBottomCorner ( ) const
inline

Alias of nodesBottomLeftCorner().

Returns
Node number.

Definition at line 466 of file Mesh.h.

◆ nodesLeftEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesLeftEdge ( ) const
inline

Nodes along the left edge (x = 0), in order of increasing y.

Returns
List of node numbers.

Definition at line 368 of file Mesh.h.

◆ nodesLeftOpenEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesLeftOpenEdge ( ) const
inline

Nodes along the left edge (x = 0), without the corners (at y = 0 and y = nely * h).

Same as: nodesLeftEdge()[1: -1].

Returns
List of node numbers.

Definition at line 407 of file Mesh.h.

◆ nodesLeftTopCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesLeftTopCorner ( ) const
inline

Alias of nodesTopLeftCorner().

Returns
Node number.

Definition at line 475 of file Mesh.h.

◆ nodesRightBottomCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesRightBottomCorner ( ) const
inline

Alias of nodesBottomRightCorner().

Returns
Node number.

Definition at line 484 of file Mesh.h.

◆ nodesRightEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesRightEdge ( ) const
inline

Nodes along the right edge (x = nelx * h), in order of increasing y.

Returns
List of node numbers.

Definition at line 377 of file Mesh.h.

◆ nodesRightOpenEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesRightOpenEdge ( ) const
inline

Nodes along the right edge (x = nelx * h), without the corners (at y = 0 and y = nely * h).

Same as: nodesRightEdge()[1: -1].

Returns
List of node numbers.

Definition at line 417 of file Mesh.h.

◆ nodesRightTopCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesRightTopCorner ( ) const
inline

Alias of nodesTopRightCorner().

Returns
Node number.

Definition at line 493 of file Mesh.h.

◆ nodesTopEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesTopEdge ( ) const
inline

Nodes along the top edge (y = nely * h), in order of increasing x.

Returns
List of node numbers.

Definition at line 359 of file Mesh.h.

◆ nodesTopLeftCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesTopLeftCorner ( ) const
inline

The top-left corner node (at x = 0, y = nely * h).

Same as nodesTopEdge()[0] and nodesRightEdge()[-1].

Returns
Node number.

Definition at line 447 of file Mesh.h.

◆ nodesTopOpenEdge()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesTopOpenEdge ( ) const
inline

Nodes along the top edge (y = nely * h), without the corners (at x = 0 and x = nelx * h).

Same as: nodesTopEdge()[1: -1].

Returns
List of node numbers.

Definition at line 397 of file Mesh.h.

◆ nodesTopRightCorner()

template<class D >
auto GooseFEM::Mesh::RegularBase2d< D >::nodesTopRightCorner ( ) const
inline

The top-right corner node (at x = nelx * h, y = nely * h).

Same as nodesTopEdge()[-1] and nodesRightEdge()[-1].

Returns
Node number.

Definition at line 457 of file Mesh.h.

Friends And Related Function Documentation

◆ RegularBase< D >

template<class D >
friend class RegularBase< D >
friend

Definition at line 504 of file Mesh.h.


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