Skip to content
Snippets Groups Projects
Commit 6388d147 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[implicit][localresidual] implement evalSource_() method

The evalSource_() method can be used for the calculation of the
sources on the whole element, e.g. for the derivatives w.r.t
an extended source stencil
parent 0d0dbc28
No related branches found
No related tags found
1 merge request!617[WIP] Next
......@@ -293,6 +293,20 @@ protected:
}
}
PrimaryVariables evalSource_()
{
PrimaryVariables source(0);
for (scv : fvGeometry_().scvs())
{
source += this->problem_().source(element_(), scv);
// add contribution from possible point sources
source += this->problem_().scvPointSources(element_(), scv);
}
return source;
}
/*!
* \brief Add the change in the storage terms and the source term
* to the local residual of all sub-control volumes of the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment