OGS
|
Holder for function objects that compute secondary variables, and (optionally) also the residuals (e.g., in case of extrapolation)
Definition at line 27 of file SecondaryVariable.h.
#include <SecondaryVariable.h>
Public Types | |
using | Function |
Public Member Functions | |
template<typename F1 , typename F2 > | |
SecondaryVariableFunctions (const unsigned num_components_, F1 &&eval_field_, F2 &&eval_residuals_) | |
template<typename F1 > | |
SecondaryVariableFunctions (const unsigned num_components_, F1 &&eval_field_, std::nullptr_t) | |
Public Attributes | |
const unsigned | num_components |
Number of components of the variable. | |
Function const | eval_field |
Computes the value of the field at every node of the underlying mesh. | |
Function const | eval_residuals |
Type of functions used.
dof_table
is the d.o.f. table of the process, i.e. it possibly contains information about several process variables.result_cache
can be used to store the GlobalVector
if it is computed on-the-fly. Then a reference to the result cache can be returned. Otherwise the Function
must return a reference to a GlobalVector
that is stored somewhere else. Definition at line 39 of file SecondaryVariable.h.
|
inline |
Definition at line 46 of file SecondaryVariable.h.
|
inline |
Definition at line 75 of file SecondaryVariable.h.
Function const ProcessLib::SecondaryVariableFunctions::eval_field |
Computes the value of the field at every node of the underlying mesh.
Definition at line 95 of file SecondaryVariable.h.
Referenced by addSecondaryVariableNodes().
Function const ProcessLib::SecondaryVariableFunctions::eval_residuals |
If the secondary variable is extrapolated from integration points to mesh nodes, this function computes the extrapolation residual. For further information check the specific NumLib::Extrapolator documentation.
Definition at line 101 of file SecondaryVariable.h.
Referenced by addSecondaryVariableResiduals().
const unsigned ProcessLib::SecondaryVariableFunctions::num_components |
Number of components of the variable.
Definition at line 92 of file SecondaryVariable.h.
Referenced by addSecondaryVariableNodes(), and addSecondaryVariableResiduals().