beginner tutorial, example 3: Demonstrates constructing/saving a simple 2x2x2 hex mesh using the structured mesh interface More...
Go to the source code of this file.
Functions | |
int | main () |
beginner tutorial, example 3: Demonstrates constructing/saving a simple 2x2x2 hex mesh using the structured mesh interface
In this example, we create a 2x2x2 mesh that is identical to the previous example. However, in this case we will use the structured mesh interface since the mesh we created is logically structured. There are many advantages to using the structured mesh interface...such as memory savings, speed, ease-of-use...
In the previous example, we had to create 27 vertexes manually, define the connectivity, then manually create 8 hexahedrons. With the structured mesh interface, we just have to create the 27 vertexes then tell MOAB that these define a 2x2x2 structured mesh and everything else is taken care of for us!
Definition in file mbex3.cpp.
int main | ( | ) |
Definition at line 35 of file mbex3.cpp.
References moab::ScdInterface::construct_box(), ErrorCode, moab::ScdBox::get_element(), moab::ScdBox::get_vertex(), MB_CHK_SET_ERR, moab::Interface::query_interface(), and moab::Core::write_file().