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

#include <Tqdcfr.hpp>

+ Collaboration diagram for moab::Tqdcfr::ModelEntry:

Public Member Functions

 ModelEntry ()
 
 ~ModelEntry ()
 
void print ()
 
void print_geom_headers (const char *prefix, GeomHeader *header, unsigned int num_headers)
 
void print_group_headers (const char *prefix, GroupHeader *header, const unsigned int num_headers)
 
void print_block_headers (const char *prefix, BlockHeader *header, const unsigned int num_headers)
 
void print_nodeset_headers (const char *prefix, NodesetHeader *header, const unsigned int num_headers)
 
void print_sideset_headers (const char *prefix, SidesetHeader *header, const unsigned int num_headers)
 
ErrorCode read_header_info (Tqdcfr *instance, const double data_version)
 
ErrorCode read_metadata_info (Tqdcfr *tqd)
 

Public Attributes

unsigned int modelHandle
 
unsigned int modelOffset
 
unsigned int modelLength
 
unsigned int modelType
 
unsigned int modelOwner
 
unsigned int modelPad
 
FEModelHeader feModelHeader
 
GeomHeaderfeGeomH
 
GroupHeaderfeGroupH
 
BlockHeaderfeBlockH
 
NodesetHeaderfeNodeSetH
 
SidesetHeaderfeSideSetH
 
MetaDataContainer geomMD
 
MetaDataContainer nodeMD
 
MetaDataContainer elementMD
 
MetaDataContainer groupMD
 
MetaDataContainer blockMD
 
MetaDataContainer nodesetMD
 
MetaDataContainer sidesetMD
 

Detailed Description

Definition at line 213 of file Tqdcfr.hpp.

Constructor & Destructor Documentation

◆ ModelEntry()

moab::Tqdcfr::ModelEntry::ModelEntry ( )

Definition at line 3040 of file Tqdcfr.cpp.

3041  : modelHandle( 0 ), modelOffset( 0 ), modelLength( 0 ), modelType( 0 ), modelOwner( 0 ), modelPad( 0 ),
3042  feGeomH( NULL ), feGroupH( NULL ), feBlockH( NULL ), feNodeSetH( NULL ), feSideSetH( NULL )
3043 {
3044 }

◆ ~ModelEntry()

moab::Tqdcfr::ModelEntry::~ModelEntry ( )

Definition at line 3046 of file Tqdcfr.cpp.

3047 {
3048  delete[] feGeomH;
3049  delete[] feGroupH;
3050  delete[] feBlockH;
3051  delete[] feNodeSetH;
3052  delete[] feSideSetH;
3053 }

Member Function Documentation

◆ print()

void moab::Tqdcfr::ModelEntry::print ( )

Definition at line 3055 of file Tqdcfr.cpp.

3056 {
3057  std::cout << "ModelEntry: Han, Of, Len, Tp, Own, Pd = " << modelHandle << ", " << modelOffset << ", " << modelLength
3058  << ", " << modelType << ", " << modelOwner << ", " << modelPad << std::endl;
3059 }

◆ print_block_headers()

void moab::Tqdcfr::ModelEntry::print_block_headers ( const char *  prefix,
BlockHeader header,
const unsigned int  num_headers 
)

Definition at line 2246 of file Tqdcfr.cpp.

2247 {
2248  if( !debug ) return;
2249  std::cout << prefix << std::endl;
2250  if( NULL != header )
2251  {
2252  for( unsigned int i = 0; i < num_headers; i++ )
2253  header[i].print();
2254  }
2255 }

References moab::debug.

◆ print_geom_headers()

void moab::Tqdcfr::ModelEntry::print_geom_headers ( const char *  prefix,
GeomHeader header,
unsigned int  num_headers 
)

Definition at line 2221 of file Tqdcfr.cpp.

2222 {
2223  if( !debug ) return;
2224  std::cout << prefix << std::endl;
2225  if( NULL != header )
2226  {
2227  for( unsigned int i = 0; i < num_headers; i++ )
2228  {
2229  std::cout << "Index " << i << std::endl;
2230  header[i].print();
2231  }
2232  }
2233 }

References moab::debug, and moab::Tqdcfr::GeomHeader::print().

◆ print_group_headers()

void moab::Tqdcfr::ModelEntry::print_group_headers ( const char *  prefix,
GroupHeader header,
const unsigned int  num_headers 
)

Definition at line 2235 of file Tqdcfr.cpp.

