CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   access boundary condition from solver (http://www.cfd-online.com/Forums/openfoam-programming-development/115258-access-boundary-condition-solver.html)

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 !

Cheers,

Pascal

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:

Code:

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

firefoam April 30, 2015 08:39

Hi,

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 20:40.