beginner tutorial, example 1: Demonstrates constructing/saving a simple 2x2x2 hex mesh More...
Go to the source code of this file.
Functions | |
int | main () |
beginner tutorial, example 1: Demonstrates constructing/saving a simple 2x2x2 hex mesh
This example creates a 2x2x2 mesh (uniform grid) and writes it out to a VTK file and an H5M file. Each cell is of size 1x1x1 and is axis aligned. This example demonstrates how to manually create a mesh using the unstructured mesh interface. The mesh is then written out to file.
Definition in file mbex1.cpp.
int main | ( | ) |
Definition at line 25 of file mbex1.cpp.
References moab::Core::create_element(), moab::Core::create_vertices(), ErrorCode, moab::Range::insert(), MB_CHK_SET_ERR, MBHEX, and moab::Core::write_file().