concepts::ElementFormulaVector< dim, F, G, H > Class Template Referenceabstract
Vectorial formula created from a FE function. More...
#include <elementFormula.hh>
Public Types | |
typedef Point< Real, dim > | value_type |
Public Member Functions | |
virtual ElementFormulaVector< dim, F, G, H > * | clone () const |
Virtual constructor. More... | |
virtual ElementFormulaVectorBase< Real, typename Realtype< Real >::type, Point< Real, dim >, Real > * | clone () const=0 |
Virtual constructor. More... | |
ElementFormulaVector (const Space< H > &spc, const Vector< F > &v, const ElementFunction< G, H > &f) | |
Constructor. More... | |
virtual Point< G, dim > | operator() (const ElementWithCell< H > &elm, const Real p, const Real t=0.0) const |
virtual Point< G, dim > | operator() (const ElementWithCell< H > &elm, const Real2d &p, const Real t=0.0) const |
virtual Point< G, dim > | operator() (const ElementWithCell< H > &elm, const Real3d &p, const Real t=0.0) const |
virtual Point< Real, dim > | operator() (const ElementWithCell< typename Realtype< Real >::type > &elm, const Real p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual Point< Real, dim > | operator() (const ElementWithCell< typename Realtype< Real >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual Point< Real, dim > | operator() (const ElementWithCell< typename Realtype< Real >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
Protected Member Functions | |
void | compute_ (const Element< typename Realtype< Real >::type > &elm, Array< J > &val, const P &p, const Real t=0.0) const |
Performs the computations. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
Array< Real > | coeff_ |
std::unique_ptr< const ElementFunction< Real, typename Realtype< Real >::type > > | f_ |
Element function. More... | |
const Element< typename Realtype< Real >::type > * | lastElm_ |
const Element< typename Realtype< Real >::type > * | lastElmOur_ |
const Space< typename Realtype< Real >::type > & | spc_ |
const Vector< Real > | v_ |
Private Member Functions | |
void | getElement_ (const Element< typename Realtype< Real >::type > &elm, const Element< typename Realtype< Real >::type > *&elmOur) const |
Computes elmOur from elm to be in the space of v_ . More... | |
uint | getKey_ (const Element< typename Realtype< Real >::type > &elm) const |
Returns the key of elm . More... | |
Private Attributes | |
std::unordered_map< uint, const Element< typename Realtype< Real >::type > * > | elementPointer_ |
Maps key of the cell to the element in the right space. More... | |
Detailed Description
template<uint dim, class F = Real, class G = F, class H = typename Realtype<F>::type>
class concepts::ElementFormulaVector< dim, F, G, H >
Vectorial formula created from a FE function.
The FE function is described by a vector of coefficients.
- Parameters
-
dim Dimension of output vector (e.g. gradient has two components) F type of the coefficients G data type of the element function H type of the space, i.e. that of the T matrices
- Examples
- inhomDirichletBCs.cc, and parallelizationTutorial.cc.
Definition at line 144 of file elementFormula.hh.
Member Typedef Documentation
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ ElementFormulaVector()
concepts::ElementFormulaVector< dim, F, G, H >::ElementFormulaVector | ( | const Space< H > & | spc, |
const Vector< F > & | v, | ||
const ElementFunction< G, H > & | f | ||
) |
Constructor.
- Parameters
-
v Vector of coefficients of the FE function f Function to be evaluated on the FE function, eg. hp2D::Value
Definition at line 168 of file elementFormula.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 160 of file elementFormula.hh.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::ElementFormula< Point< Real, dim >, typename Realtype< Real >::type >.
◆ compute_()
|
protectedinherited |
Performs the computations.
Definition at line 62 of file elementFormula.hh.
◆ getElement_()
|
privateinherited |
Computes elmOur
from elm
to be in the space of v_
.
Definition at line 71 of file elementFormula.hh.
◆ getKey_()
|
privateinherited |
Returns the key of elm
.
Definition at line 69 of file elementFormula.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 217 of file elementFormula.hh.
◆ operator()() [1/6]
|
virtual |
Definition at line 177 of file elementFormula.hh.
◆ operator()() [2/6]
|
virtual |
Definition at line 190 of file elementFormula.hh.
◆ operator()() [3/6]
|
virtual |
Definition at line 204 of file elementFormula.hh.
◆ operator()() [4/6]
◆ operator()() [5/6]
◆ operator()() [6/6]
Member Data Documentation
◆ coeff_
|
mutableprotectedinherited |
Definition at line 58 of file elementFormula.hh.
◆ elementPointer_
|
privateinherited |
Maps key of the cell to the element in the right space.
Definition at line 66 of file elementFormula.hh.
◆ f_
|
protectedinherited |
Element function.
Definition at line 54 of file elementFormula.hh.
◆ lastElm_
|
mutableprotectedinherited |
Definition at line 56 of file elementFormula.hh.
◆ lastElmOur_
|
protectedinherited |
Definition at line 56 of file elementFormula.hh.
◆ spc_
|
protectedinherited |
Definition at line 51 of file elementFormula.hh.
◆ v_
|
protectedinherited |
Definition at line 52 of file elementFormula.hh.
The documentation for this class was generated from the following file:
- function/elementFormula.hh