0
How to update supply temperature on boundary based on the measured temperature on another boundary patch in OpenFOAM?

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?


OpenFOAM 03-07-20, 6:56 p.m. drijazfazil
0
Hi, You may refer to the following link to know more about accessing values/fields from other patches. Link: http://openfoamwiki.net/index.php/Contrib/groovyBC#Accessing_fields_from_other_patches I hope this is what you're looking for. Regards, Ashley
03-07-20, 10:13 p.m. ashleymelvin

Dear Ashley Melvin,

Thank u so much, We are using openfoam1912. I heard that groovyBC is for old version. I also heard that even swak4foam doesnot work with openfoam1912.

 


04-07-20, 1:18 p.m. drijazfazil

You're right. The swak4foam integration in v1912 has now been done with New expressions syntax. I found the following link though which does demonstrate a sample expression for a patch whose value depends on the fields from other patch(s). Link: https://www.openfoam.com/releases/openfoam-v1912/boundary-conditions.php

Regards,

Ashley


05-07-20, 6:21 p.m. ashleymelvin

Login to add comment


Log-in to answer to this question.