libMesh::ExodusII_IO_Helper::Conversion Class Reference

#include <exodusII_io_helper.h>

List of all members.

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

00739     : node_map(nm),
00740       node_map_size(nm_size),
00741       inverse_node_map(inm),
00742       inverse_node_map_size(inm_size),
00743       side_map(sm),
00744       side_map_size(sm_size),
00745       inverse_side_map(ism),
00746       inverse_side_map_size(ism_size),
00747       canonical_type(ct),
00748       exodus_type(ex_type)
00749   {}


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

References exodus_type.

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

00806 { 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 801 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().

00801 { 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 768 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().

00769   {
00770     libmesh_assert_less (static_cast<size_t>(i), inverse_node_map_size);
00771     return inverse_node_map[i];
00772   }

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 790 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::Nemesis_IO_Helper::write_sidesets(), and libMesh::ExodusII_IO_Helper::write_sidesets().

00791   {
00792     libmesh_assert_less (static_cast<size_t>(i), inverse_side_map_size);
00793     return inverse_side_map[i];
00794   }

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

00757   {
00758     libmesh_assert_less (static_cast<size_t>(i), node_map_size);
00759     return node_map[i];
00760   }

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

References side_map, and side_map_size.

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

00780   {
00781     libmesh_assert_less (static_cast<size_t>(i), side_map_size);
00782     return side_map[i];
00783   }


Member Data Documentation

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

Definition at line 856 of file exodusII_io_helper.h.

Referenced by get_canonical_type().

The string corresponding to the Exodus type for this element

Definition at line 861 of file exodusII_io_helper.h.

Referenced by exodus_elem_type().

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

Referenced by get_inverse_node_map().

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

Definition at line 830 of file exodusII_io_helper.h.

Referenced by get_inverse_node_map().

Pointer to the inverse side map for this element.

Definition at line 845 of file exodusII_io_helper.h.

Referenced by get_inverse_side_map().

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

Definition at line 850 of file exodusII_io_helper.h.

Referenced by get_inverse_side_map().

Pointer to the node map for this element.

Definition at line 813 of file exodusII_io_helper.h.

Referenced by get_node_map().

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

Definition at line 818 of file exodusII_io_helper.h.

Referenced by get_node_map().

Pointer to the side map for this element.

Definition at line 835 of file exodusII_io_helper.h.

Referenced by get_side_map().

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

Definition at line 840 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 05 2013 19:55:18 UTC

Hosted By:
SourceForge.net Logo