Class GooseFEM::Mesh::Quad4::Regular#

class Regular : public GooseFEM::Mesh::RegularBase2d<Regular>#

Regular mesh: equi-sized elements.

Public Functions

inline Regular(size_t nelx, size_t nely, double h = 1.0)#

Constructor.

Parameters
  • nelx – Number of elements in horizontal (x) direction.

  • nely – Number of elements in vertical (y) direction.

  • h – Edge size (width == height).

inline array_type::tensor<size_t, 2> elementgrid() const#

Element numbers as ‘matrix’.

Returns

[nely, nelx].