Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::Tqdcfr::NodesetHeader Class Reference

#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
 

Detailed Description

Definition at line 177 of file Tqdcfr.hpp.

Constructor & Destructor Documentation

◆ NodesetHeader()

moab::Tqdcfr::NodesetHeader::NodesetHeader ( )

Definition at line 2958 of file Tqdcfr.cpp.

2959  : nsID( 0 ), memCt( 0 ), memOffset( 0 ), memTypeCt( 0 ), pointSym( 0 ), nsCol( 0 ), nsLength( 0 ), setHandle( 0 )
2960 {
2961 }

Member Function Documentation

◆ print()

void moab::Tqdcfr::NodesetHeader::print ( )

Definition at line 2963 of file Tqdcfr.cpp.

2964 {
2965  std::cout << "nsID = " << nsID << std::endl;
2966  std::cout << "memCt = " << memCt << std::endl;
2967  std::cout << "memOffset = " << memOffset << std::endl;
2968  std::cout << "memTypeCt = " << memTypeCt << std::endl;
2969  std::cout << "pointSym = " << pointSym << std::endl;
2970  std::cout << "nsCol = " << nsCol << std::endl;
2971  std::cout << "nsLength = " << nsLength << std::endl;
2972  std::cout << "setHandle = " << setHandle << std::endl;
2973 }

Referenced by moab::Tqdcfr::read_nodeset().

◆ read_info_header()

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.

2127 {
2128  nodeset_headers = new NodesetHeader[info.numEntities];
2129  instance->FSEEK( model_offset + info.tableOffset );
2130  ErrorCode result;
2131 
2132  if( 0 == instance->categoryTag )
2133  {
2134  static const char val[CATEGORY_TAG_SIZE] = { 0 };
2135  result = instance->mdbImpl->tag_get_handle( CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, MB_TYPE_OPAQUE,
2136  instance->categoryTag, MB_TAG_SPARSE | MB_TAG_CREAT, val );
2137  if( MB_SUCCESS != result ) return result;
2138  }
2139 
2140  for( unsigned int i = 0; i < info.numEntities; i++ )
2141  {
2142  // Create an entity set for this entity
2143  result = instance->create_set( nodeset_headers[i].setHandle );
2144  if( MB_SUCCESS != result ) return result;
2145  static const char dirichlet_category[CATEGORY_TAG_SIZE] = "Dirichlet Set\0";
2146 
2147  instance->FREADI( 8 );
2148  nodeset_headers[i].nsID = instance->uint_buf[0];
2149  nodeset_headers[i].memCt = instance->uint_buf[1];
2150  nodeset_headers[i].memOffset = instance->uint_buf[2];
2151  nodeset_headers[i].memTypeCt = instance->uint_buf[3];
2152  nodeset_headers[i].pointSym = instance->uint_buf[4]; // Point sym
2153  nodeset_headers[i].nsCol = instance->uint_buf[5];
2154  nodeset_headers[i].nsLength = instance->uint_buf[6];
2155  // Pad
2156 
2157  // Set the dirichlet set tag and id tag both to id
2158  result = instance->mdbImpl->tag_set_data( instance->nsTag, &( nodeset_headers[i].setHandle ), 1,
2159  &( nodeset_headers[i].nsID ) );
2160  if( MB_SUCCESS != result ) return result;
2161  result = instance->mdbImpl->tag_set_data( instance->globalIdTag, &( nodeset_headers[i].setHandle ), 1,
2162  &( nodeset_headers[i].nsID ) );
2163  if( MB_SUCCESS != result ) return result;
2164  result = instance->mdbImpl->tag_set_data( instance->categoryTag, &( nodeset_headers[i].setHandle ), 1,
2165  dirichlet_category );
2166  if( MB_SUCCESS != result ) return result;
2167  }
2168 
2169  return MB_SUCCESS;
2170 }

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().

Member Data Documentation

◆ memCt

unsigned int moab::Tqdcfr::NodesetHeader::memCt

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ memOffset

unsigned int moab::Tqdcfr::NodesetHeader::memOffset

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header(), and moab::Tqdcfr::read_nodeset().

◆ memTypeCt

unsigned int moab::Tqdcfr::NodesetHeader::memTypeCt

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header(), and moab::Tqdcfr::read_nodeset().

◆ nsCol

unsigned int moab::Tqdcfr::NodesetHeader::nsCol

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ nsID

unsigned int moab::Tqdcfr::NodesetHeader::nsID

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ nsLength

unsigned int moab::Tqdcfr::NodesetHeader::nsLength

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ pointSym

unsigned int moab::Tqdcfr::NodesetHeader::pointSym

Definition at line 180 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ setHandle

EntityHandle moab::Tqdcfr::NodesetHeader::setHandle

Definition at line 182 of file Tqdcfr.hpp.

Referenced by read_info_header(), and moab::Tqdcfr::read_nodeset().


The documentation for this class was generated from the following files: