Template Class WeakTerm

Nested Relationships

Nested Types

Class Documentation

template<typename TrialExpression, typename TestExpression>
class WeakTerm

A solver-neutral FE weak term contributed to a residual row.

Public Types

using target_type = TestExpression

Public Functions

inline WeakTerm(TrialExpression observable, TestExpression target)
template<typename VectorType, typename MatrixType>
inline FieldId add(SemidiscreteBuilder<VectorType, MatrixType> &builder) const
template<typename VectorType, typename MatrixType>
inline void add_constraint_terms(SemidiscreteBuilder<VectorType, MatrixType> &builder, const FieldId multiplier, const double sign, const std::size_t index) const

Add both rows of this term to a multiplier constraint.

template<typename VectorType, typename MatrixType>
inline FieldId operator()(SemidiscreteBuilder<VectorType, MatrixType> &builder) const
inline const TrialExpression &observable() const
inline const TestExpression &target() const