Mesh Oriented datABase  (version 5.6.0)
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 2981 of file Tqdcfr.cpp.

2982  : ssID( 0 ), memCt( 0 ), memOffset( 0 ), memTypeCt( 0 ), numDF( 0 ), ssCol( 0 ), useShell( 0 ), ssLength( 0 ),
2983  setHandle( 0 )
2984 {
2985 }

Member Function Documentation

◆ print()

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

Definition at line 2987 of file Tqdcfr.cpp.

2988 {
2989  std::cout << "ssID = " << ssID << std::endl;
2990  std::cout << "memCt = " << memCt << std::endl;
2991  std::cout << "memOffset = " << memOffset << std::endl;
2992  std::cout << "memTypeCt = " << memTypeCt << std::endl;
2993  std::cout << "numDF = " << numDF << std::endl;
2994  std::cout << "ssCol = " << ssCol << std::endl;
2995  std::cout << "useShell = " << useShell << std::endl;
2996  std::cout << "ssLength = " << ssLength << std::endl;
2997  std::cout << "setHandle = " << setHandle << std::endl;
2998 }

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

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

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: