#include <Tqdcfr.hpp>
Classes | |
struct | AcisRecord |
class | BlockHeader |
class | FEModelHeader |
class | FileTOC |
class | GeomHeader |
class | GroupHeader |
class | MetaDataContainer |
class | ModelEntry |
class | NodesetHeader |
class | SidesetHeader |
Public Types | |
enum | { aBODY , LUMP , SHELL , FACE , LOOP , COEDGE , aEDGE , aVERTEX , ATTRIB , UNKNOWN } |
enum | { mesh , acist , acisb , facet , exodusmesh } |
Public Member Functions | |
void | FSEEK (unsigned offset) |
void | FREADI (unsigned num_ents) |
void | FREADD (unsigned num_ents) |
void | FREADC (unsigned num_ents) |
void | FREADIA (unsigned num_ents, unsigned int *array) |
void | FREADDA (unsigned num_ents, double *array) |
void | FREADCA (unsigned num_ents, char *arrat) |
void | CONVERT_TO_INTS (unsigned int num_ents) |
~Tqdcfr () | |
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... | |
ErrorCode | read_nodeset (const unsigned int nsindex, ModelEntry *model, NodesetHeader *nodeseth) |
ErrorCode | read_sideset (const unsigned int ssindex, const double data_version, ModelEntry *model, SidesetHeader *sideseth) |
ErrorCode | read_block (const unsigned int blindex, const double data_version, ModelEntry *model, BlockHeader *blockh) |
ErrorCode | read_group (const unsigned int gr_index, ModelEntry *model, GroupHeader *grouph) |
ErrorCode | read_nodes (const unsigned int gindex, ModelEntry *model, GeomHeader *entity) |
ErrorCode | read_elements (ModelEntry *model, GeomHeader *entity) |
ErrorCode | read_file_header () |
ErrorCode | read_model_entries () |
int | find_model (const unsigned int model_type) |
ErrorCode | read_meta_data (const unsigned int metadata_offset, MetaDataContainer &mc) |
ErrorCode | read_md_string (std::string &name) |
EntityType | type_from_cub_type (const unsigned int cub_type, const unsigned int nodes_per_elem) |
void | check_contiguous (const unsigned int num_ents, int &contig, unsigned int &min_id, unsigned int &max_id) |
Tqdcfr (Interface *impl) | |
ErrorCode | create_set (EntityHandle &h, unsigned int flags=MESHSET_SET) |
Public Member Functions inherited from moab::ReaderIface | |
virtual | ~ReaderIface () |
Static Public Member Functions | |
static ReaderIface * | factory (Interface *) |
Public Attributes | |
ReadUtilIface * | readUtilIface |
Interface * | mdbImpl |
FILE * | cubFile |
FileTOC | fileTOC |
std::vector< ModelEntry > | modelEntries |
MetaDataContainer | modelMetaData |
long | currVHandleOffset |
Range | beforeEnts |
long | currElementIdOffset [MBMAXTYPE] |
Tag | globalIdTag |
Tag | cubIdTag |
Tag | geomTag |
Tag | uniqueIdTag |
Tag | blockTag |
Tag | nsTag |
Tag | ssTag |
Tag | attribVectorTag |
Tag | entityNameTag |
Tag | categoryTag |
Tag | hasMidNodesTag |
std::map< int, EntityHandle > | uidSetMap |
std::map< int, EntityHandle > | gidSetMap [6] |
bool | swapForEndianness |
std::vector< unsigned int > | uint_buf |
int * | int_buf |
std::vector< double > | dbl_buf |
std::vector< char > | char_buf |
Private Types | |
enum | { GROUP = 0 , BODY , VOLUME , SURFACE , CURVE , VERTEX , HEX , TET , PYRAMID , QUAD , TRI , EDGE , NODE } |
enum | { SPHERE_EXO = 0 , BAR , BAR2 , BAR3 , BEAM , BEAM2 , BEAM3 , TRUSS , TRUSS2 , TRUSS3 , SPRING , TRIthree , TRI3 , TRI6 , TRI7 , TRISHELL , TRISHELL3 , TRISHELL6 , TRISHELL7 , SHEL , SHELL4 , SHELL8 , SHELL9 , QUADfour , QUAD4 , QUAD5 , QUAD8 , QUAD9 , TETRAfour , TETRA4 , TETRA8 , TETRA10 , TETRA14 , PYRAMIDfive , PYRAMID5 , PYRAMID8 , PYRAMID13 , PYRAMID18 , HEXeight , HEX8 , HEX9 , HEX20 , HEX27 , HEXSHELL , INVALID_ELEMENT_TYPE } |
Private Member Functions | |
ErrorCode | convert_nodesets_sidesets () |
ErrorCode | read_acis_records (const char *sat_file_name=0) |
ErrorCode | parse_acis_attribs (const unsigned int entity_rec_num, std::vector< AcisRecord > &records) |
ErrorCode | interpret_acis_records (std::vector< AcisRecord > &records) |
ErrorCode | reset_record (AcisRecord &this_record) |
ErrorCode | process_record (AcisRecord &this_record) |
ErrorCode | get_entities (const unsigned int *mem_types, int *id_buf, const unsigned int id_buf_size, const bool is_group, std::vector< EntityHandle > &entities) |
get entities with individually-specified types; if is_group is false, increment each mem_type by 2 since they're CSOEntityType's and not group types More... | |
ErrorCode | get_entities (const unsigned int this_type, int *id_buf, const unsigned int id_buf_size, std::vector< EntityHandle > &entities, std::vector< EntityHandle > &excl_entities) |
get entities specified by type and ids, append to entities More... | |
ErrorCode | get_ref_entities (const unsigned int this_type, int *id_buf, const unsigned id_buf_size, std::vector< EntityHandle > &entities) |
get ref entity sets with specified type and ids More... | |
ErrorCode | get_mesh_entities (const unsigned int this_type, int *id_buf, const unsigned id_buf_size, std::vector< EntityHandle > &entities, std::vector< EntityHandle > &excl_entities) |
get mesh entities with specified type and ids More... | |
ErrorCode | process_sideset_10 (const int this_type, const int num_ents, const int sense_size, std::vector< EntityHandle > &ss_entities, Tqdcfr::SidesetHeader *sideseth) |
process entities in a sideset according to sense flags stored in uint_buf or char_buf (depending on sense_size) More... | |
ErrorCode | process_sideset_11 (std::vector< EntityHandle > &ss_entities, int num_wrts, Tqdcfr::SidesetHeader *sideseth) |
ErrorCode | put_into_set (EntityHandle set_handle, std::vector< EntityHandle > &entities, std::vector< EntityHandle > &excl_entities) |
ErrorCode | get_names (MetaDataContainer &md, unsigned int set_index, EntityHandle seth) |
Private Attributes | |
EntityHandle | mFileSet |
bool | printedSeqWarning |
bool | printedElemWarning |
FILE * | acisDumpFile |
std::vector< EntityHandle > * | cubMOABVertexMap |
Static Private Attributes | |
static const char | geom_categories [][CATEGORY_TAG_SIZE] = { "Vertex\0", "Curve\0", "Surface\0", "Volume\0" } |
static const EntityType | group_type_to_mb_type [] |
static const EntityType | block_type_to_mb_type [] |
static const int | cub_elem_num_verts [] |
static const int | cub_elem_num_verts_len = sizeof( cub_elem_num_verts ) / sizeof( cub_elem_num_verts[0] ) |
static const EntityType | mp_type_to_mb_type [] |
mapping from mesh packet type to moab type More... | |
Definition at line 45 of file Tqdcfr.hpp.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
mesh | |
acist | |
acisb | |
facet | |
exodusmesh |
Definition at line 326 of file Tqdcfr.hpp.
|
private |
|
private |
Definition at line 385 of file Tqdcfr.hpp.
moab::Tqdcfr::~Tqdcfr | ( | ) |
Definition at line 261 of file Tqdcfr.cpp.
References attribVectorTag, moab::Range::begin(), cubMOABVertexMap, moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_type(), MB_SUCCESS, MBENTITYSET, mdbImpl, readUtilIface, moab::Interface::release_interface(), moab::Interface::tag_delete(), and moab::Interface::tag_get_data().
moab::Tqdcfr::Tqdcfr | ( | Interface * | impl | ) |
Definition at line 232 of file Tqdcfr.cpp.
References blockTag, cubMOABVertexMap, currElementIdOffset, currVHandleOffset, DIRICHLET_SET_TAG_NAME, entityNameTag, ErrorCode, MATERIAL_SET_TAG_NAME, MB_CHK_SET_ERR_RET, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, MB_TYPE_OPAQUE, MBMAXTYPE, MBVERTEX, mdbImpl, NAME_TAG_NAME, NAME_TAG_SIZE, NEUMANN_SET_TAG_NAME, nsTag, moab::Interface::query_interface(), readUtilIface, ssTag, and moab::Interface::tag_get_handle().
Referenced by factory().
void moab::Tqdcfr::check_contiguous | ( | const unsigned int | num_ents, |
int & | contig, | ||
unsigned int & | min_id, | ||
unsigned int & | max_id | ||
) |
Definition at line 1660 of file Tqdcfr.cpp.
References moab::MAX(), moab::MIN(), and uint_buf.
Referenced by read_elements(), and read_nodes().
|
private |
Definition at line 489 of file Tqdcfr.cpp.
References moab::Range::begin(), moab::BLOCK_NODESET_OFFSET_TAG_NAME, moab::BLOCK_SIDESET_OFFSET_TAG_NAME, blockTag, DIRICHLET_SET_TAG_NAME, moab::Range::empty(), moab::Range::end(), ErrorCode, moab::Interface::get_entities_by_type_and_tag(), globalIdTag, moab::Range::insert(), MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBENTITYSET, mdbImpl, NEUMANN_SET_TAG_NAME, nsTag, moab::Range::size(), ssTag, moab::Interface::tag_delete_data(), moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by load_file().
void moab::Tqdcfr::CONVERT_TO_INTS | ( | unsigned int | num_ents | ) |
Definition at line 221 of file Tqdcfr.cpp.
References int_buf, and uint_buf.
Referenced by read_block(), read_elements(), read_group(), read_nodes(), read_nodeset(), and read_sideset().
ErrorCode moab::Tqdcfr::create_set | ( | EntityHandle & | h, |
unsigned int | flags = MESHSET_SET |
||
) |
Definition at line 3061 of file Tqdcfr.cpp.
References moab::Interface::create_meshset(), and mdbImpl.
Referenced by process_sideset_10(), process_sideset_11(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), and moab::Tqdcfr::SidesetHeader::read_info_header().
|
static |
Definition at line 227 of file Tqdcfr.cpp.
References iface, and Tqdcfr().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
int moab::Tqdcfr::find_model | ( | const unsigned int | model_type | ) |
Definition at line 1779 of file Tqdcfr.cpp.
References fileTOC, modelEntries, and moab::Tqdcfr::FileTOC::numModels.
Referenced by load_file().
void moab::Tqdcfr::FREADC | ( | unsigned | num_ents | ) |
Definition at line 148 of file Tqdcfr.cpp.
References char_buf, and FREADCA().
Referenced by load_file(), read_acis_records(), read_block(), read_md_string(), read_nodeset(), and read_sideset().
void moab::Tqdcfr::FREADCA | ( | unsigned | num_ents, |
char * | arrat | ||
) |
Definition at line 215 of file Tqdcfr.cpp.
References cubFile, and IO_ASSERT.
Referenced by FREADC(), read_nodeset(), and read_sideset().
void moab::Tqdcfr::FREADD | ( | unsigned | num_ents | ) |
Definition at line 142 of file Tqdcfr.cpp.
References dbl_buf, and FREADDA().
Referenced by read_block(), read_meta_data(), and read_sideset().
void moab::Tqdcfr::FREADDA | ( | unsigned | num_ents, |
double * | array | ||
) |
Definition at line 200 of file Tqdcfr.cpp.
References cubFile, IO_ASSERT, moab::swap8_voff(), and swapForEndianness.
Referenced by FREADD(), and read_nodes().
void moab::Tqdcfr::FREADI | ( | unsigned | num_ents | ) |
Definition at line 132 of file Tqdcfr.cpp.
References FREADIA(), int_buf, and uint_buf.
Referenced by moab::Tqdcfr::FEModelHeader::init(), read_block(), read_elements(), read_file_header(), read_group(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), read_md_string(), read_meta_data(), read_model_entries(), read_nodes(), read_nodeset(), and read_sideset().
void moab::Tqdcfr::FREADIA | ( | unsigned | num_ents, |
unsigned int * | array | ||
) |
Definition at line 185 of file Tqdcfr.cpp.
References cubFile, IO_ASSERT, moab::swap4_uint(), and swapForEndianness.
Referenced by FREADI(), and read_sideset().
void moab::Tqdcfr::FSEEK | ( | unsigned | offset | ) |
Definition at line 126 of file Tqdcfr.cpp.
References cubFile, and IO_ASSERT.
Referenced by moab::Tqdcfr::FEModelHeader::init(), read_acis_records(), read_block(), read_elements(), read_file_header(), read_group(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), read_meta_data(), read_model_entries(), read_nodes(), read_nodeset(), and read_sideset().
|
private |
get entities with individually-specified types; if is_group is false, increment each mem_type by 2 since they're CSOEntityType's and not group types
Definition at line 1242 of file Tqdcfr.cpp.
References entities, ErrorCode, and MB_SUCCESS.
Referenced by read_block(), read_group(), read_nodeset(), and read_sideset().
|
private |
get entities specified by type and ids, append to entities
Definition at line 1264 of file Tqdcfr.cpp.
References entities, ErrorCode, get_mesh_entities(), get_ref_entities(), HEX, NODE, and VERTEX.
|
private |
get mesh entities with specified type and ids
Definition at line 1291 of file Tqdcfr.cpp.
References cubMOABVertexMap, currVHandleOffset, moab::Range::empty(), entities, moab::CN::EntityTypeName(), ErrorCode, moab::Interface::get_entities_by_type(), globalIdTag, group_type_to_mb_type, MB_SET_ERR, MB_SUCCESS, MB_TAG_NOT_FOUND, MBMAXTYPE, MBVERTEX, mdbImpl, moab::Range::size(), moab::Interface::tag_get_data(), and moab::Interface::type_from_handle().
Referenced by get_entities().
|
private |
Definition at line 1093 of file Tqdcfr.cpp.
References entityNameTag, ErrorCode, moab::Tqdcfr::MetaDataContainer::get_md_entry(), MB_CHK_ERR, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_OPAQUE, mdbImpl, moab::Tqdcfr::MetaDataContainer::MetaDataEntry::mdStringValue, moab::Tqdcfr::MetaDataContainer::metadataEntries, NAME_TAG_NAME, NAME_TAG_SIZE, moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by read_block(), read_nodeset(), and read_sideset().
|
private |
get ref entity sets with specified type and ids
Definition at line 1280 of file Tqdcfr.cpp.
References entities, gidSetMap, and MB_SUCCESS.
Referenced by get_entities().
|
private |
Definition at line 2479 of file Tqdcfr.cpp.
References ATTRIB, attribVectorTag, ErrorCode, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_OPAQUE, mdbImpl, parse_acis_attribs(), REC, moab::Interface::tag_get_handle(), and UNKNOWN.
Referenced by read_acis_records().
|
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 296 of file Tqdcfr.cpp.
References moab::ReadUtilIface::assign_ids(), beforeEnts, moab::Tqdcfr::FEModelHeader::blockArray, char_buf, convert_nodesets_sidesets(), cubFile, moab::debug, dim, ErrorCode, moab::Tqdcfr::ModelEntry::feBlockH, moab::Tqdcfr::ModelEntry::feGeomH, moab::Tqdcfr::ModelEntry::feGroupH, moab::Tqdcfr::ModelEntry::feModelHeader, moab::Tqdcfr::ModelEntry::feNodeSetH, moab::Tqdcfr::ModelEntry::feSideSetH, fileTOC, find_model(), FREADC(), moab::Tqdcfr::FEModelHeader::geomArray, moab::Interface::get_entities_by_handle(), moab::FileOptions::get_int_option(), moab::Tqdcfr::MetaDataContainer::get_md_entry(), moab::FileOptions::get_null_option(), moab::FileOptions::get_str_option(), moab::Tqdcfr::FEModelHeader::groupArray, moab::Interface::list_entities(), moab::major, moab::Tqdcfr::GeomHeader::maxDim, MB_CHK_SET_ERR, MB_SET_ERR, MB_SUCCESS, MB_UNSUPPORTED_OPERATION, mdbImpl, mesh, moab::Tqdcfr::MetaDataContainer::metadataEntries, moab::minor, modelEntries, modelMetaData, moab::Tqdcfr::FileTOC::modelMetaDataOffset, moab::Tqdcfr::FEModelHeader::nodesetArray, moab::Tqdcfr::FEModelHeader::ArrayInfo::numEntities, read_acis_records(), read_block(), read_elements(), read_file_header(), read_group(), moab::Tqdcfr::ModelEntry::read_header_info(), read_meta_data(), moab::Tqdcfr::ModelEntry::read_metadata_info(), read_model_entries(), read_nodes(), read_nodeset(), read_sideset(), readUtilIface, moab::GeomTopoTool::restore_topology_from_adjacency(), RR, moab::Tqdcfr::FEModelHeader::sidesetArray, and moab::subtract().
|
private |
Definition at line 2518 of file Tqdcfr.cpp.
References aBODY, acisDumpFile, aEDGE, attribVectorTag, aVERTEX, entityNameTag, ErrorCode, FACE, gidSetMap, globalIdTag, LUMP, moab::major, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_NOT_FOUND, MB_TAG_SPARSE, MB_TYPE_OPAQUE, mdbImpl, NAME_TAG_NAME, NAME_TAG_SIZE, moab::Interface::tag_get_data(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), uidSetMap, and UNKNOWN.
Referenced by interpret_acis_records().
|
private |
Definition at line 2720 of file Tqdcfr.cpp.
References aBODY, aEDGE, moab::Tqdcfr::AcisRecord::att_ent_num, moab::Tqdcfr::AcisRecord::att_next, moab::Tqdcfr::AcisRecord::att_prev, moab::Tqdcfr::AcisRecord::att_string, ATTRIB, aVERTEX, FACE, moab::Tqdcfr::AcisRecord::first_attrib, LUMP, MB_SUCCESS, printedSeqWarning, moab::Tqdcfr::AcisRecord::rec_type, and UNKNOWN.
Referenced by read_acis_records().
|
private |
process entities in a sideset according to sense flags stored in uint_buf or char_buf (depending on sense_size)
Definition at line 843 of file Tqdcfr.cpp.
References moab::Interface::add_entities(), char_buf, create_set(), ErrorCode, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, mdbImpl, moab::Tqdcfr::SidesetHeader::setHandle, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and uint_buf.
Referenced by read_sideset().
|
private |
Definition at line 916 of file Tqdcfr.cpp.
References moab::Interface::add_entities(), char_buf, create_set(), ErrorCode, MB_ALREADY_ALLOCATED, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, mdbImpl, moab::Tqdcfr::SidesetHeader::setHandle, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and uint_buf.
Referenced by read_sideset().
|
private |
Definition at line 1214 of file Tqdcfr.cpp.
References moab::Interface::add_entities(), entities, ErrorCode, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_OPAQUE, mdbImpl, moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by read_block(), read_group(), and read_nodeset().
|
private |
Definition at line 2368 of file Tqdcfr.cpp.
References acisDumpFile, moab::Tqdcfr::AcisRecord::att_string, char_buf, fileTOC, FREADC(), FSEEK(), interpret_acis_records(), MB_SUCCESS, modelEntries, moab::Tqdcfr::FileTOC::numModels, process_record(), and reset_record().
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_block | ( | const unsigned int | blindex, |
const double | data_version, | ||
Tqdcfr::ModelEntry * | model, | ||
Tqdcfr::BlockHeader * | blockh | ||
) |
Definition at line 982 of file Tqdcfr.cpp.
References moab::Tqdcfr::BlockHeader::attribOrder, BLOCK_ATTRIBUTES, moab::Tqdcfr::BlockHeader::blockElemType, moab::Tqdcfr::BlockHeader::blockEntityType, moab::Tqdcfr::ModelEntry::blockMD, char_buf, moab::HigherOrderFactory::convert(), CONVERT_TO_INTS(), cub_elem_num_verts, dbl_buf, moab::CN::Dimension(), entities, ErrorCode, FREADC(), FREADD(), FREADI(), FSEEK(), moab::Interface::get_adjacencies(), get_entities(), moab::Interface::get_entities_by_type(), get_names(), moab::Tqdcfr::BlockHeader::hasMidNodes, int_buf, moab::major, MB_ALREADY_ALLOCATED, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MBMAXTYPE, mdbImpl, moab::Tqdcfr::BlockHeader::memCt, moab::Tqdcfr::BlockHeader::memOffset, moab::Tqdcfr::BlockHeader::memTypeCt, moab::minor, moab::Tqdcfr::ModelEntry::modelOffset, put_into_set(), moab::Tqdcfr::BlockHeader::setHandle, moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), uint_buf, moab::Interface::UNION, and moab::CN::VerticesPerEntity().
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_elements | ( | Tqdcfr::ModelEntry * | model, |
Tqdcfr::GeomHeader * | entity | ||
) |
Definition at line 1545 of file Tqdcfr.cpp.
References moab::Interface::add_entities(), categoryTag, check_contiguous(), CONVERT_TO_INTS(), moab::cub_elem_order_map, cubMOABVertexMap, currElementIdOffset, currVHandleOffset, moab::debug, moab::SequenceManager::DEFAULT_ELEMENT_SEQUENCE_SIZE, moab::CN::Dimension(), moab::Tqdcfr::GeomHeader::elemOffset, moab::Tqdcfr::GeomHeader::elemTypeCt, moab::CN::EntityTypeName(), ErrorCode, FREADI(), FSEEK(), geom_categories, geomTag, moab::ReadUtilIface::get_element_connect(), globalIdTag, moab::Interface::handle_from_id(), moab::Interface::id_from_handle(), int_buf, moab::major, MB_SUCCESS, MBVERTEX, mdbImpl, moab::Tqdcfr::ModelEntry::modelOffset, mp_type_to_mb_type, printedElemWarning, readUtilIface, moab::Tqdcfr::GeomHeader::setHandle, moab::Interface::tag_set_data(), uint_buf, and moab::ReadUtilIface::update_adjacencies().
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_file_header | ( | ) |
Definition at line 1730 of file Tqdcfr.cpp.
References moab::Tqdcfr::FileTOC::activeFEModel, cubFile, moab::debug, moab::Tqdcfr::FileTOC::fileEndian, moab::Tqdcfr::FileTOC::fileSchema, fileTOC, FREADI(), FSEEK(), IO_ASSERT, MB_SUCCESS, moab::Tqdcfr::FileTOC::modelMetaDataOffset, moab::Tqdcfr::FileTOC::modelTableOffset, moab::Tqdcfr::FileTOC::numModels, moab::Tqdcfr::FileTOC::print(), swapForEndianness, and uint_buf.
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_group | ( | const unsigned int | gr_index, |
Tqdcfr::ModelEntry * | model, | ||
Tqdcfr::GroupHeader * | grouph | ||
) |
Definition at line 1135 of file Tqdcfr.cpp.
References CONVERT_TO_INTS(), entityNameTag, ErrorCode, FREADI(), FSEEK(), get_entities(), moab::Tqdcfr::MetaDataContainer::get_md_entry(), moab::Tqdcfr::ModelEntry::groupMD, moab::Tqdcfr::GroupHeader::grpID, int_buf, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_OPAQUE, mdbImpl, moab::Tqdcfr::MetaDataContainer::MetaDataEntry::mdStringValue, moab::Tqdcfr::GroupHeader::memOffset, moab::Tqdcfr::GroupHeader::memTypeCt, moab::Tqdcfr::MetaDataContainer::metadataEntries, moab::Tqdcfr::ModelEntry::modelOffset, NAME_TAG_NAME, NAME_TAG_SIZE, put_into_set(), moab::Tqdcfr::GroupHeader::setHandle, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and uint_buf.
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_md_string | ( | std::string & | name | ) |
Definition at line 1853 of file Tqdcfr.cpp.
References char_buf, FREADC(), FREADI(), MB_SUCCESS, and uint_buf.
Referenced by read_meta_data().
ErrorCode moab::Tqdcfr::read_meta_data | ( | const unsigned int | metadata_offset, |
Tqdcfr::MetaDataContainer & | mc | ||
) |
Definition at line 1789 of file Tqdcfr.cpp.
References moab::Tqdcfr::MetaDataContainer::compressFlag, dbl_buf, moab::debug, FREADD(), FREADI(), FSEEK(), MB_SUCCESS, moab::Tqdcfr::MetaDataContainer::mdSchema, moab::Tqdcfr::MetaDataContainer::metadataEntries, moab::Tqdcfr::MetaDataContainer::print(), read_md_string(), and uint_buf.
Referenced by load_file(), and moab::Tqdcfr::ModelEntry::read_metadata_info().
ErrorCode moab::Tqdcfr::read_model_entries | ( | ) |
Definition at line 1756 of file Tqdcfr.cpp.
References moab::debug, fileTOC, FREADI(), FSEEK(), MB_SUCCESS, modelEntries, moab::Tqdcfr::FileTOC::modelTableOffset, moab::Tqdcfr::FileTOC::numModels, and uint_buf.
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_nodes | ( | const unsigned int | gindex, |
Tqdcfr::ModelEntry * | model, | ||
Tqdcfr::GeomHeader * | entity | ||
) |
Definition at line 1371 of file Tqdcfr.cpp.
References moab::Interface::add_entities(), beforeEnts, moab::Range::begin(), categoryTag, check_contiguous(), CONVERT_TO_INTS(), cubMOABVertexMap, currVHandleOffset, moab::debug, moab::SequenceManager::DEFAULT_VERTEX_SEQUENCE_SIZE, moab::Range::empty(), moab::Range::end(), ErrorCode, FREADDA(), FREADI(), FSEEK(), geom_categories, geomTag, moab::Interface::get_entities_by_type(), moab::Tqdcfr::MetaDataContainer::get_md_entry(), moab::ReadUtilIface::get_node_coords(), globalIdTag, int_buf, moab::MAX(), MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, MBVERTEX, mdbImpl, moab::Tqdcfr::MetaDataContainer::MetaDataEntry::mdDataType, moab::Tqdcfr::MetaDataContainer::MetaDataEntry::mdIntArrayValue, moab::Range::merge(), moab::Tqdcfr::MetaDataContainer::metadataEntries, moab::Tqdcfr::ModelEntry::modelOffset, moab::Tqdcfr::GeomHeader::nodeCt, moab::Tqdcfr::ModelEntry::nodeMD, moab::Tqdcfr::GeomHeader::nodeOffset, moab::Range::rbegin(), readUtilIface, RR, moab::Tqdcfr::GeomHeader::setHandle, size, moab::Range::subset_by_type(), moab::subtract(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and uint_buf.
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_nodeset | ( | const unsigned int | nsindex, |
Tqdcfr::ModelEntry * | model, | ||
Tqdcfr::NodesetHeader * | nodeseth | ||
) |
Definition at line 583 of file Tqdcfr.cpp.
References char_buf, CONVERT_TO_INTS(), moab::debug, DIRICHLET_SET_TAG_NAME, ErrorCode, FREADC(), FREADCA(), FREADI(), FSEEK(), get_entities(), get_names(), int_buf, MB_SUCCESS, MB_TAG_BYTES, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_OPAQUE, mdbImpl, moab::Tqdcfr::NodesetHeader::memOffset, moab::Tqdcfr::NodesetHeader::memTypeCt, moab::Tqdcfr::ModelEntry::modelOffset, moab::Tqdcfr::ModelEntry::nodesetMD, moab::Tqdcfr::NodesetHeader::print(), put_into_set(), moab::Tqdcfr::NodesetHeader::setHandle, moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), and uint_buf.
Referenced by load_file().
ErrorCode moab::Tqdcfr::read_sideset | ( | const unsigned int | ssindex, |
const double | data_version, | ||
Tqdcfr::ModelEntry * | model, | ||
Tqdcfr::SidesetHeader * | sideseth | ||
) |
Definition at line 674 of file Tqdcfr.cpp.
References char_buf, CONVERT_TO_INTS(), dbl_buf, moab::debug, ErrorCode, FREADC(), FREADCA(), FREADD(), FREADI(), FREADIA(), FSEEK(), get_entities(), get_names(), int_buf, MB_SUCCESS, MB_TAG_BYTES, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TAG_VARLEN, MB_TYPE_DOUBLE, MB_TYPE_OPAQUE, mdbImpl, moab::Tqdcfr::SidesetHeader::memCt, moab::Tqdcfr::SidesetHeader::memOffset, moab::Tqdcfr::SidesetHeader::memTypeCt, moab::Tqdcfr::ModelEntry::modelOffset, NEUMANN_SET_TAG_NAME, moab::Tqdcfr::SidesetHeader::numDF, moab::Tqdcfr::SidesetHeader::print(), process_sideset_10(), process_sideset_11(), moab::Tqdcfr::SidesetHeader::setHandle, moab::Tqdcfr::ModelEntry::sidesetMD, moab::Interface::tag_get_handle(), moab::Interface::tag_set_by_ptr(), and uint_buf.
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 287 of file Tqdcfr.cpp.
References MB_NOT_IMPLEMENTED.
|
private |
Definition at line 2709 of file Tqdcfr.cpp.
References moab::Tqdcfr::AcisRecord::att_ent_num, moab::Tqdcfr::AcisRecord::att_next, moab::Tqdcfr::AcisRecord::att_prev, moab::Tqdcfr::AcisRecord::att_string, moab::Tqdcfr::AcisRecord::entity, moab::Tqdcfr::AcisRecord::first_attrib, MB_SUCCESS, moab::Tqdcfr::AcisRecord::processed, moab::Tqdcfr::AcisRecord::rec_type, and UNKNOWN.
Referenced by read_acis_records().
EntityType moab::Tqdcfr::type_from_cub_type | ( | const unsigned int | cub_type, |
const unsigned int | nodes_per_elem | ||
) |
|
private |
Definition at line 361 of file Tqdcfr.hpp.
Referenced by parse_acis_attribs(), and read_acis_records().
Tag moab::Tqdcfr::attribVectorTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by interpret_acis_records(), parse_acis_attribs(), and ~Tqdcfr().
Range moab::Tqdcfr::beforeEnts |
Definition at line 280 of file Tqdcfr.hpp.
Referenced by load_file(), and read_nodes().
|
staticprivate |
Definition at line 433 of file Tqdcfr.hpp.
Referenced by moab::Tqdcfr::BlockHeader::read_info_header().
Tag moab::Tqdcfr::blockTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by convert_nodesets_sidesets(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::BlockHeader::read_info_header(), and Tqdcfr().
Tag moab::Tqdcfr::categoryTag |
Definition at line 283 of file Tqdcfr.hpp.
Referenced by read_elements(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), and read_nodes().
std::vector< char > moab::Tqdcfr::char_buf |
Definition at line 291 of file Tqdcfr.hpp.
Referenced by FREADC(), load_file(), process_sideset_10(), process_sideset_11(), read_acis_records(), read_block(), read_md_string(), read_nodeset(), and read_sideset().
|
staticprivate |
Definition at line 434 of file Tqdcfr.hpp.
Referenced by read_block(), and moab::Tqdcfr::BlockHeader::read_info_header().
|
staticprivate |
Definition at line 435 of file Tqdcfr.hpp.
Referenced by moab::Tqdcfr::BlockHeader::read_info_header().
FILE* moab::Tqdcfr::cubFile |
Definition at line 275 of file Tqdcfr.hpp.
Referenced by FREADCA(), FREADDA(), FREADIA(), FSEEK(), load_file(), and read_file_header().
Tag moab::Tqdcfr::cubIdTag |
Definition at line 282 of file Tqdcfr.hpp.
|
private |
Definition at line 364 of file Tqdcfr.hpp.
Referenced by get_mesh_entities(), read_elements(), read_nodes(), Tqdcfr(), and ~Tqdcfr().
long moab::Tqdcfr::currElementIdOffset[MBMAXTYPE] |
Definition at line 281 of file Tqdcfr.hpp.
Referenced by read_elements(), and Tqdcfr().
long moab::Tqdcfr::currVHandleOffset |
Definition at line 279 of file Tqdcfr.hpp.
Referenced by get_mesh_entities(), read_elements(), read_nodes(), and Tqdcfr().
std::vector< double > moab::Tqdcfr::dbl_buf |
Definition at line 290 of file Tqdcfr.hpp.
Referenced by FREADD(), read_block(), read_meta_data(), and read_sideset().
Tag moab::Tqdcfr::entityNameTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by get_names(), parse_acis_attribs(), read_group(), and Tqdcfr().
FileTOC moab::Tqdcfr::fileTOC |
Definition at line 276 of file Tqdcfr.hpp.
Referenced by find_model(), load_file(), read_acis_records(), read_file_header(), and read_model_entries().
|
staticprivate |
Definition at line 359 of file Tqdcfr.hpp.
Referenced by read_elements(), and read_nodes().
Tag moab::Tqdcfr::geomTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by read_elements(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::GeomHeader::read_info_header(), and read_nodes().
std::map< int, EntityHandle > moab::Tqdcfr::gidSetMap[6] |
Definition at line 285 of file Tqdcfr.hpp.
Referenced by get_ref_entities(), parse_acis_attribs(), and moab::Tqdcfr::GroupHeader::read_info_header().
Tag moab::Tqdcfr::globalIdTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by convert_nodesets_sidesets(), get_mesh_entities(), parse_acis_attribs(), read_elements(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), and read_nodes().
|
staticprivate |
Tag moab::Tqdcfr::hasMidNodesTag |
Definition at line 283 of file Tqdcfr.hpp.
Referenced by moab::Tqdcfr::BlockHeader::read_info_header().
int* moab::Tqdcfr::int_buf |
Definition at line 289 of file Tqdcfr.hpp.
Referenced by CONVERT_TO_INTS(), FREADI(), read_block(), read_elements(), read_group(), read_nodes(), read_nodeset(), and read_sideset().
Interface* moab::Tqdcfr::mdbImpl |
Definition at line 274 of file Tqdcfr.hpp.
Referenced by convert_nodesets_sidesets(), create_set(), get_mesh_entities(), get_names(), interpret_acis_records(), load_file(), parse_acis_attribs(), process_sideset_10(), process_sideset_11(), put_into_set(), read_block(), read_elements(), read_group(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), read_nodes(), read_nodeset(), read_sideset(), Tqdcfr(), and ~Tqdcfr().
|
private |
Definition at line 342 of file Tqdcfr.hpp.
std::vector< ModelEntry > moab::Tqdcfr::modelEntries |
Definition at line 277 of file Tqdcfr.hpp.
Referenced by find_model(), load_file(), read_acis_records(), and read_model_entries().
MetaDataContainer moab::Tqdcfr::modelMetaData |
Definition at line 278 of file Tqdcfr.hpp.
Referenced by load_file().
|
staticprivate |
mapping from mesh packet type to moab type
Definition at line 438 of file Tqdcfr.hpp.
Referenced by read_elements(), and moab::Tqdcfr::GeomHeader::read_info_header().
Tag moab::Tqdcfr::nsTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by convert_nodesets_sidesets(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::NodesetHeader::read_info_header(), and Tqdcfr().
|
private |
Definition at line 346 of file Tqdcfr.hpp.
Referenced by read_elements().
|
private |
Definition at line 344 of file Tqdcfr.hpp.
Referenced by process_record().
ReadUtilIface* moab::Tqdcfr::readUtilIface |
Definition at line 273 of file Tqdcfr.hpp.
Referenced by load_file(), read_elements(), read_nodes(), Tqdcfr(), and ~Tqdcfr().
Tag moab::Tqdcfr::ssTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by convert_nodesets_sidesets(), moab::Tqdcfr::ModelEntry::read_header_info(), moab::Tqdcfr::SidesetHeader::read_info_header(), and Tqdcfr().
bool moab::Tqdcfr::swapForEndianness |
Definition at line 286 of file Tqdcfr.hpp.
Referenced by FREADDA(), FREADIA(), and read_file_header().
std::map< int, EntityHandle > moab::Tqdcfr::uidSetMap |
Definition at line 284 of file Tqdcfr.hpp.
Referenced by parse_acis_attribs(), and moab::Tqdcfr::GeomHeader::read_info_header().
std::vector< unsigned int > moab::Tqdcfr::uint_buf |
Definition at line 288 of file Tqdcfr.hpp.
Referenced by check_contiguous(), CONVERT_TO_INTS(), FREADI(), moab::Tqdcfr::FEModelHeader::init(), process_sideset_10(), process_sideset_11(), read_block(), read_elements(), read_file_header(), read_group(), moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), read_md_string(), read_meta_data(), read_model_entries(), read_nodes(), read_nodeset(), and read_sideset().
Tag moab::Tqdcfr::uniqueIdTag |
Definition at line 282 of file Tqdcfr.hpp.
Referenced by moab::Tqdcfr::ModelEntry::read_header_info(), and moab::Tqdcfr::GeomHeader::read_info_header().