CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   access boundary condition from solver (

pascool March 27, 2013 04:26

access boundary condition from solver
Hi foamers,

I specified a fixedGradient boundary condition for the temperature in a patch at the wall.
How can I access this value from inside the solver to do some further calculations?

Any help appreciated !



pascool April 1, 2013 16:33

I figured it out by myself. I wanted to access the temperature gradient at the wall.
It's actually pretty easy. I somebody is interested to code is as follows:


scalarField gradTField = T.boundaryField()[heatedWallPatchID].snGrad();

mehtab April 30, 2015 08:39


What should I do if I want to access temperature value at inlet in fvPatchFields to modify boundary condition.

All times are GMT -4. The time now is 05:37.