WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::mesh::block_mesh Class Reference

Generates axis aligned uniform unstructured block meshes including a NumLayers padding of boundary ghost layers. More...

#include <block_mesh.h>

Inheritance diagram for wxm::mesh::block_mesh:
wxm::mesh::mesh

Detailed Description

Generates axis aligned uniform unstructured block meshes including a NumLayers padding of boundary ghost layers.

Corner/edge boundary ghost layer elements belong to the layer with the lowest dimension.

Current limitations:

  • Can only generate 1D or 2D block meshes
  • In order to use periodic BC's with 2D meshes, Genlayers must be 0 and all walls must be periodic.
Generated regions, nodesets, and boundary ghost layers

for a 2D mesh."

Parameters
Kindblock
Bounds2*N min/max pairs of the domain, e.g. [xmin, xmax, ymin, ymax, ...]
NumCellsN-dimension list of the number of cells in the domain, e.g. [NumX, NumY, ...]
NodeSets2*N dimension list of strings. Names for the node sets for each of the domain faces, e.g. [xmin wall, xmax wall, ymin wall, ymax wall, ...]. At the corners
ElementSets2*N dimension list of strings. Names for the boundary ghost layers. Note: these must begin with BC_ for each of the domain faces, e.g. [xmin wall, xmax wall, ymin wall, ymax wall, ...]. By default lower dimensions own shared elements, e.g. x/y faces are owned by the x walls, and x/y/z corners are owned by the x walls. If GenLayers is 0 this field is ignored.
GenLayersHow many surrounding layers to generate. Default is to use 0.
See also
mesh

Public Member Functions

 block_mesh ()
 
- Public Member Functions inherited from wxm::mesh::mesh
 mesh ()
 
virtual ~mesh ()
 
void setup (const WxCryptSet &wxc, WmDomain &domain)
 Setup the mesh.
 

Protected Member Functions

virtual void setup_impl (const WxCryptSet &wxc, UCDomain::periodicBoundaryList_t &pBL, UCDomain &d, WmDomain &domain)
 Subclass should implement this to properly setup the mesh.
 
virtual void setup_impl (const WxCryptSet &wxc, UCDomain::periodicBoundaryList_t &pBL, UCDomain &d, WmDomain &domain)=0
 Subclass should implement this to properly setup the mesh.
 

Protected Attributes

std::string _block_type
 
- Protected Attributes inherited from wxm::mesh::mesh
int num_layers
 Number of ghost layers.
 
std::string output_mesh_prefix
 Prefix to use for handling restart meshes.
 

Constructor & Destructor Documentation

◆ block_mesh()

wxm::mesh::block_mesh::block_mesh ( )

Member Function Documentation

◆ setup_impl()

virtual void wxm::mesh::block_mesh::setup_impl ( const WxCryptSet wxc,
UCDomain::periodicBoundaryList_t &  pBL,
UCDomain &  d,
WmDomain domain 
)
protectedvirtual

Subclass should implement this to properly setup the mesh.

Parameters
wxcinput crypt set
pBLlist of periodic boundary pairs
UCDomainunstructured converter domain to read data into

Implements wxm::mesh::mesh.

Member Data Documentation

◆ _block_type

std::string wxm::mesh::block_mesh::_block_type
protected

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