Commit 16160c0c authored by Timo Koch's avatar Timo Koch
Browse files

[problem] Pass more paramters to neumann method that it is possibly soldependent

parent b1dfd660
......@@ -188,7 +188,7 @@ protected:
// temporary vector to store the neumann boundary fluxes
PrimaryVariables flux(0);
auto neumannFluxes = this->problem().neumann(element, scvf);
auto neumannFluxes = this->problem().neumann(element, fvGeometry, elemVolVars, scvf);
// multiply neumann fluxes with the area and the extrusion factor
neumannFluxes *= scvf.area()*elemVolVars[insideScv].extrusionFactor();
......
......@@ -176,7 +176,7 @@ protected:
// temporary vector to store the neumann boundary fluxes
PrimaryVariables flux(0);
auto neumannFluxes = this->problem().neumann(element, scvf);
auto neumannFluxes = this->problem().neumann(element, fvGeometry, elemVolVars, scvf);
// multiply neumann fluxes with the area and the extrusion factor
auto&& scv = fvGeometry.scv(scvf.insideScvIdx());
......
......@@ -273,7 +273,10 @@ public:
* in normal direction of each phase. Negative values mean influx.
* E.g. for the mass balance that would the mass flux in \f$ [ kg / (m^2 \cdot s)] \f$.
*/
PrimaryVariables neumann(const Element &element, const SubControlVolumeFace &scvFace) const
PrimaryVariables neumann(const Element& element,
const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolvars,
const SubControlVolumeFace& scvFace) const
{
// forward it to the interface with only the global position
return asImp_().neumannAtPos(scvFace.center());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment