conjugateHeatFoam for 4 different regions
1 Attachment(s)
Hello everybody,
I am going to use conjugateHeatFoam to simulate a conduction problem in a multi region case, thus including solid regions and fluid regions. I am using OF 1.6-ext. There are 4 different regions, corresponding to different materials: A and C are solids, B and D is fluid (laminar). All the mesh is hexa, Can solver conjugateHeatFoam realize my need?Do I need to modify the solver code? thank you very much! regards! lg88 |
Greetings lg88,
In response to the private message you sent me: I'm not familiar with conjugateHeatFoam. But I think that chtMultiRegionFoam should be able to solve this issue, but again, I'm not very familiar with either one of these solvers. Best regards, Bruno |
Thank you for your suggestion.But I am familiar with conjugateHeatFoam and my new solver is based on it.I hope use the solver to solve my problem.I found some information about the same problem I meet at [url]http://www.cfd-online.com/Forums/openfoam/89684-conjugateheatfoam-arbitrary-number-region.html.But there is not detailed construction.
Can anyone give me some idea? Thank you very much! lg88 |
Quote:
Regards, Junwei |
hello
Thank you for your suggestion .I have checked in the forum and found that some people had applied conjugateHeatFoam to multi-regions successfully.And my new foam is developed based on the conjugateHeatFoam. regards! lg88 |
You need to edit the files attachPatches.H and detachPateches.H. You then have a main region and all other regions are treated as submeshes of the main region.
I've only done this for 3 regions, but 4 or more is definitely possible. attachPatches.H (for 3 regions): Code:
{ Code:
{ Then in case/constant you have: polyMesh/... (for the main mesh) positive/polyMesh/... (for one submesh) separator/polyMesh/... (for the other submesh) In case/0 you have: {fields for main mesh} positive/{fields for positive mesh} separator/{fields for separator mesh} |
Thank you for your detailed construction.I am also looking for the multi-region function of conjugateHeatFoam.
Regards! kob |
@benk
Thank you very much.I have modified my code as you said. Now it can work fluently and I am waiting for the results.Hoping it will work. Regards! lg88 |
can anyone send me a simple tutorial of conjugateHeatFoam for multiregion (2fluid & 1solid) ?
Can anyone give me some idea? thanks |
Quote:
In your case, can the boudaryField fully show in the solution file (such as T) using conjugateHeatFoam? Thanks! CHENG |
Hi, benk
I modified my code like these attachPatches.H (for 4 regions): Code:
{ Code:
{ Code:
In file included from createFields.H(80), Thank you very much |
All times are GMT -4. The time now is 15:52. |