Template Class KnownSource

Class Documentation

template<typename Value, int spacedim>
class KnownSource

A solver-neutral, context-aware known source.

The material and boundary maps are overrides. When no override is registered, the default callback is used. This gives volume and face terms the same fallback semantics as the elasticity problem parameters.

Public Types

using value_type = Value
using Context = KnownTermContext<spacedim>
using Callback = std::function<Value(const Context&)>

Public Functions

KnownSource() = default
inline explicit KnownSource(Callback callback)
inline KnownSource &on_material(const dealii::types::material_id id, Callback callback)
inline KnownSource &on_boundary(const dealii::types::boundary_id id, Callback callback)
inline Value evaluate(const Context &context) const