2236 {
2237  if( !debug ) return;
2238  std::cout << prefix << std::endl;
2239  if( NULL != header )
2240  {
2241  for( unsigned int i = 0; i < num_headers; i++ )
2242  header[i].print();
2243  }
2244 }

References moab::debug.

◆ print_nodeset_headers()

void moab::Tqdcfr::ModelEntry::print_nodeset_headers ( const char *  prefix,
NodesetHeader header,
const unsigned int  num_headers 
)

Definition at line 2257 of file Tqdcfr.cpp.

2260 {
2261  if( !debug ) return;
2262  std::cout << prefix << std::endl;
2263  if( NULL != header )
2264  {
2265  for( unsigned int i = 0; i < num_headers; i++ )
2266  header[i].print();
2267  }
2268 }

References moab::debug.

◆ print_sideset_headers()

void moab::Tqdcfr::ModelEntry::print_sideset_headers ( const char *  prefix,
SidesetHeader header,
const unsigned int  num_headers 
)

Definition at line 2270 of file Tqdcfr.cpp.

2273 {
2274  if( !debug ) return;
2275  std::cout << prefix << std::endl;
2276  if( NULL != header )
2277  {
2278  for( unsigned int i = 0; i < num_headers; i++ )
2279  header[i].print();
2280  }
2281 }

References moab::debug.

◆ read_header_info()

ErrorCode moab::Tqdcfr::ModelEntry::read_header_info ( Tqdcfr instance,
const double  data_version 
)

Definition at line 2283 of file Tqdcfr.cpp.

2284 {
2285  feModelHeader.init( modelOffset, instance );
2286  int negone = -1;
2287  ErrorCode result;
2288  instance->globalIdTag = instance->mdbImpl->globalId_tag();
2289 
2291  {
2292  result = instance->mdbImpl->tag_get_handle( GEOM_DIMENSION_TAG_NAME, 1, MB_TYPE_INTEGER, instance->geomTag,
2293  MB_TAG_SPARSE | MB_TAG_CREAT, &negone );
2294  if( MB_SUCCESS != result ) return result;
2295 
2296  result = instance->mdbImpl->tag_get_handle( "UNIQUE_ID", 1, MB_TYPE_INTEGER, instance->uniqueIdTag,
2297  MB_TAG_SPARSE | MB_TAG_CREAT, &negone );
2298  if( MB_SUCCESS != result ) return result;
2299 
2302  if( MB_SUCCESS != result ) return result;
2303  }
2304 
2306  {
2309  if( MB_SUCCESS != result ) return result;
2310  }
2311 
2313  {
2314  result = instance->mdbImpl->tag_get_handle( MATERIAL_SET_TAG_NAME, 1, MB_TYPE_INTEGER, instance->blockTag,
2315  MB_TAG_SPARSE | MB_TAG_CREAT, &negone );
2316  if( MB_SUCCESS != result ) return result;
2317 
2319  feBlockH );
2321  if( MB_SUCCESS != result ) return result;
2322  }
2324  {
2325  result = instance->mdbImpl->tag_get_handle( DIRICHLET_SET_TAG_NAME, 1, MB_TYPE_INTEGER, instance->nsTag,
2326  MB_TAG_SPARSE | MB_TAG_CREAT, &negone );
2327  if( MB_SUCCESS != result ) return result;
2328 
2329  result =
2331  if( MB_SUCCESS != result ) return result;
2333  }
2335  {
2336  result = instance->mdbImpl->tag_get_handle( NEUMANN_SET_TAG_NAME, 1, MB_TYPE_INTEGER, instance->ssTag,
2337  MB_TAG_SPARSE | MB_TAG_CREAT, &negone );
2338  if( MB_SUCCESS != result ) return result;
2339 
2340  result =
2343  }
2344 
2345  return MB_SUCCESS;
2346 }

References moab::Tqdcfr::blockTag, DIRICHLET_SET_TAG_NAME, ErrorCode, GEOM_DIMENSION_TAG_NAME, moab::Tqdcfr::geomTag, moab::Interface::globalId_tag(), moab::Tqdcfr::globalIdTag, MATERIAL_SET_TAG_NAME, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_INTEGER, moab::Tqdcfr::mdbImpl, NEUMANN_SET_TAG_NAME, moab::Tqdcfr::nsTag, moab::Tqdcfr::BlockHeader::read_info_header(), moab::Tqdcfr::GeomHeader::read_info_header(), moab::Tqdcfr::GroupHeader::read_info_header(), moab::Tqdcfr::NodesetHeader::read_info_header(), moab::Tqdcfr::SidesetHeader::read_info_header(), moab::Tqdcfr::ssTag, moab::Interface::tag_get_handle(), and moab::Tqdcfr::uniqueIdTag.

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

◆ read_metadata_info()

ErrorCode moab::Tqdcfr::ModelEntry::read_metadata_info ( Tqdcfr tqd)

Definition at line 2348 of file Tqdcfr.cpp.

2349 {
2350  if( debug ) std::cout << "Geom metadata:" << std::endl;
2351  tqd->read_meta_data( modelOffset + feModelHeader.geomArray.metaDataOffset, geomMD );
2352  if( debug ) std::cout << "Node metadata:" << std::endl;
2353  tqd->read_meta_data( modelOffset + feModelHeader.nodeArray.metaDataOffset, nodeMD );
2354  if( debug ) std::cout << "Elem metadata:" << std::endl;
2356  if( debug ) std::cout << "Group metadata:" << std::endl;
2357  tqd->read_meta_data( modelOffset + feModelHeader.groupArray.metaDataOffset, groupMD );
2358  if( debug ) std::cout << "Block metadata:" << std::endl;
2359  tqd->read_meta_data( modelOffset + feModelHeader.blockArray.metaDataOffset, blockMD );
2360  if( debug ) std::cout << "Nodeset metadata:" << std::endl;
2362  if( debug ) std::cout << "Sideset metadata:" << std::endl;
2364 
2365  return MB_SUCCESS;
2366 }

References moab::debug, MB_SUCCESS, and moab::Tqdcfr::read_meta_data().

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

Member Data Documentation

◆ blockMD

MetaDataContainer moab::Tqdcfr::ModelEntry::blockMD

Definition at line 229 of file Tqdcfr.hpp.

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

◆ elementMD

MetaDataContainer moab::Tqdcfr::ModelEntry::elementMD

Definition at line 229 of file Tqdcfr.hpp.

◆ feBlockH

BlockHeader* moab::Tqdcfr::ModelEntry::feBlockH

Definition at line 225 of file Tqdcfr.hpp.

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

◆ feGeomH

GeomHeader* moab::Tqdcfr::ModelEntry::feGeomH

Definition at line 223 of file Tqdcfr.hpp.

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

◆ feGroupH

GroupHeader* moab::Tqdcfr::ModelEntry::feGroupH

Definition at line 224 of file Tqdcfr.hpp.

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

◆ feModelHeader

FEModelHeader moab::Tqdcfr::ModelEntry::feModelHeader

Definition at line 222 of file Tqdcfr.hpp.

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

◆ feNodeSetH

NodesetHeader* moab::Tqdcfr::ModelEntry::feNodeSetH

Definition at line 226 of file Tqdcfr.hpp.

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

◆ feSideSetH

SidesetHeader* moab::Tqdcfr::ModelEntry::feSideSetH

Definition at line 227 of file Tqdcfr.hpp.

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

◆ geomMD

MetaDataContainer moab::Tqdcfr::ModelEntry::geomMD

Definition at line 229 of file Tqdcfr.hpp.

◆ groupMD

MetaDataContainer moab::Tqdcfr::ModelEntry::groupMD

Definition at line 229 of file Tqdcfr.hpp.

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

◆ modelHandle

unsigned int moab::Tqdcfr::ModelEntry::modelHandle

Definition at line 220 of file Tqdcfr.hpp.

◆ modelLength

unsigned int moab::Tqdcfr::ModelEntry::modelLength

Definition at line 220 of file Tqdcfr.hpp.

◆ modelOffset

◆ modelOwner

unsigned int moab::Tqdcfr::ModelEntry::modelOwner

Definition at line 220 of file Tqdcfr.hpp.

◆ modelPad

unsigned int moab::Tqdcfr::ModelEntry::modelPad

Definition at line 220 of file Tqdcfr.hpp.

◆ modelType

unsigned int moab::Tqdcfr::ModelEntry::modelType

Definition at line 220 of file Tqdcfr.hpp.

◆ nodeMD

MetaDataContainer moab::Tqdcfr::ModelEntry::nodeMD

Definition at line 229 of file Tqdcfr.hpp.

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

◆ nodesetMD

MetaDataContainer moab::Tqdcfr::ModelEntry::nodesetMD

Definition at line 229 of file Tqdcfr.hpp.

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

◆ sidesetMD

MetaDataContainer moab::Tqdcfr::ModelEntry::sidesetMD

Definition at line 229 of file Tqdcfr.hpp.

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


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