linearFEM::CIdentity1d Class Referenceabstract
Discrete equivalent for a reaction term in 1D for linear FEM. More...
#include <bilinearForm1D.hh>
Public Member Functions | |
CIdentity1d (const concepts::Formula< Real > &frm, const uint gauss_p=1) | |
Constructor. More... | |
virtual CIdentity1d * | clone () const |
Virtual constructor. More... | |
virtual BilinearForm * | clone () const=0 |
Virtual constructor. More... | |
virtual void | operator() (const concepts::Element< Real > &elmX, const concepts::Element< Real > &elmY, concepts::ElementMatrix< Real > &em) const |
virtual void | operator() (const Element< typename Realtype< Real >::type > &elmX, const Element< typename Realtype< Real >::type > &elmY, ElementMatrix< Real > &em) const=0 |
Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em . More... | |
virtual void | operator() (const Element< typename Realtype< Real >::type > &elmX, const Element< typename Realtype< Real >::type > &elmY, ElementMatrix< Real > &em, const ElementPair< typename Realtype< Real >::type > &ep) const |
Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em . More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
std::unique_ptr< const concepts::Formula< Real > > | frm_ |
Formula. More... | |
const concepts::Quadrature< 4 > | quad_ |
Quadrature rule. More... | |
Detailed Description
Discrete equivalent for a reaction term in 1D for linear FEM.
This bilinear form computes the mass matrix resulting from the discretization of a reaction term with a varying reaction coefficient c given by a formula frm
(to be specified in the constructor):
for the element shape functions .
Definition at line 67 of file bilinearForm1D.hh.
Constructor & Destructor Documentation
◆ CIdentity1d()
|
inline |
Constructor.
- Parameters
-
frm Formula for the coefficients gauss_p Number of points for the Gaussian quadrature rule
Definition at line 73 of file bilinearForm1D.hh.
Member Function Documentation
◆ clone() [1/2]
|
inlinevirtual |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::Cloneable.
Definition at line 79 of file bilinearForm1D.hh.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in hp3D::RotRot, hp3D::Hook, hp3D::DivDiv< Weight >, hp3D::Identity< F >, hp3D::Laplace< F >, hp3D::BilinearFormTwoPartDeriv< F >, hp2Dedge::EdgeIdentity, hp2Dedge::Rotuv, hp2Dedge::RotRot< F >, hp2Dedge::IdentityMatrix< F >, hp2Dedge::Identity< F >, hp2Dedge::GraduvMatrix< F >, hp2Dedge::Graduv< F >, hp2D::RotRot, hp2D::DivDiv< Weight >, hp2D::BilinearFormTwoPartDeriv< F >, hp2D::BilinearFormOnePartDeriv< F >, hp2D::LaplaceMatrix< F >, and hp2D::Laplace< F >.
◆ operator()() [1/3]
|
virtual |
◆ operator()() [2/3]
|
pure virtualinherited |
Evaluates the bilinear form for all shape functions on elmX
and elmY
and stores the result in the matrix em
.
- Postcondition
- The returned matrix
em
has the correct size.
- Parameters
-
elmX Left element (test functions) elmY Right element (trial functions) em Return element matrix
◆ operator()() [3/3]
|
inlinevirtualinherited |
Evaluates the bilinear form for all shape functions on elmX
and elmY
and stores the result in the matrix em
.
If this method is not reimplemented in a derived class, the default behaviour is to call the application operator without ep
.
- Postcondition
- The returned matrix
em
has the correct size.
- Parameters
-
elmX Left element elmY Right element em Return element matrix ep Element pair holding more information on the pair elmX
andelmY
Definition at line 57 of file bilinearForm.hh.
Member Data Documentation
◆ frm_
|
private |
Formula.
Definition at line 83 of file bilinearForm1D.hh.
◆ quad_
|
private |
Quadrature rule.
Definition at line 85 of file bilinearForm1D.hh.
The documentation for this class was generated from the following file:
- linearFEM/bilinearForm1D.hh