Poster of Linux kernelThe best gift for a Linux geek
ElementTypes

ElementTypes

Section: C Library Functions (3) Updated: Thu Apr 7 2011
Local index Up
 

NAME

ElementTypes -  

SYNOPSIS


 

Functions


std::string basic_name (const ElemType t)

std::string name (const ElemType t)
 

Variables


const unsigned int num_types = 24
 

Function Documentation

 

std::string ElementTypes::basic_name (const ElemTypet)Returns a standard string representation of the basic name for element type t. For example, a HEX27 has the basic name of 'Hexahedron'.

Definition at line 30 of file elem_type.C.

References libMeshEnums::EDGE2, libMeshEnums::EDGE3, libMeshEnums::EDGE4, libMeshEnums::HEX20, libMeshEnums::HEX27, libMeshEnums::HEX8, libMeshEnums::INFEDGE2, libMeshEnums::INFHEX16, libMeshEnums::INFHEX18, libMeshEnums::INFHEX8, libMeshEnums::INFPRISM12, libMeshEnums::INFPRISM6, libMeshEnums::INFQUAD4, libMeshEnums::INFQUAD6, libMeshEnums::PRISM18, libMeshEnums::PRISM6, libMeshEnums::PYRAMID5, libMeshEnums::QUAD4, libMeshEnums::QUAD8, libMeshEnums::QUAD9, libMeshEnums::TET10, libMeshEnums::TET4, libMeshEnums::TRI3, and libMeshEnums::TRI6.

{
  std::string its_name;
  switch (t)
    {
    case EDGE2:
    case EDGE3:
    case EDGE4:
      {
        its_name = 'Edge';
        break;
      }

    case TRI3:
    case TRI6:
      {
        its_name = 'Triangle';
        break;
      }

    case QUAD4:
    case QUAD8:
    case QUAD9:
      {
        its_name = 'Quadrilateral';
        break;
      }

    case TET4:
    case TET10:
      {
        its_name = 'Tetrahedron';
        break;
      }

    case HEX8:
    case HEX20:
    case HEX27:
      {
        its_name = 'Hexahedron';
        break;
      }

    case PRISM6:
    case PRISM18:
      {
        its_name = 'Prism';
        break;
      }

    case PYRAMID5:
      {
        its_name = 'Pyramid';
        break;
      }



#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS

    // infinite elements
    case INFEDGE2:
      {
        its_name = 'Infinite Edge';
        break;
      }

    case INFQUAD4:
    case INFQUAD6:
      {
        its_name = 'Infinite Quadrilateral';
        break;
      }

    case INFHEX8:
    case INFHEX16:
    case INFHEX18:
      {
        its_name = 'Infinite Hexahedron';
        break;
      }

    case INFPRISM6:
    case INFPRISM12:
      {
        its_name = 'Infinite Prism';
        break;
      }

#endif


    default:
      {
        std::cout << 'Undefined element type!.' << std::endl;
        libmesh_error();
      }
    }
  return its_name;
}
 

std::string ElementTypes::name (const ElemTypet)Returns a standard string representation for the specific name of element type t. For example, HEX27 returns 'Hex 27'.

Definition at line 132 of file elem_type.C.

References libMeshEnums::EDGE2, libMeshEnums::EDGE3, libMeshEnums::EDGE4, libMeshEnums::HEX20, libMeshEnums::HEX27, libMeshEnums::HEX8, libMeshEnums::INFEDGE2, libMeshEnums::INFHEX16, libMeshEnums::INFHEX18, libMeshEnums::INFHEX8, libMeshEnums::INFPRISM12, libMeshEnums::INFPRISM6, libMeshEnums::INFQUAD4, libMeshEnums::INFQUAD6, libMeshEnums::PRISM18, libMeshEnums::PRISM6, libMeshEnums::PYRAMID5, libMeshEnums::QUAD4, libMeshEnums::QUAD8, libMeshEnums::QUAD9, libMeshEnums::TET10, libMeshEnums::TET4, libMeshEnums::TRI3, and libMeshEnums::TRI6.

{
  std::string its_name;
  switch (t)
    {
    case EDGE2:
      {
        its_name = 'Edge 2';
        break;
      }
      
    case EDGE3:
      {
        its_name = 'Edge 3';
        break;
      }
      
    case EDGE4:
      {
        its_name = 'Edge 4';
        break;
      }

    case TRI3:
      {
        its_name = 'Tri 3';
        break;
      }
      
    case TRI6:
      {
        its_name = 'Tri 6';
        break;
      }

    case QUAD4:
      {
        its_name = 'Quad 4';
        break;
      }
      
    case QUAD8:
      {
        its_name = 'Quad 8';
        break;
      }
      
    case QUAD9:
      {
        its_name = 'Quad 9';
        break;
      }

    case TET4:
      {
        its_name = 'Tet 4';
        break;
      }
      
    case TET10:
      {
        its_name = 'Tet 10';
        break;
      }

    case HEX8:
      {
        its_name = 'Hex 8';
        break;
      }
      
    case HEX20:
      {
        its_name = 'Hex 20';
        break;
      }
      
    case HEX27:
      {
        its_name = 'Hex 27';
        break;
      }

    case PRISM6:
      {
        its_name = 'Prism 6';
        break;
      }
      
    case PRISM18:
      {
        its_name = 'Prism 8';
        break;
      }

    case PYRAMID5:
      {
        its_name = 'Pyramid 5';
        break;
      }



#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS

    case INFEDGE2:
      {
        its_name = 'Infinite Edge 2';
        break;
      }

    case INFQUAD4:
      {
        its_name = 'Infinite Quad 4';
        break;
      }

    case INFQUAD6:
      {
        its_name = 'Infinite Quad 6';
        break;
      }

    case INFHEX8:
      {
        its_name = 'Infinite Hex 8';
        break;
      }

    case INFHEX16:
      {
        its_name = 'Infinite Hex 16';
        break;
      }

    case INFHEX18:
      {
        its_name = 'Infinite Hex 18';
        break;
      }

    case INFPRISM6:
      {
        its_name = 'Infinite Prism 6';
        break;
      }

    case INFPRISM12:
      {
        its_name = 'Infinite Prism 12';
        break;
      }

#endif


      
    default:
      {
        std::cout << 'Undefined element type!.' << std::endl;
        libmesh_error();
      }
    }
  return its_name;
}
 

Variable Documentation

 

const unsigned int ElementTypes::num_types = 24The number of element types that are defined (INVALD_ELEM excluded). You might have to update this if you add a new one!

Definition at line 46 of file elem_type.h.  

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Functions
Variables
Function Documentation
std::string ElementTypes::basic_name (const ElemTypet)Returns a standard string representation of the basic name for element type t. For example, a HEX27 has the basic name of 'Hexahedron'.
std::string ElementTypes::name (const ElemTypet)Returns a standard string representation for the specific name of element type t. For example, HEX27 returns 'Hex 27'.
Variable Documentation
const unsigned int ElementTypes::num_types = 24The number of element types that are defined (INVALD_ELEM excluded). You might have to update this if you add a new one!
Author

This document was created by man2html, using the manual pages.
Time: 21:45:29 GMT, April 16, 2011