libMesh::ExodusII_IO_Helper::Conversion Class Reference

#include <exodusII_io_helper.h>

Public Member Functions

 Conversion (const int *nm, size_t nm_size, const int *inm, size_t inm_size, const int *sm, size_t sm_size, const int *ism, size_t ism_size, const ElemType ct, std::string ex_type)
 
int get_node_map (int i) const
 
int get_inverse_node_map (int i) const
 
int get_side_map (int i) const
 
int get_inverse_side_map (int i) const
 
ElemType get_canonical_type () const
 
std::string exodus_elem_type () const
 

Private Attributes

const int * node_map
 
size_t node_map_size
 
const int * inverse_node_map
 
size_t inverse_node_map_size
 
const int * side_map
 
size_t side_map_size
 
const int * inverse_side_map
 
size_t inverse_side_map_size
 
const ElemType canonical_type
 
const std::string exodus_type
 

Detailed Description

Definition at line 591 of file exodusII_io_helper.h.

Constructor & Destructor Documentation

libMesh::ExodusII_IO_Helper::Conversion::Conversion ( const int *  nm,
size_t  nm_size,
const int *  inm,
size_t  inm_size,
const int *  sm,
size_t  sm_size,
const int *  ism,
size_t  ism_size,
const ElemType  ct,
std::string  ex_type 
)
inline

Constructor. Initializes the const private member variables.

Definition at line 599 of file exodusII_io_helper.h.

609  : node_map(nm),
610  node_map_size(nm_size),
611  inverse_node_map(inm),
612  inverse_node_map_size(inm_size),
613  side_map(sm),
614  side_map_size(sm_size),
615  inverse_side_map(ism),
616  inverse_side_map_size(ism_size),
617  canonical_type(ct),
618  exodus_type(ex_type)
619  {}

Member Function Documentation

std::string libMesh::ExodusII_IO_Helper::Conversion::exodus_elem_type ( ) const
inline

Returns the string corresponding to the Exodus type for this element

Definition at line 676 of file exodusII_io_helper.h.

References exodus_type.

Referenced by libMesh::ExodusII_IO_Helper::write_elements(), libMesh::Nemesis_IO_Helper::write_elements(), and libMesh::ExodusII_IO_Helper::write_elements_discontinuous().

676 { return exodus_type; }
ElemType libMesh::ExodusII_IO_Helper::Conversion::get_canonical_type ( ) const
inline

Returns the canonical element type for this element. The canonical element type is the standard element type understood by this library.

Definition at line 671 of file exodusII_io_helper.h.

References canonical_type.

Referenced by libMesh::Nemesis_IO_Helper::build_element_and_node_maps(), libMesh::Nemesis_IO::read(), and libMesh::ExodusII_IO_Helper::write_elements().

671 { return canonical_type; }
int libMesh::ExodusII_IO_Helper::Conversion::get_inverse_node_map ( int  i) const
inline

Returns the ith component of the inverse node map for this element. The inverse node map maps the libmesh node numbering to Exodus' node numbering. Note that all elements except Hex27 currently have the same node numbering as libmesh elements.

Definition at line 638 of file exodusII_io_helper.h.

References inverse_node_map, and inverse_node_map_size.

Referenced by libMesh::ExodusII_IO_Helper::write_elements(), and libMesh::ExodusII_IO_Helper::write_elements_discontinuous().

639  {
640  libmesh_assert_less (static_cast<size_t>(i), inverse_node_map_size);
641  return inverse_node_map[i];
642  }
int libMesh::ExodusII_IO_Helper::Conversion::get_inverse_side_map ( int  i) const
inline

Returns the ith component of the side map for this element. The side map maps the libMesh side numbering format to this exodus's format.

Definition at line 660 of file exodusII_io_helper.h.

References inverse_side_map, and inverse_side_map_size.

Referenced by libMesh::Nemesis_IO_Helper::compute_internal_and_border_elems_and_internal_nodes(), libMesh::ExodusII_IO_Helper::write_sidesets(), and libMesh::Nemesis_IO_Helper::write_sidesets().

661  {
662  libmesh_assert_less (static_cast<size_t>(i), inverse_side_map_size);
663  return inverse_side_map[i];
664  }
int libMesh::ExodusII_IO_Helper::Conversion::get_node_map ( int  i) const
inline

Returns the ith component of the node map for this element. The node map maps the exodusII node numbering format to this library's format.

Definition at line 626 of file exodusII_io_helper.h.

References node_map, and node_map_size.

Referenced by libMesh::Nemesis_IO_Helper::build_element_and_node_maps(), and libMesh::Nemesis_IO::read().

627  {
628  libmesh_assert_less (static_cast<size_t>(i), node_map_size);
629  return node_map[i];
630  }
int libMesh::ExodusII_IO_Helper::Conversion::get_side_map ( int  i) const
inline

Returns the ith component of the side map for this element. The side map maps the exodusII side numbering format to this library's format.

Definition at line 649 of file exodusII_io_helper.h.

References side_map, and side_map_size.

Referenced by libMesh::ExodusII_IO::read(), and libMesh::Nemesis_IO::read().

650  {
651  libmesh_assert_less (static_cast<size_t>(i), side_map_size);
652  return side_map[i];
653  }

Member Data Documentation

const ElemType libMesh::ExodusII_IO_Helper::Conversion::canonical_type
private

The canonical (i.e. standard for this library) element type.

Definition at line 726 of file exodusII_io_helper.h.

Referenced by get_canonical_type().

const std::string libMesh::ExodusII_IO_Helper::Conversion::exodus_type
private

The string corresponding to the Exodus type for this element

Definition at line 731 of file exodusII_io_helper.h.

Referenced by exodus_elem_type().

const int* libMesh::ExodusII_IO_Helper::Conversion::inverse_node_map
private

Pointer to the inverse node map for this element. For all elements except for the Hex27, this is the same as the node map.

Definition at line 695 of file exodusII_io_helper.h.

Referenced by get_inverse_node_map().

size_t libMesh::ExodusII_IO_Helper::Conversion::inverse_node_map_size
private

The size of the inverse node map array, this helps with bounds checking...

Definition at line 700 of file exodusII_io_helper.h.

Referenced by get_inverse_node_map().

const int* libMesh::ExodusII_IO_Helper::Conversion::inverse_side_map
private

Pointer to the inverse side map for this element.

Definition at line 715 of file exodusII_io_helper.h.

Referenced by get_inverse_side_map().

size_t libMesh::ExodusII_IO_Helper::Conversion::inverse_side_map_size
private

The size of the inverse side map array, this helps with bounds checking...

Definition at line 720 of file exodusII_io_helper.h.

Referenced by get_inverse_side_map().

const int* libMesh::ExodusII_IO_Helper::Conversion::node_map
private

Pointer to the node map for this element.

Definition at line 683 of file exodusII_io_helper.h.

Referenced by get_node_map().

size_t libMesh::ExodusII_IO_Helper::Conversion::node_map_size
private

The size of the node map array, this helps with bounds checking...

Definition at line 688 of file exodusII_io_helper.h.

Referenced by get_node_map().

const int* libMesh::ExodusII_IO_Helper::Conversion::side_map
private

Pointer to the side map for this element.

Definition at line 705 of file exodusII_io_helper.h.

Referenced by get_side_map().

size_t libMesh::ExodusII_IO_Helper::Conversion::side_map_size
private

The size of the side map array, this helps with bounds checking...

Definition at line 710 of file exodusII_io_helper.h.

Referenced by get_side_map().


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:19 UTC

Hosted By:
SourceForge.net Logo