Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
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

Definition at line 2975 of file Tqdcfr.cpp.

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

Member Function Documentation

Definition at line 2981 of file Tqdcfr.cpp.

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

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

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

{
    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;
}

Member Data Documentation

Definition at line 197 of file Tqdcfr.hpp.

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

Definition at line 197 of file Tqdcfr.hpp.

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

Definition at line 197 of file Tqdcfr.hpp.

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

Definition at line 197 of file Tqdcfr.hpp.

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

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

Definition at line 197 of file Tqdcfr.hpp.

Referenced by read_info_header().

List of all members.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines