elementFormula.hh
virtual ElementFormulaVector< 1, F, G, H > * clone() const
Virtual constructor.
Definition: elementFormula.hh:247
An abstract class for a function in a FE space.
Definition: elementFormula.hh:25
Base class for Formula created from a FE function.
Definition: elementFormula.hh:40
void compute_(const Element< G > &elm, Array< J > &val, const P &p, const Real t=0.0) const
Performs the computations.
Definition: elementFormula.hh:118
virtual bool eos() const =0
Returns true if the end of the scanned set is reached.
virtual ElementFormulaVectorBase< F, G, H, I > * clone() const =0
Virtual constructor.
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
Definition: cell.hh:39
std::unique_ptr< const ElementFunction< I, G > > f_
Element function.
Definition: elementFormula.hh:54
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:394
Scalar formula created from a FE function.
Definition: elementFormula.hh:231
virtual const TMatrixBase< F > & T() const =0
Returns the T matrix of the element.
ElementFormulaVector(const Space< H > &spc, const Vector< F > &v, const ElementFunction< G, H > &f)
Constructor.
Definition: elementFormula.hh:169
#define DEBUGL(doit, msg)
const Element< G > * lastElmOur_
Definition: elementFormula.hh:56
Vectorial formula created from a FE function.
Definition: elementFormula.hh:145
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition: elementFormula.hh:217
void getElement_(const Element< G > &elm, const Element< G > *&elmOur) const
Computes elmOur from elm to be in the space of v_.
Definition: elementFormula.hh:104
Interface for a formula defined element by element.
Definition: elementFormula.hh:35
virtual Scanner * scan() const =0
Returns a scanner to iterate over the elements of the space.
const Element< G > * lastElm_
Definition: elementFormula.hh:56
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
Definition: scannerConnectors.hh:29
virtual ElementFormulaVector< dim, F, G, H > * clone() const
Virtual constructor.
Definition: elementFormula.hh:160
void memorycpy(F *dest, const G *src, size_t n)
Copies n entries from src to dest (faster than std::memcpy)
Definition: vectorsMatrices.hh:31
std::unordered_map< uint, const Element< G > * > elementPointer_
Maps key of the cell to the element in the right space.
Definition: elementFormula.hh:66
virtual Point< G, dim > operator()(const ElementWithCell< H > &elm, const Real p, const Real t=0.0) const
Definition: elementFormula.hh:178
virtual const Cell & cell() const =0
Returns the cell on which the element is built.
ElementFormulaVectorBase(const Space< G > &spc, const Vector< F > &v, const ElementFunction< I, G > &f)
Constructor.
Definition: elementFormula.hh:76
Exception class to express that an inquired element is not in the domain.
Definition: exceptions.hh:24
#define conceptsAssert3(cond, exc, msg)
Assert that a certain condition is fulfilled.
Definition: exceptions.hh:442