Namespace GooseFEM::Mesh::Hex8#

namespace Hex8

Simple meshes of 8-noded hexahedral elements in 3d (ElementType::Hex8).

class FineLayer : public GooseFEM::Mesh::RegularBase3d<FineLayer>
#include <GooseFEM/MeshHex8.h>

Mesh with fine middle layer, and coarser elements towards the top and bottom.

Public Functions

inline FineLayer(size_t nelx, size_t nely, size_t nelz, double h = 1.0, size_t nfine = 1)

Constructor.

Parameters
  • nelx – Number of elements (along the middle layer) in horizontal (x) direction.

  • nely – Approximate equivalent number of elements in vertical (y) direction.

  • nelz – Number of elements (along the middle layer) in depth (z) direction.

  • h – Edge size (width == height == depth) of elements along the weak layer.

  • nfine – Extra number of fine layers around the middle layer. By default the element size is kept smaller than the distance to the middle layer.

inline array_type::tensor<size_t, 1> elementsMiddleLayer() const

Elements in the middle (fine) layer.

Returns

List of element numbers (copy, involves computation).

class Regular : public GooseFEM::Mesh::RegularBase3d<Regular>
#include <GooseFEM/MeshHex8.h>

Regular mesh: equi-sized elements.

Public Functions

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

Constructor.

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

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

  • nelz – Number of elements in vertical (z) direction.

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