Output Exodus File for VERDE. More...
#include <WriteGMV.hpp>
Public Member Functions | |
WriteGMV (Interface *impl) | |
Constructor. More... | |
virtual | ~WriteGMV () |
Destructor. More... | |
ErrorCode | write_file (const char *filename, const bool overwite, const FileOptions &opts, const EntityHandle *output_sets, const int num_output_sets, const std::vector< std::string > &qa_list, const Tag *tag_list=NULL, int num_tags=0, int requested_dimension=3) |
Export mesh to a file. More... | |
ErrorCode | write_file (const char *file_name, const EntityHandle output_set, const int user_dimension=3, const bool mesh=true, const bool poly_mesh=true) |
writes out a mesh file More... | |
Public Member Functions inherited from moab::WriterIface | |
virtual | ~WriterIface () |
Static Public Member Functions | |
static WriterIface * | factory (Interface *) |
Private Member Functions | |
ErrorCode | local_write_mesh (const char *file_name, const EntityHandle output_set, const int user_dimension, const bool mesh, const bool poly_mesh) |
Private Attributes | |
Interface * | mbImpl |
interface instance More... | |
WriteUtilIface * | mWriteIface |
Tag | mMaterialSetTag |
Cached tags for reading. Note that all these tags are defined when the core is initialized. More... | |
Tag | mDirichletSetTag |
Tag | mNeumannSetTag |
Tag | mHasMidNodesTag |
Tag | mGeomDimensionTag |
Tag | mGlobalIdTag |
Static Private Attributes | |
static const char * | gmvTypeNames [MBMAXTYPE] = { "", "line", "tri", "quad", "", "tet", "pyramid", "prism", "", "hex", "", "" } |
Output Exodus File for VERDE.
Definition at line 41 of file WriteGMV.hpp.
moab::WriteGMV::WriteGMV | ( | Interface * | impl | ) |
Constructor.
get and cache predefined tag handles
get and cache predefined tag handles
Definition at line 45 of file WriteGMV.cpp.
References DIRICHLET_SET_TAG_NAME, moab::Interface::globalId_tag(), HAS_MID_NODES_TAG_NAME, MATERIAL_SET_TAG_NAME, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, mDirichletSetTag, mGeomDimensionTag, mGlobalIdTag, mHasMidNodesTag, mMaterialSetTag, mNeumannSetTag, mWriteIface, NEUMANN_SET_TAG_NAME, moab::Interface::query_interface(), and moab::Interface::tag_get_handle().
Referenced by factory().
|
virtual |
Destructor.
Definition at line 79 of file WriteGMV.cpp.
References mbImpl, mWriteIface, and moab::Interface::release_interface().
|
static |
Definition at line 40 of file WriteGMV.cpp.
References iface, and WriteGMV().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
|
private |
Definition at line 136 of file WriteGMV.cpp.
References moab::WriteUtilIface::assign_ids(), moab::Range::begin(), moab::Range::clear(), moab::CREATE_HANDLE(), moab::Range::end(), ErrorCode, moab::GeomUtil::first(), moab::Interface::get_adjacencies(), moab::Interface::get_connectivity(), moab::WriteUtilIface::get_element_connect(), moab::Interface::get_entities_by_type(), moab::WriteUtilIface::get_node_coords(), gmvTypeNames, moab::Range::lower_bound(), MB_START_ID, MB_SUCCESS, mbImpl, MBPOLYGON, MBPOLYHEDRON, mGlobalIdTag, mWriteIface, moab::Range::rbegin(), moab::Range::size(), moab::Interface::tag_get_data(), moab::CN::TypeDimensionMap, moab::Interface::UNION, and moab::CN::VerticesPerEntity().
Referenced by write_file().
ErrorCode moab::WriteGMV::write_file | ( | const char * | file_name, |
const EntityHandle | output_set, | ||
const int | user_dimension = 3 , |
||
const bool | mesh = true , |
||
const bool | poly_mesh = true |
||
) |
writes out a mesh file
Definition at line 84 of file WriteGMV.cpp.
References ErrorCode, local_write_mesh(), and MB_SUCCESS.
|
virtual |
Export mesh to a file.
Method all writers must provide to export a mesh.
file_name | The name of the file to create. |
overwrite | If false, reader should fail if the file already exists. |
meshset_list | A list of meshsets to export, or NULL if the whole mesh is to be exported. |
num_sets | The length of meshset_list or zero if the whole mesh is to be exported. |
qa_records | File history metadata |
tag_list | Array of handles for tags to write. If null, write all tags. If non-NULL but num_tags is zero, write no tags. |
requseted_output_dimension | The geometric dimension of the output mesh (coord values per vertex.) If zero, the dimension of the mesh as returned from Interface should be used. |
Implements moab::WriterIface.
Definition at line 111 of file WriteGMV.cpp.
References moab::Interface::get_dimension(), and mbImpl.
|
staticprivate |
Definition at line 85 of file WriteGMV.hpp.
Referenced by local_write_mesh().
|
private |
interface instance
Definition at line 73 of file WriteGMV.hpp.
Referenced by local_write_mesh(), write_file(), and ~WriteGMV().
|
private |
Definition at line 79 of file WriteGMV.hpp.
Referenced by WriteGMV().
|
private |
Definition at line 82 of file WriteGMV.hpp.
Referenced by WriteGMV().
|
private |
Definition at line 83 of file WriteGMV.hpp.
Referenced by local_write_mesh(), and WriteGMV().
|
private |
Definition at line 81 of file WriteGMV.hpp.
Referenced by WriteGMV().
|
private |
Cached tags for reading. Note that all these tags are defined when the core is initialized.
Definition at line 78 of file WriteGMV.hpp.
Referenced by WriteGMV().
|
private |
Definition at line 80 of file WriteGMV.hpp.
Referenced by WriteGMV().
|
private |
Definition at line 74 of file WriteGMV.hpp.
Referenced by local_write_mesh(), WriteGMV(), and ~WriteGMV().