GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
GooseFEM::Mesh::RegularBase2d< D > Class Template Reference

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

#include <GooseFEM/Mesh.h>

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

Public Types

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

Public Member Functions

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

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 Symbol 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: