![]() |
Dune-Fufem 2.11-git
|
Wrapper binding a linear operator to a coefficient vector. More...
#include <dune/fufem/forms/boundunaryoperator.hh>

Classes | |
| class | LocalOperator |
Public Types | |
| using | Basis = std::decay_t< decltype(std::get< 0 >(std::declval< UnaryOperator >().basis()))> |
| using | Vector = V |
| using | Coefficient = Dune::AutonomousValue< decltype(std::declval< Vector >()[std::declval< typename Basis::MultiIndex >()])> |
| using | GridView = typename Basis::GridView |
| using | EntitySet = typename Dune::Functions::GridViewEntitySet< GridView, 0 > |
| using | Domain = typename EntitySet::GlobalCoordinate |
| using | LocalDomain = typename EntitySet::LocalCoordinate |
| using | Element = typename EntitySet::Element |
| using | Range = std::decay_t< decltype(std::declval< Coefficient >() *std::declval< typename UnaryOperator::Range >())> |
Public Member Functions | |
| BoundUnaryOperator (const UnaryOperator &unaryOperator, const Vector &coefficients) | |
| BoundUnaryOperator (const UnaryOperator &unaryOperator, Vector &&coefficients) | |
| BoundUnaryOperator (const UnaryOperator &unaryOperator, std::shared_ptr< const Vector > coefficients) | |
| auto | basis () const |
| auto | treePath () const |
| Range | operator() (const Domain &x) const |
| Evaluate function in global coordinates. | |
| const EntitySet & | entitySet () const |
| Get associated set of entities the local-function can be bound to. | |
| const auto & | unaryOperator () const |
| const auto & | coefficients () const |
Static Public Attributes | |
| static constexpr std::size_t | arity |
Friends | |
| LocalOperator | localOperator (const BoundUnaryOperator &boundUnaryOperator) |
| template<bool dummy = true, std::enable_if_t< dummy and(BoundUnaryOperator::arity==0), int > = 0> | |
| LocalFunctionAdaptor< LocalOperator > | localFunction (const BoundUnaryOperator &boundUnaryOperator) |
| auto | jacobian (const BoundUnaryOperator &f) |
| auto | gradient (const BoundUnaryOperator &f) |
| auto | grad (const BoundUnaryOperator &f) |
| auto | divergence (const BoundUnaryOperator &f) |
| auto | div (const BoundUnaryOperator &f) |
Detailed Description
class Dune::Fufem::Forms::BoundUnaryOperator< Op, V >
Wrapper binding a linear operator to a coefficient vector.
- Template Parameters
-
Op Type of unary operator to be bound V Type of coefficient vector
Given a 1-linear operator on discrete function space associated to a basis, this returns the 0-linear operator obtained by application of the operator to the element of the function space represented by the coefficient vector.
The return value implements both, the Dune::Fufem::Forms interface of a 0-linear operator and the Dune::Functions interface of a GridFunction. Thus it can be used as coefficient in composed Dune::Fufem::Form expressions or in places requiring a GridFunction, e.g., for writing to vtk-files.
Member Typedef Documentation
◆ Basis
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::Basis = std::decay_t<decltype(std::get<0>(std::declval<UnaryOperator>().basis()))> |
◆ Coefficient
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::Coefficient = Dune::AutonomousValue<decltype(std::declval<Vector>()[std::declval<typename Basis::MultiIndex>()])> |
◆ Domain
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::Domain = typename EntitySet::GlobalCoordinate |
◆ Element
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::Element = typename EntitySet::Element |
◆ EntitySet
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::EntitySet = typename Dune::Functions::GridViewEntitySet<GridView, 0> |
◆ GridView
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::GridView = typename Basis::GridView |
◆ LocalDomain
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::LocalDomain = typename EntitySet::LocalCoordinate |
◆ Range
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::Range = std::decay_t<decltype(std::declval<Coefficient>() * std::declval<typename UnaryOperator::Range>())> |
◆ Vector
| using Dune::Fufem::Forms::BoundUnaryOperator< Op, V >::Vector = V |
Constructor & Destructor Documentation
◆ BoundUnaryOperator() [1/3]
|
inline |
◆ BoundUnaryOperator() [2/3]
|
inline |
◆ BoundUnaryOperator() [3/3]
|
inline |
Member Function Documentation
◆ basis()
|
inline |
◆ coefficients()
|
inline |
◆ entitySet()
|
inline |
Get associated set of entities the local-function can be bound to.
◆ operator()()
|
inline |
Evaluate function in global coordinates.
- Note
- This is not implemented and will throw an exception.
◆ treePath()
|
inline |
◆ unaryOperator()
|
inline |
Friends And Related Symbol Documentation
◆ div
|
friend |
◆ divergence
|
friend |
◆ grad
|
friend |
◆ gradient
|
friend |
◆ jacobian
|
friend |
◆ localFunction
|
friend |
◆ localOperator
|
friend |
Member Data Documentation
◆ arity
|
staticconstexprinherited |
The documentation for this class was generated from the following file:
