hp2D::GradLinearForm< F > Class Template Referenceabstract
Linear form in 2D. More...
#include <linearForm.hh>
Public Member Functions | |
GradLinearForm (const concepts::ElementFormulaContainer< concepts::Point< F, 2 > > frm, bool ignoreMissingElem=false) | |
Constructor. More... | |
GradLinearForm (const concepts::ElementFormulaContainer< F > frm1, const concepts::ElementFormulaContainer< F > frm2, bool ignoreMissingElem=false) | |
Constructor. More... | |
virtual void | operator() (const concepts::Element< Real > &elm, concepts::ElementMatrix< F > &em) const |
Computes the element load vector. More... | |
virtual void | operator() (const Element< typename Realtype< concepts::Real >::type > &elm, ElementMatrix< concepts::Real > &em) const=0 |
Computes the element contribution to the function. More... | |
virtual void | setBasis (Basis basis) |
Public Attributes | |
Basis | basis_ |
Protected Member Functions | |
void | computeIntermediate_ (const BaseQuad< concepts::Real > &elm) const |
Compute the intermediate data for element matrix computation. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Protected Attributes | |
concepts::ElementFormulaContainer< concepts::Point< concepts::Real, 2 > > | frm_ |
ElementFormula. More... | |
ArrayElementFormula< concepts::Point< concepts::Real, 2 > > | intermediateVector_ |
Intermediate vector (on each quadrature point) More... | |
Private Member Functions | |
virtual void | operator() (const Quad< Real > &elm, concepts::ElementMatrix< F > &em) const |
Private Attributes | |
bool | ignoreMissingElem_ |
Detailed Description
template<class F = concepts::Real>
class hp2D::GradLinearForm< F >
Linear form in 2D.
This linear form computes
Currently only on quadrilaterals.
- Examples
- inhomDirichletBCs.cc.
Definition at line 136 of file linearForm.hh.
Constructor & Destructor Documentation
◆ GradLinearForm() [1/2]
hp2D::GradLinearForm< F >::GradLinearForm | ( | const concepts::ElementFormulaContainer< F > | frm1, |
const concepts::ElementFormulaContainer< F > | frm2, | ||
bool | ignoreMissingElem = false |
||
) |
Constructor.
- Parameters
-
frm1 First component of the formula frm2 Second component of the formula
◆ GradLinearForm() [2/2]
hp2D::GradLinearForm< F >::GradLinearForm | ( | const concepts::ElementFormulaContainer< concepts::Point< F, 2 > > | frm, |
bool | ignoreMissingElem = false |
||
) |
Constructor.
- Parameters
-
frm Vectorial formula ignoreMissingElem do not throw an exceptiont for incompatible elements, just ignore elements like GfemQuads
Member Function Documentation
◆ computeIntermediate_()
|
protectedinherited |
Compute the intermediate data for element matrix computation.
This method is important for the derivated linear forms.
◆ info()
|
protectedvirtual |
Reimplemented from concepts::LinearForm< concepts::Real >.
Reimplemented in hp2D::PlCurlLinearForm< F >.
◆ operator()() [1/3]
|
virtual |
Computes the element load vector.
As for the computation of an element stiffness matrix, there are the loops over all quadrature points and the loops over all shape functions.
- Parameters
-
elm The element for which the load vector should be computed. em The load vector
◆ operator()() [2/3]
|
pure virtualinherited |
Computes the element contribution to the function.
- Parameters
-
elm Element on which the computations should be performed em The local matrix
◆ operator()() [3/3]
|
privatevirtual |
◆ setBasis()
|
inlinevirtualinherited |
Definition at line 68 of file linearForm.hh.
Member Data Documentation
◆ basis_
|
mutableinherited |
Definition at line 71 of file linearForm.hh.
◆ frm_
|
protectedinherited |
ElementFormula.
Definition at line 139 of file linearFormHelper.hh.
◆ ignoreMissingElem_
|
private |
Definition at line 172 of file linearForm.hh.
◆ intermediateVector_
|
mutableprotectedinherited |
The documentation for this class was generated from the following file:
- hp2D/linearForm.hh