libMesh
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
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)
 Constructor. More...
 
 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 int *sfm, size_t sfm_size, const int *isfm, size_t isfm_size, size_t sfi_offset, const ElemType ct, std::string ex_type)
 Constructor. More...
 
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
 
int get_shellface_map (int i) const
 
int get_inverse_shellface_map (int i) const
 
ElemType get_canonical_type () const
 
std::string exodus_elem_type () const
 
std::size_t get_shellface_index_offset () const
 

Static Public Attributes

static const int invalid_id
 An invalid_id that can be returned to signal failure in case something goes wrong. More...
 

Private Attributes

const int * node_map
 Pointer to the node map for this element. More...
 
size_t node_map_size
 The size of the node map array, this helps with bounds checking and is only used in asserts. More...
 
const int * inverse_node_map
 Pointer to the inverse node map for this element. More...
 
size_t inverse_node_map_size
 The size of the inverse node map array, this helps with bounds checking and is only used in asserts. More...
 
const int * side_map
 Pointer to the side map for this element. More...
 
size_t side_map_size
 The size of the side map array, this helps with bounds checking... More...
 
const int * inverse_side_map
 Pointer to the inverse side map for this element. More...
 
size_t inverse_side_map_size
 The size of the inverse side map array, this helps with bounds checking and is only used in asserts. More...
 
const int * shellface_map
 Pointer to the shellface map for this element. More...
 
size_t shellface_map_size
 The size of the shellface map array, this helps with bounds checking and is only used in asserts. More...
 
const int * inverse_shellface_map
 Pointer to the inverse shellface map for this element. More...
 
size_t inverse_shellface_map_size
 The size of the inverse shellface map array, this helps with bounds checking and is only used in asserts. More...
 
size_t shellface_index_offset
 The shellface index offset defines the offset due to a difference between libMesh and Exodus in indexing sidesets. More...
 
const ElemType canonical_type
 The canonical (i.e. More...
 
const std::string exodus_type
 The string corresponding to the Exodus type for this element. More...
 

Detailed Description

Definition at line 700 of file exodusII_io_helper.h.

Constructor & Destructor Documentation

◆ Conversion() [1/2]

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 
)

Constructor.

Initializes the const private member variables.

Definition at line 708 of file exodusII_io_helper.h.

718  : node_map(nm),
719  node_map_size(nm_size),
720  inverse_node_map(inm),
721  inverse_node_map_size(inm_size),
722  side_map(sm),
723  side_map_size(sm_size),
724  inverse_side_map(ism),
725  inverse_side_map_size(ism_size),
726  shellface_map(nullptr),
728  inverse_shellface_map(nullptr),
731  canonical_type(ct),
732  exodus_type(ex_type)
733  {}
size_t inverse_node_map_size
The size of the inverse node map array, this helps with bounds checking and is only used in asserts...
size_t shellface_map_size
The size of the shellface map array, this helps with bounds checking and is only used in asserts...
const std::string exodus_type
The string corresponding to the Exodus type for this element.
const int * inverse_node_map
Pointer to the inverse node map for this element.
size_t node_map_size
The size of the node map array, this helps with bounds checking and is only used in asserts...
const int * inverse_side_map
Pointer to the inverse side map for this element.
size_t inverse_shellface_map_size
The size of the inverse shellface map array, this helps with bounds checking and is only used in asse...
const int * node_map
Pointer to the node map for this element.
size_t side_map_size
The size of the side map array, this helps with bounds checking...
const int * shellface_map
Pointer to the shellface map for this element.
size_t shellface_index_offset
The shellface index offset defines the offset due to a difference between libMesh and Exodus in index...
const int * side_map
Pointer to the side map for this element.
const ElemType canonical_type
The canonical (i.e.
const int * inverse_shellface_map
Pointer to the inverse shellface map for this element.
size_t inverse_side_map_size
The size of the inverse side map array, this helps with bounds checking and is only used in asserts...

◆ Conversion() [2/2]

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 int *  sfm,
size_t  sfm_size,
const int *  isfm,
size_t  isfm_size,
size_t  sfi_offset,
const ElemType  ct,
std::string  ex_type 
)

Constructor.

Initializes the const private member variables. In this case we also initialize shellface data.

Definition at line 739 of file exodusII_io_helper.h.

References inverse_node_map_size, inverse_shellface_map_size, inverse_side_map_size, libMesh::libmesh_ignore(), node_map_size, and shellface_map_size.

