Example demonstrating entity sets and tag operations. More...
#include "moab/Core.hpp"#include "moab/Range.hpp"#include "MBTagConventions.hpp"#include "moab/CN.hpp"#include <iostream>#include <memory>#include <vector>#include <string>
Include dependency graph for SetsNTags.cpp:Go to the source code of this file.
Namespaces | |
| anonymous_namespace{SetsNTags.cpp} | |
Functions | |
| void | anonymous_namespace{SetsNTags.cpp}::print_usage (const char *program_name) |
| int | main (int argc, char **argv) |
Variables | |
| const char *const | anonymous_namespace{SetsNTags.cpp}::DEFAULT_MESH_FILE = "hex01.vtk" |
| const std::vector< const char * > | anonymous_namespace{SetsNTags.cpp}::TAG_NAMES = { MATERIAL_SET_TAG_NAME, DIRICHLET_SET_TAG_NAME, NEUMANN_SET_TAG_NAME } |
Example demonstrating entity sets and tag operations.
This example shows how to:
The program reads a mesh file and identifies material sets, Dirichlet boundary condition sets, and Neumann boundary condition sets, then reports their contents.
| [in] | argc | Number of command line arguments |
| [in] | argv | Command line arguments array |
| [in] | argv[1] | Optional mesh file path (default: hex01.vtk) |
Definition in file SetsNTags.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 69 of file SetsNTags.cpp.
References moab::Range::clear(), anonymous_namespace{SetsNTags.cpp}::DEFAULT_MESH_FILE, MB_CHK_SET_ERR, MB_TYPE_INTEGER, MBENTITYSET, moab::Range::print(), anonymous_namespace{SetsNTags.cpp}::print_usage(), moab::Range::size(), and anonymous_namespace{SetsNTags.cpp}::TAG_NAMES.