Export CGNS files. More...
#include <WriteCGNS.hpp>
Classes | |
class | SetStruct |
Public Member Functions | |
WriteCGNS (Interface *impl) | |
Constructor. More... | |
virtual | ~WriteCGNS () |
Destructor. More... | |
ErrorCode | write_file (const char *file_name, const bool overwrite, const FileOptions &opts, const EntityHandle *output_list, const int num_sets, const std::vector< std::string > &qa_list, const Tag *tag_list=NULL, int num_tags=0, int export_dimension=3) |
writes out a file More... | |
ErrorCode | get_vertex_entities (cgsize_t &VrtSize, std::vector< moab::EntityHandle > &Nodes) |
ErrorCode | get_edge_entities (cgsize_t &EdgeSize, std::vector< moab::EntityHandle > &Edges) |
ErrorCode | get_face_entities (cgsize_t &FaceSize, std::vector< moab::EntityHandle > &Faces) |
ErrorCode | get_cell_entities (cgsize_t &CellSize, std::vector< moab::EntityHandle > &Cells) |
ErrorCode | write_coord_cgns (std::vector< moab::EntityHandle > &nodes) |
ErrorCode | set_tag_values (std::vector< moab::Tag > &TagHandles, std::vector< moab::EntityHandle > &Edges, std::vector< moab::EntityHandle > &Faces, std::vector< moab::EntityHandle > &Cells, std::vector< WriteCGNS::SetStruct > &Sets) |
ErrorCode | get_set_entities (int i, std::vector< moab::Tag > &TagHandles, std::vector< WriteCGNS::SetStruct > &Sets) |
ErrorCode | get_cgns_type (int i, std::vector< WriteCGNS::SetStruct > &Sets) |
ErrorCode | get_conn_table (std::vector< moab::EntityHandle > &Elements, std::vector< int > &Begin, std::vector< int > &End, std::vector< moab::Tag > &TagHandles, std::vector< WriteCGNS::SetStruct > &Sets, std::vector< std::vector< cgsize_t > > &ConnTable) |
int | moab_cgns_conv (const EntityHandle handle) |
Public Member Functions inherited from moab::WriterIface | |
virtual | ~WriterIface () |
Static Public Member Functions | |
static WriterIface * | factory (Interface *) |
factory method More... | |
Private Attributes | |
Interface * | mbImpl |
WriteUtilIface * | mWriteIface |
const char * | fileName |
int | IndexFile |
const char * | BaseName |
int | IndexBase |
const char * | ZoneName |
int | IndexZone |
int | IndexSection |
int | IndexCoord [3] |
int | celldim |
int | physdim |
cgsize_t | isize [3] |
std::vector< moab::EntityHandle > | Nodes |
std::vector< moab::EntityHandle > | Edges |
std::vector< moab::EntityHandle > | Faces |
std::vector< moab::EntityHandle > | Cells |
cgsize_t | VrtSize |
cgsize_t | EdgeSize |
cgsize_t | FaceSize |
cgsize_t | CellSize |
Export CGNS files.
Definition at line 46 of file WriteCGNS.hpp.
moab::WriteCGNS::WriteCGNS | ( | Interface * | impl | ) |
Constructor.
Definition at line 25 of file WriteCGNS.cpp.
References IndexCoord, isize, mWriteIface, and moab::Interface::query_interface().
Referenced by factory().
|
virtual |
Destructor.
Definition at line 35 of file WriteCGNS.cpp.
References mbImpl, mWriteIface, and moab::Interface::release_interface().
|
static |
factory method
Definition at line 20 of file WriteCGNS.cpp.
References iface, and WriteCGNS().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
ErrorCode moab::WriteCGNS::get_cell_entities | ( | cgsize_t & | CellSize, |
std::vector< moab::EntityHandle > & | Cells | ||
) |
Definition at line 337 of file WriteCGNS.cpp.
References celldim, ErrorCode, moab::Interface::get_entities_by_dimension(), mbImpl, and physdim.
Referenced by write_file().
ErrorCode moab::WriteCGNS::get_cgns_type | ( | int | i, |
std::vector< WriteCGNS::SetStruct > & | Sets | ||
) |
Definition at line 637 of file WriteCGNS.cpp.
References MB_SUCCESS.
Referenced by set_tag_values().
ErrorCode moab::WriteCGNS::get_conn_table | ( | std::vector< moab::EntityHandle > & | Elements, |
std::vector< int > & | Begin, | ||
std::vector< int > & | End, | ||
std::vector< moab::Tag > & | TagHandles, | ||
std::vector< WriteCGNS::SetStruct > & | Sets, | ||
std::vector< std::vector< cgsize_t > > & | ConnTable | ||
) |
Definition at line 715 of file WriteCGNS.cpp.
References cgsize_t, ErrorCode, moab::Interface::get_connectivity(), MB_SUCCESS, mbImpl, moab_cgns_conv(), and moab::Interface::tag_get_data().
Referenced by write_file().
ErrorCode moab::WriteCGNS::get_edge_entities | ( | cgsize_t & | EdgeSize, |
std::vector< moab::EntityHandle > & | Edges | ||
) |
Definition at line 301 of file WriteCGNS.cpp.
References celldim, ErrorCode, moab::Interface::get_entities_by_dimension(), mbImpl, and physdim.
Referenced by write_file().
ErrorCode moab::WriteCGNS::get_face_entities | ( | cgsize_t & | FaceSize, |
std::vector< moab::EntityHandle > & | Faces | ||
) |
Definition at line 319 of file WriteCGNS.cpp.
References celldim, ErrorCode, moab::Interface::get_entities_by_dimension(), mbImpl, and physdim.
Referenced by write_file().
ErrorCode moab::WriteCGNS::get_set_entities | ( | int | i, |
std::vector< moab::Tag > & | TagHandles, | ||
std::vector< WriteCGNS::SetStruct > & | Sets | ||
) |
Definition at line 532 of file WriteCGNS.cpp.
References ErrorCode, moab::Interface::get_number_entities_by_type_and_tag(), MB_SUCCESS, MBEDGE, MBHEX, mbImpl, MBPRISM, MBPYRAMID, MBQUAD, MBTET, and MBTRI.
Referenced by set_tag_values().
ErrorCode moab::WriteCGNS::get_vertex_entities | ( | cgsize_t & | VrtSize, |
std::vector< moab::EntityHandle > & | Nodes | ||
) |
Definition at line 278 of file WriteCGNS.cpp.
References celldim, ErrorCode, moab::Interface::get_entities_by_dimension(), mbImpl, Nodes, and physdim.
Referenced by write_file().
int moab::WriteCGNS::moab_cgns_conv | ( | const EntityHandle | handle | ) |
< Mesh Edge
< Triangular element (including shells)
< Quadrilateral element (including shells)
< Tetrahedral element
< Pyramid element
< Wedge element
< Hexahedral element
Definition at line 783 of file WriteCGNS.cpp.
References MBEDGE, MBHEX, mbImpl, MBPRISM, MBPYRAMID, MBQUAD, MBTET, MBTRI, and moab::Interface::type_from_handle().
Referenced by get_conn_table().
ErrorCode moab::WriteCGNS::set_tag_values | ( | std::vector< moab::Tag > & | TagHandles, |
std::vector< moab::EntityHandle > & | Edges, | ||
std::vector< moab::EntityHandle > & | Faces, | ||
std::vector< moab::EntityHandle > & | Cells, | ||
std::vector< WriteCGNS::SetStruct > & | Sets | ||
) |
Definition at line 438 of file WriteCGNS.cpp.
References Cells, ErrorCode, Faces, get_cgns_type(), get_set_entities(), MB_SUCCESS, mbImpl, physdim, moab::Interface::tag_get_name(), and moab::Interface::tag_set_data().
Referenced by write_file().
ErrorCode moab::WriteCGNS::write_coord_cgns | ( | std::vector< moab::EntityHandle > & | nodes | ) |
Definition at line 354 of file WriteCGNS.cpp.
References ErrorCode, moab::Interface::get_coords(), IndexBase, IndexCoord, IndexFile, IndexZone, MB_SUCCESS, and mbImpl.
Referenced by write_file().
|
virtual |
writes out a file
Implements moab::WriterIface.
Definition at line 41 of file WriteCGNS.cpp.
References BaseName, celldim, Cells, CellSize, cgsize_t, moab::WriteUtilIface::check_doesnt_exist(), Edges, EdgeSize, ErrorCode, Faces, FaceSize, fileName, get_cell_entities(), get_conn_table(), get_edge_entities(), get_face_entities(), get_vertex_entities(), IndexBase, IndexFile, IndexSection, IndexZone, isize, MB_SUCCESS, mbImpl, mWriteIface, Nodes, physdim, set_tag_values(), moab::Interface::tag_get_tags(), VrtSize, write_coord_cgns(), and ZoneName.
|
private |
Definition at line 139 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 153 of file WriteCGNS.hpp.
Referenced by get_cell_entities(), get_edge_entities(), get_face_entities(), get_vertex_entities(), and write_file().
|
private |
Definition at line 161 of file WriteCGNS.hpp.
Referenced by set_tag_values(), and write_file().
|
private |
Definition at line 167 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 159 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 165 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 160 of file WriteCGNS.hpp.
Referenced by set_tag_values(), and write_file().
|
private |
Definition at line 166 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 135 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 140 of file WriteCGNS.hpp.
Referenced by write_coord_cgns(), and write_file().
|
private |
Definition at line 150 of file WriteCGNS.hpp.
Referenced by write_coord_cgns(), and WriteCGNS().
|
private |
Definition at line 136 of file WriteCGNS.hpp.
Referenced by write_coord_cgns(), and write_file().
|
private |
Definition at line 147 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 144 of file WriteCGNS.hpp.
Referenced by write_coord_cgns(), and write_file().
|
private |
Definition at line 155 of file WriteCGNS.hpp.
Referenced by write_file(), and WriteCGNS().
|
private |
Definition at line 131 of file WriteCGNS.hpp.
Referenced by get_cell_entities(), get_conn_table(), get_edge_entities(), get_face_entities(), get_set_entities(), get_vertex_entities(), moab_cgns_conv(), set_tag_values(), write_coord_cgns(), write_file(), and ~WriteCGNS().
|
private |
Definition at line 132 of file WriteCGNS.hpp.
Referenced by write_file(), WriteCGNS(), and ~WriteCGNS().
|
private |
Definition at line 158 of file WriteCGNS.hpp.
Referenced by get_vertex_entities(), and write_file().
|
private |
Definition at line 154 of file WriteCGNS.hpp.
Referenced by get_cell_entities(), get_edge_entities(), get_face_entities(), get_vertex_entities(), set_tag_values(), and write_file().
|
private |
Definition at line 164 of file WriteCGNS.hpp.
Referenced by write_file().
|
private |
Definition at line 143 of file WriteCGNS.hpp.
Referenced by write_file().