Class GooseFEM::Mesh::Vstack#

class Vstack : public GooseFEM::Mesh::Stitch#

Vertically stack meshes.

Public Functions

inline Vstack(bool check_overlap = true, double rtol = 1e-5, double atol = 1e-8)#
Parameters:
  • check_overlap – Check if nodes are overlapping when adding a mesh.

  • rtol – Relative tolerance for position match.

  • atol – Absolute tolerance for position match.

template<class C, class E, class N>
inline 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.

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

Parameters:
  • coor – Nodal coordinates [nnode, ndim].

  • conn – Connectivity [nelem, nne].

  • nodes_bot – Nodes along the bottom edge [n].

  • nodes_top – Nodes along the top edge [n].