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/)
-   -   scalarCodedSource heat sink definition (https://www.cfd-online.com/Forums/openfoam-programming-development/211982-scalarcodedsource-heat-sink-definition.html)

CalumR November 23, 2018 09:17

scalarCodedSource heat sink definition
 
Hi there,

I am conducting a simulation of a heat exchanger using cyclic boundary conditions containing a heat sink using chtMultiRegionFoam with OpenFOAM v6.

I am trying to create a heat sink using scalarCodedSource in FVOptions. I require to measure the heat flux transferred from my metal region to my fluid region at each timestep, and feed this back into my heat sink so that the same amount of heat that is added at each step is removed. Currently I have only been able to get the heat flux across the interface through the post-processing command

Code:

chtMultiRegionFoam -postProcess -func wallHeatFlux -region aluminium
Is there a way that I can generate the heat flux and feed it into my scalarCodedSource while the simulation is still in progress?

Any support or suggestions would be of great help
Thanks
Calum


All times are GMT -4. The time now is 03:04.