CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Calculating heat flux in OpenFOAM (https://www.cfd-online.com/Forums/openfoam-programming-development/135866-calculating-heat-flux-openfoam.html)

eretief May 19, 2014 07:23

Calculating heat flux in OpenFOAM
 
Hi

I am trying to develop a custom boundary condition in OpenFOAM. The boundary condition value is calculated from a polynomial expression written in terms of the heat flux at the boundary. I am using the reactingFoam solver.

Can anyone perhaps tell me how exactly I could access the necessary variables (e.g. alphaEff) at the boundary to calculate the heat flux at the boundary?

Thanks

chriss85 May 19, 2014 10:15

Likely by using the thermo class, using something like this:
Code:

const fluidThermo& thermo_(mesh.lookupObject<fluidThermo>("thermophysicalProperties"))


All times are GMT -4. The time now is 10:53.