CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How to couple two solvers for simulation of two regions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2019, 01:32
Default How to couple two solvers for simulation of two regions?
  #1
New Member
 
Long Jiang
Join Date: Mar 2019
Posts: 5
Rep Power: 7
jianglong is on a distinguished road
Dear all,
I am a new foamer here, using the OpenFOAM v6. Now, I am struggling to develop a coupled solver for simulating two regions simultaneously, where vector or scalar fields may exchange after each step on the boundary between two regions. (one solver could be interFoam and the other one for potential equations)
Here are two plans after several days learning of OpenFOAM:
1. Rewrite solver with reference to chtMultiRegionFoam. This solver is a multi-region solver although it is for heat transfer. I want it to be work for incompressible fluid as well, so I need to integrate two solvers mentioned into it. The problem is that it may not be so easy to implement after the day's effort. I have to deal with so many conflicts for source files there like createFields.H and so on. Another problem is about flexibility. I need to rewrite it again when I change the solver integrated.
2. Develop a method for communication of fields between two regions and run solvers for each region separately. I found a boundary condition called externalCoupled which may help. However, I am worried about computation efficient since it uses a plain text files to realize the fields exchange.

Can anyone have some good ideas for this situation?

Last edited by jianglong; December 11, 2019 at 06:41.
jianglong is offline   Reply With Quote

Old   October 23, 2021, 16:21
Default
  #2
Member
 
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5
Shah Akib Sarwar is on a distinguished road
Did you find any solution? I am also trying to couple two OpenFOAM solvers for my research.
Shah Akib Sarwar is offline   Reply With Quote

Old   October 24, 2021, 01:30
Default
  #3
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 76
Rep Power: 5
night-hawk is on a distinguished road
Have you tried preCICE? here is link of there site https://precice.org .
night-hawk is offline   Reply With Quote

Old   October 24, 2021, 22:46
Default
  #4
Member
 
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14
LongGe is on a distinguished road
Hello All

The OpenCFD-ESI version has such a feature. This tutorial will help you.

See: OpenFOAM-v2106/tutorials/multiphase/compressibleInterFoam/laminar/waterCooler
LongGe is offline   Reply With Quote

Old   November 4, 2021, 13:06
Default
  #5
Member
 
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5
Shah Akib Sarwar is on a distinguished road
Hello all,

Thank you very much for your replies and I apologize for not responding earlier. I will look into both your suggestions and let you know when I have questions!
Shah Akib Sarwar is offline   Reply With Quote

Reply

Tags
combination, coupled boundary, solver, two domains


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] ICEM CFX Primitive Regions Appearing after Smoothing syble ANSYS Meshing & Geometry 1 July 29, 2016 17:29
chtMultiRegionFoam different properties in (fluid) region(s) volker1 OpenFOAM Pre-Processing 3 February 4, 2015 07:46
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions richard_vega OpenFOAM Meshing & Mesh Conversion 0 November 13, 2014 15:28
couple and spin index novice Siemens 6 July 8, 2004 04:31
couple problems leo Siemens 3 January 28, 2003 04:09


All times are GMT -4. The time now is 20:48.