Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
#include <Tqdcfr.hpp>
Public Member Functions | |
void | print () |
NodesetHeader () | |
Static Public Member Functions | |
static ErrorCode | read_info_header (const unsigned int model_offset, const FEModelHeader::ArrayInfo &info, Tqdcfr *instance, NodesetHeader *&entity_headers) |
Public Attributes | |
unsigned int | nsID |
unsigned int | memCt |
unsigned int | memOffset |
unsigned int | memTypeCt |
unsigned int | pointSym |
unsigned int | nsCol |
unsigned int | nsLength |
EntityHandle | setHandle |
Definition at line 177 of file Tqdcfr.hpp.
void moab::Tqdcfr::NodesetHeader::print | ( | ) |
Definition at line 2963 of file Tqdcfr.cpp.
Referenced by moab::Tqdcfr::read_nodeset().
{ std::cout << "nsID = " << nsID << std::endl; std::cout << "memCt = " << memCt << std::endl; std::cout << "memOffset = " << memOffset << std::endl; std::cout << "memTypeCt = " << memTypeCt << std::endl; std::cout << "pointSym = " << pointSym << std::endl; std::cout << "nsCol = " << nsCol << std::endl; std::cout << "nsLength = " << nsLength << std::endl; std::cout << "setHandle = " << setHandle << std::endl; }
ErrorCode moab::Tqdcfr::NodesetHeader::read_info_header | ( | const unsigned int | model_offset, |
const FEModelHeader::ArrayInfo & | info, | ||
Tqdcfr * | instance, | ||
Tqdcfr::NodesetHeader *& | nodeset_headers | ||
) | [static] |
Definition at line 2123 of file Tqdcfr.cpp.
References CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, moab::Tqdcfr::categoryTag, moab::Tqdcfr::create_set(), ErrorCode, moab::Tqdcfr::FREADI(), moab::Tqdcfr::FSEEK(), moab::Tqdcfr::globalIdTag, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_OPAQUE, moab::Tqdcfr::mdbImpl, memCt, memOffset, memTypeCt, nsCol, nsID, nsLength, moab::Tqdcfr::nsTag, moab::Tqdcfr::FEModelHeader::ArrayInfo::numEntities, pointSym, setHandle, moab::Tqdcfr::FEModelHeader::ArrayInfo::tableOffset, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and moab::Tqdcfr::uint_buf.
Referenced by moab::Tqdcfr::ModelEntry::read_header_info().
{ nodeset_headers = new NodesetHeader[info.numEntities]; instance->FSEEK( model_offset + info.tableOffset ); ErrorCode result; if( 0 == instance->categoryTag ) { static const char val[CATEGORY_TAG_SIZE] = { 0 }; result = instance->mdbImpl->tag_get_handle( CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, MB_TYPE_OPAQUE, instance->categoryTag, MB_TAG_SPARSE | MB_TAG_CREAT, val ); if( MB_SUCCESS != result ) return result; } for( unsigned int i = 0; i < info.numEntities; i++ ) { // Create an entity set for this entity result = instance->create_set( nodeset_headers[i].setHandle ); if( MB_SUCCESS != result ) return result; static const char dirichlet_category[CATEGORY_TAG_SIZE] = "Dirichlet Set\0"; instance->FREADI( 8 ); nodeset_headers[i].nsID = instance->uint_buf[0]; nodeset_headers[i].memCt = instance->uint_buf[1]; nodeset_headers[i].memOffset = instance->uint_buf[2]; nodeset_headers[i].memTypeCt = instance->uint_buf[3]; nodeset_headers[i].pointSym = instance->uint_buf[4]; // Point sym nodeset_headers[i].nsCol = instance->uint_buf[5]; nodeset_headers[i].nsLength = instance->uint_buf[6]; // Pad // Set the dirichlet set tag and id tag both to id result = instance->mdbImpl->tag_set_data( instance->nsTag, &( nodeset_headers[i].setHandle ), 1, &( nodeset_headers[i].nsID ) ); if( MB_SUCCESS != result ) return result; result = instance->mdbImpl->tag_set_data( instance->globalIdTag, &( nodeset_headers[i].setHandle ), 1, &( nodeset_headers[i].nsID ) ); if( MB_SUCCESS != result ) return result; result = instance->mdbImpl->tag_set_data( instance->categoryTag, &( nodeset_headers[i].setHandle ), 1, dirichlet_category ); if( MB_SUCCESS != result ) return result; } return MB_SUCCESS; }
unsigned int moab::Tqdcfr::NodesetHeader::memCt |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header().
unsigned int moab::Tqdcfr::NodesetHeader::memOffset |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header(), and moab::Tqdcfr::read_nodeset().
unsigned int moab::Tqdcfr::NodesetHeader::memTypeCt |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header(), and moab::Tqdcfr::read_nodeset().
unsigned int moab::Tqdcfr::NodesetHeader::nsCol |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header().
unsigned int moab::Tqdcfr::NodesetHeader::nsID |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header().
unsigned int moab::Tqdcfr::NodesetHeader::nsLength |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header().
unsigned int moab::Tqdcfr::NodesetHeader::pointSym |
Definition at line 180 of file Tqdcfr.hpp.
Referenced by read_info_header().
Definition at line 182 of file Tqdcfr.hpp.
Referenced by read_info_header(), and moab::Tqdcfr::read_nodeset().