FrictionQPotFEM 0.23.3
Loading...
Searching...
No Matches
GooseFEM::Mesh::Vstack Class Reference

Vertically stack meshes. More...

#include <include/GooseFEM/Mesh.h>

Inheritance diagram for GooseFEM::Mesh::Vstack:
Collaboration diagram for GooseFEM::Mesh::Vstack:

Public Member Functions

 Vstack (bool check_overlap=true, double rtol=1e-5, double atol=1e-8)
 
template<class C , class E , class N >
void push_back (const C &coor, const E &conn, const N &nodes_bot, const N &nodes_top)
 Add a mesh to the top of the current stack. More...
 
- Public Member Functions inherited from GooseFEM::Mesh::Stitch
 Stitch (double rtol=1e-5, double atol=1e-8)
 
template<class C , class E >
void push_back (const C &coor, const E &conn)
 Add mesh to be stitched. More...
 
size_t nmesh () const
 Number of sub meshes. More...
 
size_t nelem () const
 Number of elements. More...
 
size_t nnode () const
 Number of nodes. More...
 
size_t nne () const
 Number of nodes-per-element. More...
 
size_t ndim () const
 Number of dimensions. More...
 
const array_type::tensor< double, 2 > & coor () const
 Nodal coordinates [nnode, ndim]. More...
 
const array_type::tensor< size_t, 2 > & conn () const
 Connectivity [nelem, nne]. More...
 
array_type::tensor< size_t, 2 > dofs () const
 DOF numbers for each node (numbered sequentially) [nnode, ndim]. More...
 
std::vector< array_type::tensor< size_t, 1 > > nodemap () const
 Node-map per sub-mesh. More...
 
std::vector< array_type::tensor< size_t, 1 > > elemmap () const
 Element-map per sub-mesh. More...
 
array_type::tensor< size_t, 1 > nodemap (size_t mesh_index) const
 The node numbers in the stitched mesh that are coming from a specific sub-mesh. More...
 
array_type::tensor< size_t, 1 > elemmap (size_t mesh_index) const
 The element numbers in the stitched mesh that are coming from a specific sub-mesh. More...
 
template<class T >
nodeset (const T &set, size_t mesh_index) const
 Convert set of node-numbers for a sub-mesh to the stitched mesh. More...
 
template<class T >
elemset (const T &set, size_t mesh_index) const
 Convert set of element-numbers for a sub-mesh to the stitched mesh. More...
 
template<class T >
nodeset (const std::vector< T > &set) const
 Combine set of node numbers for an original to the final mesh (removes duplicates). More...
 
template<class T >
nodeset (std::initializer_list< T > set) const
 Combine set of node numbers for an original to the final mesh (removes duplicates). More...
 
template<class T >
elemset (const std::vector< T > &set) const
 Combine set of element numbers for an original to the final mesh. More...
 
template<class T >
elemset (std::initializer_list< T > set) const
 Combine set of element numbers for an original to the final mesh. More...
 

Additional Inherited Members

- Protected Attributes inherited from GooseFEM::Mesh::Stitch
array_type::tensor< double, 2 > m_coor
 Nodal coordinates [nnode, ndim]. More...
 
array_type::tensor< size_t, 2 > m_conn
 Connectivity [nelem, nne]. More...
 
std::vector< array_type::tensor< size_t, 1 > > m_map
 See nodemap(size_t) More...
 
std::vector< size_t > m_nel
 Number of elements per sub-mesh. More...
 
std::vector< size_t > m_el_offset
 First element of every sub-mesh. More...
 
double m_rtol
 Relative tolerance to find overlapping nodes. More...
 
double m_atol
 Absolute tolerance to find overlapping nodes. More...
 

Detailed Description

Vertically stack meshes.

Definition at line 2305 of file Mesh.h.

Constructor & Destructor Documentation

◆ Vstack()

GooseFEM::Mesh::Vstack::Vstack ( bool  check_overlap = true,
double  rtol = 1e-5,
double  atol = 1e-8 
)
inline
Parameters
check_overlapCheck if nodes are overlapping when adding a mesh.
rtolRelative tolerance for position match.
atolAbsolute tolerance for position match.

Definition at line 2312 of file Mesh.h.

Member Function Documentation

◆ push_back()

template<class C , class E , class N >
void GooseFEM::Mesh::Vstack::push_back ( const C &  coor,
const E &  conn,
const N &  nodes_bot,
const N &  nodes_top 
)
inline

Add a mesh to the top of the current stack.

Each time the current nodes_bot are stitched with the then highest nodes_top.

Parameters
coorNodal coordinates [nnode, ndim].
connConnectivity [nelem, nne].
nodes_botNodes along the bottom edge [n].
nodes_topNodes along the top edge [n].

Definition at line 2329 of file Mesh.h.


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