754  : node_map(nm),
755  node_map_size(nm_size),
756  inverse_node_map(inm),
757  inverse_node_map_size(inm_size),
758  side_map(sm),
759  side_map_size(sm_size),
760  inverse_side_map(ism),
761  inverse_side_map_size(ism_size),
762  shellface_map(sfm),
763  shellface_map_size(sfm_size),
764  inverse_shellface_map(isfm),
765  inverse_shellface_map_size(isfm_size),
766  shellface_index_offset(sfi_offset),
767  canonical_type(ct),
768  exodus_type(ex_type)
769  {
770  // libmesh_ignore variables that are only used in asserts to avoid
771  // compiler warnings.
777  }
size_t inverse_node_map_size
The size of the inverse node map array, this helps with bounds checking and is only used in asserts...
size_t shellface_map_size
The size of the shellface map array, this helps with bounds checking and is only used in asserts...
const std::string exodus_type
The string corresponding to the Exodus type for this element.
const int * inverse_node_map
Pointer to the inverse node map for this element.
size_t node_map_size
The size of the node map array, this helps with bounds checking and is only used in asserts...
const int * inverse_side_map
Pointer to the inverse side map for this element.
void libmesh_ignore(const Args &...)
size_t inverse_shellface_map_size
The size of the inverse shellface map array, this helps with bounds checking and is only used in asse...
const int * node_map
Pointer to the node map for this element.
size_t side_map_size
The size of the side map array, this helps with bounds checking...
const int * shellface_map
Pointer to the shellface map for this element.
size_t shellface_index_offset
The shellface index offset defines the offset due to a difference between libMesh and Exodus in index...
const int * side_map
Pointer to the side map for this element.
const ElemType canonical_type
The canonical (i.e.
const int * inverse_shellface_map
Pointer to the inverse shellface map for this element.
size_t inverse_side_map_size
The size of the inverse side map array, this helps with bounds checking and is only used in asserts...

Member Function Documentation

◆ exodus_elem_type()

std::string libMesh::ExodusII_IO_Helper::Conversion::exodus_elem_type ( ) const
Returns
The string corresponding to the Exodus type for this element.

Definition at line 857 of file exodusII_io_helper.h.

References exodus_type.

857 { return exodus_type; }
const std::string exodus_type
The string corresponding to the Exodus type for this element.

◆ get_canonical_type()

ElemType libMesh::ExodusII_IO_Helper::Conversion::get_canonical_type ( ) const
Returns
The canonical element type for this element.

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

Definition at line 852 of file exodusII_io_helper.h.

References canonical_type.

852 { return canonical_type; }
const ElemType canonical_type
The canonical (i.e.

◆ get_inverse_node_map()

int libMesh::ExodusII_IO_Helper::Conversion::get_inverse_node_map ( int  i) const
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
All elements except Hex27 currently have the same node numbering as libmesh elements.

Definition at line 801 of file exodusII_io_helper.h.

References inverse_node_map, and inverse_node_map_size.

802  {
803  libmesh_assert_less (static_cast<size_t>(i), inverse_node_map_size);
804  return inverse_node_map[i];
805  }
size_t inverse_node_map_size
The size of the inverse node map array, this helps with bounds checking and is only used in asserts...
const int * inverse_node_map
Pointer to the inverse node map for this element.

◆ get_inverse_shellface_map()

int libMesh::ExodusII_IO_Helper::Conversion::get_inverse_shellface_map ( int  i) const
Returns
The ith component of the inverse shellface map for this element.

Definition at line 840 of file exodusII_io_helper.h.

References inverse_shellface_map, and inverse_shellface_map_size.

841  {
842  libmesh_assert_less (static_cast<size_t>(i), inverse_shellface_map_size);
843  return inverse_shellface_map[i];
844  }
size_t inverse_shellface_map_size
The size of the inverse shellface map array, this helps with bounds checking and is only used in asse...
const int * inverse_shellface_map
Pointer to the inverse shellface map for this element.

◆ get_inverse_side_map()

int libMesh::ExodusII_IO_Helper::Conversion::get_inverse_side_map ( int  i) const
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 821 of file exodusII_io_helper.h.

References inverse_side_map, and inverse_side_map_size.

822  {
823  libmesh_assert_less (static_cast<size_t>(i), inverse_side_map_size);
824  return inverse_side_map[i];
825  }
const int * inverse_side_map
Pointer to the inverse side map for this element.
size_t inverse_side_map_size
The size of the inverse side map array, this helps with bounds checking and is only used in asserts...

◆ get_node_map()

int libMesh::ExodusII_IO_Helper::Conversion::get_node_map ( int  i) const
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 785 of file exodusII_io_helper.h.

References node_map, and node_map_size.

786  {
787  libmesh_assert_less (static_cast<size_t>(i), node_map_size);
788  return node_map[i];
789  }
size_t node_map_size
The size of the node map array, this helps with bounds checking and is only used in asserts...
const int * node_map
Pointer to the node map for this element.

◆ get_shellface_index_offset()

std::size_t libMesh::ExodusII_IO_Helper::Conversion::get_shellface_index_offset ( ) const
Returns
The shellface index offset.

Definition at line 862 of file exodusII_io_helper.h.

References shellface_index_offset.

862 { return shellface_index_offset; }
size_t shellface_index_offset
The shellface index offset defines the offset due to a difference between libMesh and Exodus in index...

◆ get_shellface_map()

int libMesh::ExodusII_IO_Helper::Conversion::get_shellface_map ( int  i) const
Returns
The ith component of the shellface map for this element.
Note
Nothing is currently using this.

Definition at line 831 of file exodusII_io_helper.h.

References shellface_map, and shellface_map_size.

832  {
833  libmesh_assert_less (static_cast<size_t>(i), shellface_map_size);
834  return shellface_map[i];
835  }
size_t shellface_map_size
The size of the shellface map array, this helps with bounds checking and is only used in asserts...
const int * shellface_map
Pointer to the shellface map for this element.

◆ get_side_map()

int libMesh::ExodusII_IO_Helper::Conversion::get_side_map ( int  i) const
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.

Member Data Documentation

◆ canonical_type

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

The canonical (i.e.

standard for this library) element type.

Definition at line 951 of file exodusII_io_helper.h.

Referenced by get_canonical_type().

◆ exodus_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 956 of file exodusII_io_helper.h.

Referenced by exodus_elem_type().

◆ invalid_id

const int libMesh::ExodusII_IO_Helper::Conversion::invalid_id
static

An invalid_id that can be returned to signal failure in case something goes wrong.

Definition at line 868 of file exodusII_io_helper.h.

◆ inverse_node_map

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 887 of file exodusII_io_helper.h.

Referenced by get_inverse_node_map().

◆ inverse_node_map_size

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 and is only used in asserts.

Definition at line 893 of file exodusII_io_helper.h.

Referenced by Conversion(), and get_inverse_node_map().

◆ inverse_shellface_map

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

Pointer to the inverse shellface map for this element.

Definition at line 932 of file exodusII_io_helper.h.

Referenced by get_inverse_shellface_map().

◆ inverse_shellface_map_size

size_t libMesh::ExodusII_IO_Helper::Conversion::inverse_shellface_map_size
private

The size of the inverse shellface map array, this helps with bounds checking and is only used in asserts.

Definition at line 938 of file exodusII_io_helper.h.

Referenced by Conversion(), and get_inverse_shellface_map().

◆ inverse_side_map

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

Pointer to the inverse side map for this element.

Definition at line 908 of file exodusII_io_helper.h.

Referenced by get_inverse_side_map().

◆ inverse_side_map_size

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 and is only used in asserts.

Definition at line 914 of file exodusII_io_helper.h.

Referenced by Conversion(), and get_inverse_side_map().

◆ node_map

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

Pointer to the node map for this element.

Definition at line 874 of file exodusII_io_helper.h.

Referenced by get_node_map().

◆ node_map_size

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

The size of the node map array, this helps with bounds checking and is only used in asserts.

Definition at line 880 of file exodusII_io_helper.h.

Referenced by Conversion(), and get_node_map().

◆ shellface_index_offset

size_t libMesh::ExodusII_IO_Helper::Conversion::shellface_index_offset
private

The shellface index offset defines the offset due to a difference between libMesh and Exodus in indexing sidesets.

This is relevant for shell elements, for example, since Exodus includes extra "shell face" sides in that case.

Definition at line 945 of file exodusII_io_helper.h.

Referenced by get_shellface_index_offset().

◆ shellface_map

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

Pointer to the shellface map for this element.

Only the inverse is actually used currently, this one is provided for completeness and libmesh_ingore()d to avoid warnings.

Definition at line 921 of file exodusII_io_helper.h.

Referenced by get_shellface_map().

◆ shellface_map_size

size_t libMesh::ExodusII_IO_Helper::Conversion::shellface_map_size
private

The size of the shellface map array, this helps with bounds checking and is only used in asserts.

Definition at line 927 of file exodusII_io_helper.h.

Referenced by Conversion(), and get_shellface_map().

◆ side_map

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

Pointer to the side map for this element.

Definition at line 898 of file exodusII_io_helper.h.

◆ side_map_size

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 903 of file exodusII_io_helper.h.


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