deal.II version GIT relicensing-2206-gaa53ff9447 2024-12-02 09:10:00+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
QuadratureSelector< dim > Class Template Reference

#include <deal.II/base/quadrature_selector.h>

Inheritance diagram for QuadratureSelector< dim >:
Inheritance graph
[legend]

Public Member Functions

 QuadratureSelector (const std::string &s, const unsigned int order=0)
 

Static Public Member Functions

static std::string get_quadrature_names ()
 
static ::ExceptionBaseExcInvalidQGaussOrder (int arg1)
 
static ::ExceptionBaseExcInvalidOrder (std::string arg1, unsigned int arg2)
 
static ::ExceptionBaseExcInvalidQuadrature (std::string arg1)
 

Static Private Member Functions

static Quadrature< dim > create_quadrature (const std::string &s, const unsigned int order)
 

Detailed Description

template<int dim>
class QuadratureSelector< dim >

This class implements the quadrature rule passed to its constructor as a string. Supported quadratures are QGauss (of all orders), QMidpoint, QMilne, QSimpson, QTrapezoid and QWeddle.

This class is useful if you want to use flexible quadrature rules, that are read from a parameter file (see ParameterHandler for this).

Definition at line 40 of file quadrature_selector.h.

Constructor & Destructor Documentation

◆ QuadratureSelector()

template<int dim>
QuadratureSelector< dim >::QuadratureSelector ( const std::string &  s,
const unsigned int  order = 0 
)

Constructor. Takes the name of the quadrature rule (one of "gauss", "milne", "weddle", etc) and, if it is "gauss", the number of quadrature points in each coordinate direction.

Definition at line 67 of file quadrature_selector.cc.

Member Function Documentation

◆ get_quadrature_names()

template<int dim>
std::string QuadratureSelector< dim >::get_quadrature_names ( )
static

This function returns all possible names for quadratures as a list separated by |, so that you can use it for the definition of parameter files (see ParameterHandler for details).

Definition at line 77 of file quadrature_selector.cc.

◆ create_quadrature()

template<int dim>
Quadrature< dim > QuadratureSelector< dim >::create_quadrature ( const std::string &  s,
const unsigned int  order 
)
staticprivate

This static function creates a quadrature object according to the name given as a string, and the appropriate order (if the name is "gauss"). It is called from the constructor.

Definition at line 23 of file quadrature_selector.cc.


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