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/)
-   -   How to update supply temp on one patch based on the measure temp on another patch? (https://www.cfd-online.com/Forums/openfoam-programming-development/228503-how-update-supply-temp-one-patch-based-measure-temp-another-patch.html)

er_ijaz July 3, 2020 10:48

How to update supply temp on one patch based on the measure temp on another patch?
 
I have a question regarding swak4foam or New expressions syntax. I need to measure Temperature (T1)at one patch and update T2=(Q/mcp)+T1 on another patch. I need to update at every iteration/time step is it feasible to do it via swak4foam or expression syntax?

tomf July 6, 2020 04:37

There is a special coupled boundary condition that does this:

myPatch
{
type outletMappedUniformInletHeatAddition;
outletPatch aPatch;
Q 10; // Heat addition in W
phi phi;
value uniform 0;
}

More info here.

er_ijaz July 10, 2020 12:00

thank you
 
Dear Tom Fahner,

THank you


All times are GMT -4. The time now is 16:43.