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();

All times are GMT -4. The time now is 00:26.