![]() |
Dune-Fufem 2.12-git
|
Loading...
Searching...
No Matches
unaryoperators.hh
Go to the documentation of this file.
78 static_assert(Dune::AlwaysFalse<TP>::value, "Only leaf nodes or power nodes directly below leaf are supported.");
107 using CacheManager = Dune::Fufem::Forms::CacheManager<typename Element::Geometry::ctype, Element::Geometry::mydimension>;
147 DUNE_THROW(Dune::InvalidStateException, "The LocalOperator was not bound to a LocalView before registering caches.");
151 cacheManager.template getCache<TreeCache>(cacheIndex_)[subspaceBasis_.prefixPath()].setNonAffine();
261 void bind(const Intersection& intersection, const Element& element, const Element& otherElement)
319 return FEFunctionOperator<Basis, decltype(childTP), argIndex>(Base::subspaceBasis_.rootBasis(), childTP, Base::isAffine_);
353 Dune::FieldMatrix<typename LeafLBTraits::RangeFieldType, Node::degree(), LeafLBTraits::dimDomain>>;
360 using Range = typename Impl::GlobalJacobianTraits<ReferenceJacobian, GeometryJacobianInverse>::type;
389 void bind(const Intersection& intersection, const Element& element, const Element& otherElement)
434 const typename Base::LocalOperator::LeafNodeCache::GlobalJacobianCache* globalJacobianCache_ = nullptr;
447 return FEFunctionJacobianOperator<Basis, decltype(childTP), argIndex>(Base::subspaceBasis_.rootBasis(), childTP, Base::isAffine_);
514 void bind(const Intersection& intersection, const Element& element, const Element& otherElement)
529 using LocalBasisTraits = typename Base::LeafNode::FiniteElement::Traits::LocalBasisType::Traits;
536 static_assert(LeafLBTraits::dimRange == dimWorld, "Number of (leaf FE) components does not match the world dimension.");
554 static_assert(Node::degree() == dimWorld, "Number of (power) components does not match the world dimension.");
574 const typename Base::LocalOperator::LeafNodeCache::GlobalJacobianCache* globalJacobianCache_ = nullptr;
int size() const
std::ptrdiff_t index() const
#define DUNE_THROW(E,...)
size_t() const
decltype(auto) child(Node &&node, TreePath< Indices... > treePath)
constexpr index_constant< 0 > _0
RF RangeFieldType
A class for managing caches of different types.
Definition shapefunctioncache.hh:644
size_type registerCache(UniqueCacheId uniqueCacheId, Cache &&cache)
Register a new cache.
Definition shapefunctioncache.hh:782
Definition unaryoperators.hh:492
void bindToCaches(CacheManager &cacheManager, OutsideCacheManager &... outsideCacheManager)
Definition unaryoperators.hh:520
void bind(const Element &)
Definition unaryoperators.hh:506
void bind(const Intersection &intersection, const Element &element, const Element &otherElement)
Definition unaryoperators.hh:514
typename Base::LocalOperator::Intersection Intersection
Definition unaryoperators.hh:502
typename Base::LocalOperator::CacheManager CacheManager
Definition unaryoperators.hh:503
typename FEFunctionDivergenceOperator::Range Range
Definition unaryoperators.hh:504
auto operator()(std::size_t index) const
Definition unaryoperators.hh:525
Linear map representing the divergenc of the elements of an FE-space.
Definition unaryoperators.hh:472
typename Base::Element Element
Definition unaryoperators.hh:479
std::conditional_t< Dune::TypeTree::Concept::LeafTreeNode< Node >, typename LeafLBTraits::RangeFieldType, typename LeafLBTraits::JacobianType::block_type > Range
Definition unaryoperators.hh:483
friend LocalOperator localOperator(const FEFunctionDivergenceOperator &op)
Definition unaryoperators.hh:577
FEFunctionDivergenceOperator(const Base &other)
Definition unaryoperators.hh:487
FEFunctionDivergenceOperator< B, TP, k > rebindArgIndex() const
Get a copy of this operator bound to another argument.
Definition unaryoperators.hh:584
Definition unaryoperators.hh:369
void bind(const Element &)
Definition unaryoperators.hh:381
void bind(const Intersection &intersection, const Element &element, const Element &otherElement)
Definition unaryoperators.hh:389
typename Base::LocalOperator::Intersection Intersection
Definition unaryoperators.hh:377
typename Base::LocalOperator::CacheManager CacheManager
Definition unaryoperators.hh:378
void bindToCaches(CacheManager &cacheManager, OutsideCacheManager &... outsideCacheManager)
Definition unaryoperators.hh:395
auto operator()(std::size_t index) const
Definition unaryoperators.hh:400
typename FEFunctionJacobianOperator::Range Range
Definition unaryoperators.hh:379
Linear map representing the jacobians of the elements of an FE-space.
Definition unaryoperators.hh:345
typename Impl::GlobalJacobianTraits< ReferenceJacobian, GeometryJacobianInverse >::type Range
Definition unaryoperators.hh:360
FEFunctionJacobianOperator(const Base &other)
Definition unaryoperators.hh:364
FEFunctionJacobianOperator< B, TP, k > rebindArgIndex() const
Get a copy of this operator bound to another argument.
Definition unaryoperators.hh:452
friend LocalOperator localOperator(const FEFunctionJacobianOperator &op)
Definition unaryoperators.hh:437
auto childOperator(Dune::index_constant< i > childIndex) const
Definition unaryoperators.hh:443
typename Base::Element Element
Definition unaryoperators.hh:359
Definition unaryoperators.hh:241
typename Base::LocalOperator::Intersection Intersection
Definition unaryoperators.hh:249
void bind(const Element &)
Definition unaryoperators.hh:253
void bind(const Intersection &intersection, const Element &element, const Element &otherElement)
Definition unaryoperators.hh:261
typename Base::LocalOperator::CacheManager CacheManager
Definition unaryoperators.hh:250
void bindToCaches(CacheManager &cacheManager, OutsideCacheManager &... outsideCacheManager)
Definition unaryoperators.hh:267
auto operator()(std::size_t index) const
Definition unaryoperators.hh:272
typename FEFunctionOperator::Range Range
Definition unaryoperators.hh:251
Linear map representing the elements of an FE-space.
Definition unaryoperators.hh:221
std::conditional_t< Dune::TypeTree::Concept::LeafTreeNode< Node >, typename LeafLBTraits::RangeType, Dune::FieldVector< typename LeafLBTraits::RangeFieldType, Node::degree()> > Range
Definition unaryoperators.hh:232
auto childOperator(Dune::index_constant< i > childIndex) const
Definition unaryoperators.hh:315
typename Base::Element Element
Definition unaryoperators.hh:228
FEFunctionOperator< B, TP, k > rebindArgIndex() const
Get a copy of this operator bound to another argument.
Definition unaryoperators.hh:324
FEFunctionOperator(const Base &other)
Definition unaryoperators.hh:236
friend LocalOperator localOperator(const FEFunctionOperator &op)
Definition unaryoperators.hh:309
Definition unaryoperators.hh:97
bool isAffine_
Definition unaryoperators.hh:175
SubspaceBasis subspaceBasis_
Definition unaryoperators.hh:169
void unbind()
Definition unaryoperators.hh:123
LocalOperator(const SubspaceBasis &subspaceBasis, bool isAffine)
Definition unaryoperators.hh:109
void registerOutsideCaches(CacheManager &cacheManager)
Definition unaryoperators.hh:154
LocalOperator(const FEOperatorBase &op)
Definition unaryoperators.hh:119
const LocalView * localView_
Definition unaryoperators.hh:172
typename FEOperatorBase::Element Element
Definition unaryoperators.hh:105
void registerOutsideLocalViews(const LV &... lvs)
Definition unaryoperators.hh:141
void registerCaches(CacheManager &cacheManager)
Definition unaryoperators.hh:144
auto quadratureRuleKey() const
Definition unaryoperators.hh:126
ShapeFunctionCache< Tree > TreeCache
Definition unaryoperators.hh:100
QuadratureRuleKey quadratureRuleKey_
Definition unaryoperators.hh:173
auto & leafNodeCache(CacheManager &cacheManager)
Definition unaryoperators.hh:164
std::size_t cacheIndex_
Definition unaryoperators.hh:174
void registerLocalViews(const LV &... lvs)
Definition unaryoperators.hh:132
const LeafNode * leafNode_
Definition unaryoperators.hh:171
const LeafTreePath leafTreePath_
Definition unaryoperators.hh:170
const LeafNode & leafNode() const
Definition unaryoperators.hh:159
typename FEOperatorBase::Intersection Intersection
Definition unaryoperators.hh:106
Base class of elementary differential operators on an FE-space.
Definition unaryoperators.hh:56
typename Dune::TypeTree::ChildForTreePath< Tree, TP > Node
Definition unaryoperators.hh:61
typename B::LocalView LocalView
Definition unaryoperators.hh:59
SubspaceBasis subspaceBasis_
Definition unaryoperators.hh:204
typename Dune::TypeTree::ChildForTreePath< Tree, LeafTreePath > LeafNode
Definition unaryoperators.hh:82
typename Basis::LocalView::Element Element
Definition unaryoperators.hh:88
decltype(leafTreePath(std::declval< TP >())) LeafTreePath
Definition unaryoperators.hh:81
FEOperatorBase(const Basis &basis, const TreePath &treePath, bool isAffine=true)
Definition unaryoperators.hh:91
typename Dune::Functions::SubspaceBasis< B, TP > SubspaceBasis
Definition unaryoperators.hh:62
static auto leafTreePath(const TP &tp)
Definition unaryoperators.hh:70
typename Basis::GridView::Intersection Intersection
Definition unaryoperators.hh:89
FEOperatorBase< B, TP, k > rebindArgIndex() const
Get a copy of this operator bound to another argument.
Definition unaryoperators.hh:198
typename LocalView::Tree Tree
Definition unaryoperators.hh:60
A hierarchic cache for storing shape function evaluations for a tree.
Definition shapefunctioncache.hh:106
Base class for unary multilinear operator implementations.
Definition baseclass.hh:91
Objects of this class are used to uniquely identifies a cache.
Definition shapefunctioncache.hh:571
QuadratureRuleKey derivative() const
Definition quadraturerulecache.hh:164
T forward(T... args)
auto div(const Op &op)
Obtain the divergence of an operator.
Definition userfunctions.hh:1222
Definition baseclass.hh:22
const T & asNumber(const T &t)
Forward given value as number.
Definition asnumber.hh:23
STL namespace.
T tie(T... args)
