v0.9.0
Public Member Functions | List of all members
VolRule Struct Reference

Set integration rule. More...

Public Member Functions

int operator() (int, int, int) const
 
int operator() (int, int, int order) const
 
int operator() (int, int, int p) const
 

Detailed Description

Set integration rule.

Set integration rule to volume elements.

This rule is used to integrate \(\nabla v \cdot \nabla u\), thus if the approximation field and the testing field are polynomials of order "p", then the rule for the exact integration is 2*(p-1).

Integration rule is order of polynomial which is calculated exactly. Finite element selects integration method based on return of this function.

Examples
elasticity.cpp, EshelbianPlasticity.cpp, PoissonOperators.hpp, simple_elasticity.cpp, simple_interface.cpp, testing_jacobian_of_hook_element.cpp, testing_jacobian_of_hook_scaled_with_density_element.cpp, and UnsaturatedFlow.hpp.

Definition at line 103 of file simple_interface.cpp.

Member Function Documentation

◆ operator()() [1/3]

int VolRule::operator() ( int  ,
int  ,
int  order 
) const

Definition at line 94 of file elasticity.cpp.

94 { return 2 * (order - 1); }

◆ operator()() [2/3]

int VolRule::operator() ( int  ,
int  ,
int   
) const

Definition at line 104 of file simple_interface.cpp.

104 { return 2; }

◆ operator()() [3/3]

int VolRule::operator() ( int  ,
int  ,
int  p 
) const

Definition at line 384 of file simple_elasticity.cpp.

384  {
385  return 2 * (p - 1);
386  }

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