Poster of Linux kernelThe best gift for a Linux geek
QuadratureRules

QuadratureRules

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

NAME

QuadratureRules -  

SYNOPSIS


 

Functions


std::string name (const QuadratureType t)
 

Variables


const unsigned int num_rules = 5

const QuadratureType valid_elem_rules []

const unsigned int num_valid_elem_rules = 3
 

Detailed Description

A namespace for utility functions for quadrature rules.  

Function Documentation

 

std::string QuadratureRules::name (const QuadratureTypet)Returns a standard string representation for the specific quadrature rule.

Definition at line 30 of file quadrature_rules.C.

References libMeshEnums::QGAUSS, libMeshEnums::QJACOBI_1_0, libMeshEnums::QJACOBI_2_0, libMeshEnums::QSIMPSON, and libMeshEnums::QTRAP.

{
  std::string its_name;
  
  switch (q)
    {
      
    case QGAUSS:
      its_name = 'Gauss-Legendre Quadrature';
      break;

    case QJACOBI_1_0:
      its_name = 'Jacobi(1,0)-Gauss Quadrature';
      break;

    case QJACOBI_2_0:
      its_name = 'Jacobi(2,0)-Gauss Quadrature';
      break;

    case QSIMPSON:
      its_name = 'Simpson Rule';
      break;

    case QTRAP:
      its_name = 'Trapezoidal Rule';
      break;


    default:
      { 
        std::cerr << 'ERROR: Bad qt=' << q << std::endl;
        libmesh_error();
      }
    }
  
  return its_name;
}
 

Variable Documentation

 

const unsigned int QuadratureRules::num_rules = 5The number of quadrature rules that are defined (INVALD_Q_RULE excluded). You might have to update this if you add a new one!

Definition at line 45 of file quadrature_rules.h.  

const unsigned int QuadratureRules::num_valid_elem_rules = 3The number of valid quadrature rules for numerical integration over geometric entities.

Definition at line 60 of file quadrature_rules.h.  

const QuadratureType QuadratureRules::valid_elem_rules[]Initial value:

 {QGAUSS,
                                             QSIMPSON,
                                             QTRAP}
The types of quadrature rules that may be used for numerical integration over geometric entities.

Definition at line 52 of file quadrature_rules.h.  

Author

Generated automatically by Doxygen for libMesh from the source code.


 

Index

NAME
SYNOPSIS
Functions
Variables
Detailed Description
Function Documentation
std::string QuadratureRules::name (const QuadratureTypet)Returns a standard string representation for the specific quadrature rule.
Variable Documentation
const unsigned int QuadratureRules::num_rules = 5The number of quadrature rules that are defined (INVALD_Q_RULE excluded). You might have to update this if you add a new one!
const unsigned int QuadratureRules::num_valid_elem_rules = 3The number of valid quadrature rules for numerical integration over geometric entities.
const QuadratureType QuadratureRules::valid_elem_rules[]Initial value:
Author

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