#include <iostream>
#include <moab/Core.hpp>
#include "moab/ProgOptions.hpp"
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 11 of file honodes.cpp.
18 LONG_DESC <<
"mbhonodes tool reads a mesh file and adds higher order nodes." << std::endl
19 <<
"Options to add higher order nodes on all volume or face or edge elements of the mesh "
22 <<
"Example1: Use the following command to create hex mid volume nodes, in.h5m is a hex8 "
25 <<
" -> mbhonodes -i in.h5m -o o.h5m -f -e" << std::endl
26 <<
"Example2: Use the following command to create hex27 mesh o2.h5m, in.h5m is a hex8 mesh" << std::endl
27 <<
" -> mbhonodes -i in.h5m -o o2.h5m" << std::endl;
30 string inFileName =
"";
31 opts.addRequiredArg<
string >(
"inFile,i",
"Specify the output file name string", &inFileName );
33 string outFileName =
"outfile.h5m";
35 string outFileName =
"outfile.vtk";
37 opts.addOpt<
string >(
"outFile,o",
"Specify the output file name string (default outfile.h5m)", &outFileName );
38 opts.addOpt<
void >(
"edge,e",
"DO NOT create mid nodes along edge (default=true)", &
edge );
39 opts.addOpt<
void >(
"face,f",
"DO NOT create face mid nodes (default=true)", &
face );
40 opts.addOpt<
void >(
"volume,v",
"DO NOT create volume mid nodes (default=true)", &volume );
42 opts.parseCommandLine( argc, argv );
46 std::cout <<
"Read input mesh file: " << inFileName << std::endl;
55 "Failed to convert to higher dimension entities" );
58 std::cout <<
"Wrote mesh file: " << outFileName << std::endl;
References moab::Core::add_entities(), ProgOptions::addOpt(), ProgOptions::addRequiredArg(), BRIEF_DESC, moab::Core::convert_entities(), moab::Core::create_meshset(), moab::Core::get_entities_by_type(), moab::Core::load_mesh(), LONG_DESC, mb, MB_CHK_SET_ERR, MBHEX, MESHSET_SET, ProgOptions::parseCommandLine(), and moab::Core::write_mesh().
◆ BRIEF_DESC
Initial value:= "Add higher order nodes to existing mesh, eg. hex8 to hex27 (default). "
"Use available options as desired."
Definition at line 7 of file honodes.cpp.
Referenced by main().
◆ LONG_DESC
| std::ostringstream LONG_DESC |