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

Couple two solvers in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2018, 21:27
Default Couple two solvers in OpenFOAM
  #1
New Member
 
Nuttita Pophet
Join Date: Oct 2016
Location: Mississippi, USA
Posts: 10
Rep Power: 9
nuttita is on a distinguished road
Hi, I need to couple InterFoam with porousInterFoam for flows through deforming porous medium. InterFoam needs pressure field from porousInterFoam and in turn it will give alpha and U to porousInterFoam. The steps in the coupled model will be:

At time i, p —> solve InterFoam —> alpha, U
Time i+dt/2, alpha, U —> solve porousInterFoam —> p
Time i+dt, p —> solve InterFoam —> alpha, U
...

Does anyone know how to couple solvers in this way? Is there any utilities or libraries for this coupling? Please help. Thanks!
nuttita is offline   Reply With Quote

Old   October 4, 2018, 00:56
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,
is there a reason why you cannot use porousInterFoam directly? You mentioned some deformation - I am not familiar with OpenFOAM porousInterFoam - however, if there is the mesh motion missing, I suggest to add this to the solver. In principle, coupling two solvers as you mentioned is not a good idea; however, there are different opinions.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   October 4, 2018, 04:34
Default operator splitting?
  #3
New Member
 
Eric Bringley
Join Date: Nov 2016
Posts: 14
Rep Power: 9
ebringley is on a distinguished road
It sound to me like you're tyring to do some strang operator splitting type routine, but you didn't include your time steps for each step, so it's impossible to tell exactly what you're doing... To the best of my knowledge, there's no out-of-the box way to "just couple two solvers".

If porousInterFoam doesn't do what you want, you'll have to create your own copy of the source code and implement your own operator splitting, likely starting from porousInterFoam.
ebringley is offline   Reply With Quote

Reply


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
couple own c++ code with OpenFoam ttmabel OpenFOAM Programming & Development 0 November 19, 2015 03:04
Solvers to be used for Simulating Centrifugal pump in OpenFoam coolcrasher OpenFOAM Running, Solving & CFD 7 September 4, 2015 08:51


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