Dear Birger,

sorry for the late reply, but I was quite busy this week.

I am not sure about the velocities, but you can at least get the gradient quite easily with the box discretization using:

auto elemSol = elementSolution<Element, ElementVolumeVariables, FVElementGeometry>(element, elemVolVars, fvGeometry);
const auto gradP = evalGradients(element,
element.geometry(),
this->fvGridGeometry(),
elemSol,
scv.center())[pressureIdx]; With the gradient, you should be able to recalculate your velocity (magnitude).

I hope that helps, best regards
Johannes

Am 03.05.2019 um 18:25 schrieb Birger Hagemann:

Dear all,

is there any quick solution to access the phase (Darcy) velocities within the source method of the problem class?

I only need the magnitude (not the direction) to calculate bacteria attachment/detachment terms. I am using an extended 2pnc model and the box discretization.

Thank you in advance.

Regards Birger


_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

*******************************************************

Johannes Hommel

Lehrstuhl für Hydromechanik und Hydrosystemmodellierung (LH2)
Institut für Wasser- und Umweltsystemmodellierung (IWS), Universität Stuttgart
https://www.iws.uni-stuttgart.de/lh2/
email: johannes.hom...@iws.uni-stuttgart.de
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-64600

Department of Hydromechanics and Modelling of Hydrosystems (LH2)
Institute for Modelling Hydraulic and Environmental Systems (IWS), University 
of Stuttgart
https://www.iws.uni-stuttgart.de/en/lh2/
email: johannes.hom...@iws.uni-stuttgart.de
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-64600

--
*******************************************************

Johannes Hommel

Lehrstuhl für Hydromechanik und Hydrosystemmodellierung (LH2)
Institut für Wasser- und Umweltsystemmodellierung (IWS), Universität Stuttgart
https://www.iws.uni-stuttgart.de/lh2/
email: johannes.hom...@iws.uni-stuttgart.de
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-64600

Department of Hydromechanics and Modelling of Hydrosystems (LH2)
Institute for Modelling Hydraulic and Environmental Systems (IWS), University 
of Stuttgart
https://www.iws.uni-stuttgart.de/en/lh2/
email: johannes.hom...@iws.uni-stuttgart.de
Pfaffenwaldring 61
70569 Stuttgart
Tel.: ++49  711 / 685-64600

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to