Export CGNS files. More...
#include <ReadCGNS.hpp>
Public Member Functions | |
ErrorCode | load_file (const char *file_name, const EntityHandle *file_set, const FileOptions &opts, const SubsetList *subset_list=0, const Tag *file_id_tag=0) |
Load mesh from a file. More... | |
ErrorCode | read_tag_values (const char *file_name, const char *tag_name, const FileOptions &opts, std::vector< int > &tag_values_out, const SubsetList *subset_list=0) |
Read tag values from a file. More... | |
ReadCGNS (Interface *impl=NULL) | |
Constructor. More... | |
virtual | ~ReadCGNS () |
Destructor. More... | |
Public Member Functions inherited from moab::ReaderIface | |
virtual | ~ReaderIface () |
Static Public Member Functions | |
static ReaderIface * | factory (Interface *) |
factory method More... | |
Private Member Functions | |
ErrorCode | create_elements (char *sectionName, const Tag *file_id_tag, const EntityType &ent_type, const int &verts_per_elem, long §ion_offset, int elems_count, const std::vector< cgsize_t > &elemsConn) |
ErrorCode | create_sets (char *sectionName, const Tag *file_id_tag, EntityType element_type, const Range &elements, const std::vector< int > &set_ids, int set_type) |
ErrorCode | create_geometric_topology () |
ErrorCode | process_options (const FileOptions &opts) |
Process options passed into the reader. More... | |
Private Attributes | |
const char * | fileName |
short | mesh_dim |
ReadUtilIface * | readMeshIface |
Interface * | mbImpl |
interface instance More... | |
Tag | globalId |
Tag | boundary |
Range | geomSets |
Export CGNS files.
Definition at line 20 of file ReadCGNS.hpp.
ReadCGNS::ReadCGNS | ( | Interface * | impl = NULL | ) |
Constructor.
Definition at line 34 of file ReadCGNS.cpp.
References mbImpl, moab::Interface::query_interface(), and readMeshIface.
Referenced by factory().
|
virtual |
Destructor.
Definition at line 39 of file ReadCGNS.cpp.
References mbImpl, readMeshIface, and moab::Interface::release_interface().
|
private |
Definition at line 471 of file ReadCGNS.cpp.
References cgsize_t, create_sets(), ErrorCode, fileName, moab::ReadUtilIface::get_element_connect(), MB_CHK_SET_ERR, MB_SUCCESS, readMeshIface, and moab::ReadUtilIface::update_adjacencies().
Referenced by load_file().
|
private |
|
private |
Definition at line 525 of file ReadCGNS.cpp.
References moab::Interface::add_entities(), moab::Interface::create_meshset(), ErrorCode, fileName, globalId, MB_CHK_SET_ERR, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, mbImpl, MESHSET_SET, moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by create_elements().
|
static |
factory method
Definition at line 29 of file ReadCGNS.cpp.
References iface, and ReadCGNS().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
|
virtual |
Load mesh from a file.
Method all readers must provide to import a mesh.
file_name | The file to read. |
file_set | Optional pointer to entity set representing file. If this is not NULL, reader may optionally tag the pointed-to set with format-specific meta-data. |
subset_list | An optional struct pointer specifying the tags identifying entity sets to be read. |
file_id_tag | If specified, reader should store for each entity it reads, a unique integer ID for this tag. |
Implements moab::ReaderIface.
Definition at line 57 of file ReadCGNS.cpp.
References cgsize_t, moab::Range::clear(), create_elements(), ErrorCode, fileName, geomSets, moab::ReadUtilIface::get_node_coords(), globalId, moab::Interface::globalId_tag(), MATERIAL_SET_TAG_NAME, MB_CHK_SET_ERR, MB_FILE_DOES_NOT_EXIST, MB_INDEX_OUT_OF_RANGE, MB_NOT_IMPLEMENTED, MB_SET_ERR, MB_START_ID, MB_SUCCESS, MB_UNSUPPORTED_OPERATION, MBEDGE, MBHEX, mbImpl, MBMAXTYPE, MBPRISM, MBPYRAMID, MBQUAD, MBTET, MBTRI, mesh_dim, moab::ReaderIface::IDTag::num_tag_values, process_options(), readMeshIface, size, moab::ReaderIface::SubsetList::tag_list, moab::ReaderIface::SubsetList::tag_list_length, moab::ReaderIface::IDTag::tag_name, moab::Interface::tag_set_data(), and moab::ReaderIface::IDTag::tag_values.
|
private |
Process options passed into the reader.
opts | Options passed into this read |
Definition at line 565 of file ReadCGNS.cpp.
References moab::FileOptions::mark_all_seen(), and MB_SUCCESS.
Referenced by load_file().
|
virtual |
Read tag values from a file.
Read the list if all integer tag values from the file for a tag that is a single integer value per entity.
file_name | The file to read. |
tag_name | The tag for which to read values |
tag_values_out | Output: The list of tag values. |
subset_list | An array of tag name and value sets specifying the subset of the file to read. If multiple tags are specified, the sets that match all tags (intersection) should be read. |
subset_list_length | The length of the 'subset_list' array. |
Implements moab::ReaderIface.
Definition at line 48 of file ReadCGNS.cpp.
References MB_NOT_IMPLEMENTED.
|
private |
Definition at line 78 of file ReadCGNS.hpp.
|
private |
Definition at line 68 of file ReadCGNS.hpp.
Referenced by create_elements(), create_sets(), and load_file().
|
private |
Definition at line 79 of file ReadCGNS.hpp.
Referenced by load_file().
|
private |
Definition at line 77 of file ReadCGNS.hpp.
Referenced by create_sets(), and load_file().
|
private |
interface instance
Definition at line 75 of file ReadCGNS.hpp.
Referenced by create_sets(), load_file(), ReadCGNS(), and ~ReadCGNS().
|
private |
Definition at line 70 of file ReadCGNS.hpp.
Referenced by load_file().
|
private |
Definition at line 72 of file ReadCGNS.hpp.
Referenced by create_elements(), load_file(), ReadCGNS(), and ~ReadCGNS().