DUNE-ACFEM (unstable)
localfunctionplaceholder.hh
38 : public PlaceholderTensor<ScalarDecayFieldTensor<typename std::decay_t<LocalFunction>::RangeType>, LocalFunctionPlaceholder<LocalFunction, IndeterminateId> >
41 using BaseType = PlaceholderTensor<ScalarDecayFieldTensor<typename std::decay_t<LocalFunction>::RangeType>, ThisType>;
58 template<class Arg, std::enable_if_t<std::is_constructible<LocalFunctionType, Arg>::value, int> = 0>
190 template<class F, std::size_t IndeterminateId = Policy::indeterminateId(), class Closure = Expressions::Closure,
192 auto localFunctionPlaceholder(F&& f, IndexConstant<IndeterminateId> id = IndexConstant<IndeterminateId>{}, Closure closure = Closure{})
200 template<class F, std::size_t IndeterminateId = Policy::indeterminateId(), class Closure = Expressions::Closure,
202 auto localFunctionPlaceholder(F&& f, IndexConstant<IndeterminateId> id = IndexConstant<IndeterminateId>{}, Closure closure = Closure{})
220 struct FieldTraits<ACFem::GridFunction::LocalFunctionPlaceholder<LocalFunction, IndeterminateId> >
221 : FieldTraits<ACFem::GridFunction::PlaceholderTensor<ACFem::GridFunction::FieldVectorTensor<typename std::decay_t<LocalFunction>::RangeType>, ACFem::GridFunction::LocalFunctionPlaceholder<LocalFunction, IndeterminateId> > >
A placeholder tensor which wraps a Dune::Fem LocalFunction.
Definition: localfunctionplaceholder.hh:39
const auto & gridFunction() const
Return the wrapped grid-function.
Definition: localfunctionplaceholder.hh:122
const auto & gridPart() const
Return the gridPart of the wrapped function.
Definition: localfunctionplaceholder.hh:128
LocalFunction localFunction() &&
Return the wrapped LocalFunction while maintaining its reference and const qualification.
Definition: localfunctionplaceholder.hh:104
const auto & localFunction() const &
Return the wrapped LocalFunction as a const reference.
Definition: localfunctionplaceholder.hh:116
void setValue(const Point &point)
Trigger the update of the stored values by evaluating the wrapped localfunction.
Definition: localfunctionplaceholder.hh:78
void unbind()
Unbind the wrapped LocalFunction from any Entity it is bound to.
Definition: localfunctionplaceholder.hh:96
void bind(const EntityType &entity)
Bind the wrapped LocalFunction to the given entity.
Definition: localfunctionplaceholder.hh:88
static constexpr auto indeterminateId()
Return the id of the indeterminate the placeholder is assumed to depend on.
Definition: localfunctionplaceholder.hh:136
auto & localFunction() &
Return the wrapped LocalFunction as a mutable reference.
Definition: localfunctionplaceholder.hh:110
auto localFunctionPlaceholder(F &&f, IndexConstant< IndeterminateId > id=IndexConstant< IndeterminateId >{}, Closure closure=Closure{})
Generate a LocalFunctionPlaceholder for a Fem::ConstLocalFunction.
Definition: localfunctionplaceholder.hh:192
Constant< std::size_t, V > IndexConstant
Short-cut for integral constant of type std::size_t.
Definition: types.hh:44
BoolConstant<(std::is_const< T >::value||std::is_const< std::remove_reference_t< T > >::value)> RefersConst
TrueType if const or a reference to a const.
Definition: types.hh:133
BoolConstant< false > FalseType
Alias for std::false_type.
Definition: types.hh:110
std::true_type if T is a LocalFunctionPlaceholder.
Definition: localfunctionplaceholder.hh:158
Definition: quadraturepoint.hh:29
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Jan 3, 23:40, 2025)