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

#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
 

Detailed Description

Definition at line 194 of file Tqdcfr.hpp.

Constructor & Destructor Documentation

◆ SidesetHeader()

moab::Tqdcfr::SidesetHeader::SidesetHeader ( )

Definition at line 2975 of file Tqdcfr.cpp.

2976  : ssID( 0 ), memCt( 0 ), memOffset( 0 ), memTypeCt( 0 ), numDF( 0 ), ssCol( 0 ), useShell( 0 ), ssLength( 0 ),
2977  setHandle( 0 )
2978 {
2979 }

Member Function Documentation

◆ print()

void moab::Tqdcfr::SidesetHeader::print ( )

Definition at line 2981 of file Tqdcfr.cpp.

2982 {
2983  std::cout << "ssID = " << ssID << std::endl;
2984  std::cout << "memCt = " << memCt << std::endl;
2985  std::cout << "memOffset = " << memOffset << std::endl;
2986  std::cout << "memTypeCt = " << memTypeCt << std::endl;
2987  std::cout << "numDF = " << numDF << std::endl;
2988  std::cout << "ssCol = " << ssCol << std::endl;
2989  std::cout << "useShell = " << useShell << std::endl;
2990  std::cout << "ssLength = " << ssLength << std::endl;
2991  std::cout << "setHandle = " << setHandle << std::endl;
2992 }

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

◆ read_info_header()

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 2172 of file Tqdcfr.cpp.

2176 {
2177  sideset_headers = new SidesetHeader[info.numEntities];
2178  instance->FSEEK( model_offset + info.tableOffset );
2179  ErrorCode result;
2180 
2181  if( 0 == instance->categoryTag )
2182  {
2183  static const char val[CATEGORY_TAG_SIZE] = { 0 };
2184  result = instance->mdbImpl->tag_get_handle( CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, MB_TYPE_OPAQUE,
2185  instance->categoryTag, MB_TAG_SPARSE | MB_TAG_CREAT, val );
2186  if( MB_SUCCESS != result ) return result;
2187  }
2188 
2189  for( unsigned int i = 0; i < info.numEntities; i++ )
2190  {
2191  // Create an entity set for this entity
2192  result = instance->create_set( sideset_headers[i].setHandle );
2193  if( MB_SUCCESS != result ) return result;
2194  static const char neumann_category[CATEGORY_TAG_SIZE] = "Neumann Set\0";
2195 
2196  instance->FREADI( 8 );
2197  sideset_headers[i].ssID = instance->uint_buf[0];
2198  sideset_headers[i].memCt = instance->uint_buf[1];
2199  sideset_headers[i].memOffset = instance->uint_buf[2];
2200  sideset_headers[i].memTypeCt = instance->uint_buf[3];
2201  sideset_headers[i].numDF = instance->uint_buf[4]; // Num dist factors
2202  sideset_headers[i].ssCol = instance->uint_buf[5];
2203  sideset_headers[i].useShell = instance->uint_buf[6];
2204  sideset_headers[i].ssLength = instance->uint_buf[7];
2205 
2206  // Set the neumann set tag and id tag both to id
2207  result = instance->mdbImpl->tag_set_data( instance->ssTag, &( sideset_headers[i].setHandle ), 1,
2208  &( sideset_headers[i].ssID ) );
2209  if( MB_SUCCESS != result ) return result;
2210  result = instance->mdbImpl->tag_set_data( instance->globalIdTag, &( sideset_headers[i].setHandle ), 1,
2211  &( sideset_headers[i].ssID ) );
2212  if( MB_SUCCESS != result ) return result;
2213  result = instance->mdbImpl->tag_set_data( instance->categoryTag, &( sideset_headers[i].setHandle ), 1,
2214  neumann_category );
2215  if( MB_SUCCESS != result ) return result;
2216  }
2217 
2218  return MB_SUCCESS;
2219 }

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, numDF, moab::Tqdcfr::FEModelHeader::ArrayInfo::numEntities, setHandle, ssCol, ssID, ssLength, moab::Tqdcfr::ssTag, moab::Tqdcfr::FEModelHeader::ArrayInfo::tableOffset, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), moab::Tqdcfr::uint_buf, and useShell.

Referenced by moab::Tqdcfr::ModelEntry::read_header_info().

Member Data Documentation

◆ memCt

unsigned int moab::Tqdcfr::SidesetHeader::memCt

Definition at line 197 of file Tqdcfr.hpp.

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

◆ memOffset

unsigned int moab::Tqdcfr::SidesetHeader::memOffset

Definition at line 197 of file Tqdcfr.hpp.

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

◆ memTypeCt

unsigned int moab::Tqdcfr::SidesetHeader::memTypeCt

Definition at line 197 of file Tqdcfr.hpp.

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

◆ numDF

unsigned int moab::Tqdcfr::SidesetHeader::numDF

Definition at line 197 of file Tqdcfr.hpp.

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

◆ setHandle

EntityHandle moab::Tqdcfr::SidesetHeader::setHandle

◆ ssCol

unsigned int moab::Tqdcfr::SidesetHeader::ssCol

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ ssID

unsigned int moab::Tqdcfr::SidesetHeader::ssID

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ ssLength

unsigned int moab::Tqdcfr::SidesetHeader::ssLength

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ useShell

unsigned int moab::Tqdcfr::SidesetHeader::useShell

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().


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