moab
|
#include <Tqdcfr.hpp>
Public Member Functions | |
void | print () |
SidesetHeader () | |
Static Public Member Functions | |
static ErrorCode | read_info_header (const unsigned int model_offset, const FEModelHeader::ArrayInfo &info, Tqdcfr *instance, SidesetHeader *&entity_headers) |
Public Attributes | |
unsigned int | ssID |
unsigned int | memCt |
unsigned int | memOffset |
unsigned int | memTypeCt |
unsigned int | numDF |
unsigned int | ssCol |
unsigned int | useShell |
unsigned int | ssLength |
EntityHandle | setHandle |
Definition at line 198 of file Tqdcfr.hpp.
void moab::Tqdcfr::SidesetHeader::print | ( | ) |
Definition at line 2829 of file Tqdcfr.cpp.
{ std::cout << "ssID = " << ssID << std::endl; std::cout << "memCt = " << memCt << std::endl; std::cout << "memOffset = " << memOffset << std::endl; std::cout << "memTypeCt = " << memTypeCt << std::endl; std::cout << "numDF = " << numDF << std::endl; std::cout << "ssCol = " << ssCol << std::endl; std::cout << "useShell = " << useShell << std::endl; std::cout << "ssLength = " << ssLength << std::endl; std::cout << "setHandle = " << setHandle << std::endl; }
ErrorCode moab::Tqdcfr::SidesetHeader::read_info_header | ( | const unsigned int | model_offset, |
const FEModelHeader::ArrayInfo & | info, | ||
Tqdcfr * | instance, | ||
Tqdcfr::SidesetHeader *& | sideset_headers | ||
) | [static] |
Definition at line 2055 of file Tqdcfr.cpp.
{ sideset_headers = new SidesetHeader[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(sideset_headers[i].setHandle); if (MB_SUCCESS != result) return result; static const char neumann_category[CATEGORY_TAG_SIZE] = "Neumann Set\0"; instance->FREADI(8); sideset_headers[i].ssID = instance->uint_buf[0]; sideset_headers[i].memCt = instance->uint_buf[1]; sideset_headers[i].memOffset = instance->uint_buf[2]; sideset_headers[i].memTypeCt = instance->uint_buf[3]; sideset_headers[i].numDF = instance->uint_buf[4]; // num dist factors sideset_headers[i].ssCol = instance->uint_buf[5]; sideset_headers[i].useShell = instance->uint_buf[6]; sideset_headers[i].ssLength = instance->uint_buf[7]; // set the neumann set tag and id tag both to id result = instance->mdbImpl->tag_set_data(instance->ssTag, &(sideset_headers[i].setHandle), 1, &(sideset_headers[i].ssID)); if (MB_SUCCESS != result) return result; result = instance->mdbImpl->tag_set_data(instance->globalIdTag, &(sideset_headers[i].setHandle), 1, &(sideset_headers[i].ssID)); if (MB_SUCCESS != result) return result; result = instance->mdbImpl->tag_set_data(instance->categoryTag, &(sideset_headers[i].setHandle), 1, neumann_category); if (MB_SUCCESS != result) return result; } return MB_SUCCESS; }
unsigned int moab::Tqdcfr::SidesetHeader::memCt |
Definition at line 201 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::memOffset |
Definition at line 201 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::memTypeCt |
Definition at line 201 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::numDF |
Definition at line 201 of file Tqdcfr.hpp.
Definition at line 203 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::ssCol |
Definition at line 201 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::ssID |
Definition at line 201 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::ssLength |
Definition at line 201 of file Tqdcfr.hpp.
unsigned int moab::Tqdcfr::SidesetHeader::useShell |
Definition at line 201 of file Tqdcfr.hpp.