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

MRF working with reactingTwoPhaseEulerFoam but not with reactingMultiphaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By MazenDraw

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2020, 07:42
Default MRF working with reactingTwoPhaseEulerFoam but not with reactingMultiphaseEulerFoam
  #1
New Member
 
Mazen Draw
Join Date: Sep 2018
Posts: 21
Rep Power: 7
MazenDraw is on a distinguished road
Dear Foamers,


I am trying to set up a case of three-phase turbulent flow in stirred tank using reactingEulerFoam. Now since I want to start simple and increase the complexity of the problem a step by step, I have made a test case with laminar flow using MRF approach with two phases, air and water.



The problem appears when I activate the MRF in the rotating zone. After some long testing I have figured out that the same case works with reactingTwoPhaseEulerFoam solver but not with reactingMultiphaseEulerFoam solver. Same BCs, thermophysical properties and interfacial models applied in both cases. The only difference between the two cases is the solver.


reactingTwoPhaseEulerFoam: runs the case and exits perfectly.
reactingMultiphaseEulerFoam: starts solving but the courant number increases every time-step. Basically, everything starts getting messed up. Air volume fraction increases and water volume fraction decreases (which is not supposed to happen, because there is no mass transfer). Wrong pressure and high pressure residual..etc.



I attached both cases below. If anyone with some expertise in these solvers can have a look and tell me if I am missing something, or if this is a bug in the rMEF solver, I would appreciate it a lot!
Attached Files
File Type: gz rMEF.tar.gz (6.9 KB, 5 views)
File Type: gz rTPEF.tar.gz (6.9 KB, 6 views)
MazenDraw is offline   Reply With Quote

Old   June 4, 2020, 09:12
Default
  #2
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi Mazen,

have you made any progress on this? I am also facing serious stability issues when using MRF together with reactingMultiphaseEulerFoam in OF 6.0.

Which OF version are you using?

Andrea
Andrea1984 is offline   Reply With Quote

Old   June 4, 2020, 10:36
Default
  #3
New Member
 
Mazen Draw
Join Date: Sep 2018
Posts: 21
Rep Power: 7
MazenDraw is on a distinguished road
Hello Andrea,

I'm glad to see other people interested in using MRF with rMEF solver!

Actually, I haven't done any remarkable progress on this issue yet. However, there is clearly a bug when using MRF with rMEF deep in the code. The team I am working with have a strategy of finding out where the bug exactly is before reporting it.

The issue becomes even worse when you turn on face momentum in fvSolution! I haven't been able until now to make a simulation run with MRF and face momentum in rMEF, whether the solution is conservative or not.

Another research group have reported that they have less issues when using partial elimination in fvSolution.

To answer your question, I have tested v6, v7, dev and even v1912 they all have the same issue.
MazenDraw is offline   Reply With Quote

Old   June 4, 2020, 10:44
Default
  #4
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Thanks for the quick reply!

That destroys my hope that moving to 7 would have miraculously fixed the issue

BTW I have also made some additional tests in OF-6 and the same case with the same settings works like a clockwork with reactingTwoPhase but fails miserably in reactingMultiphase. The behaviour I am observing in the latter is very similar to what you have described: the velocity within the MRF region keeps increasing with time to unphysical values and so, of course, does the Courant number.

Please keep my posted if you make any progress on this, I'll do the same

Andrea
Andrea1984 is offline   Reply With Quote

Old   June 4, 2020, 10:59
Default
  #5
New Member
 
Mazen Draw
Join Date: Sep 2018
Posts: 21
Rep Power: 7
MazenDraw is on a distinguished road
Out of curiosity, are you testing on 3D or 2D case? Because when you set g = 0, the solver seems to deliver conservative solution. However, I still have no way of solution validation.

Also are you using face or cell momentum?

I will definitely keep you posted, thanks!
MazenDraw is offline   Reply With Quote

Old   June 4, 2020, 11:04
Default
  #6
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
My domain is 3D and includes gravity. I have also run a very basic test in 2D with reactingMultiphase and MRF and everything seems to work there.

I have tested both face and cell-centred formulations for the momentum equation, none of them are working and I did not notice any significant difference between the two. Will try and have a go with partial-elimination.

Good luck!
Andrea
Andrea1984 is offline   Reply With Quote

Old   June 4, 2020, 11:18
Default
  #7
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Just to add that partial elimination slows down the velocity divergence process, but does not fix it.
Andrea1984 is offline   Reply With Quote

Old   June 19, 2020, 05:18
Default
  #8
New Member
 
Mazen Draw
Join Date: Sep 2018
Posts: 21
Rep Power: 7
MazenDraw is on a distinguished road
There were issues with the implementation of MRF in rMEF. A smart guy in our group worked on fixing these bugs. Until now the bug fixes look good, they work on 2D and 3D cases, and provide reasonable results.


If things go well, the bug fix will be communicated with OpenFOAM Foundation. If they accept it, you will be able to see it soon in the commits of OpenFoam-dev. You can then clone their repository, compile it and run your cases.


Kind regards,
MazenDraw is offline   Reply With Quote

Old   June 19, 2020, 06:03
Default
  #9
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Hi,

many thanks for the update and good job on finding the bug! Any chance you could share here what the bug was and ideally how your very smart colleague fixed it?

Cheers,
Andrea
Andrea1984 is offline   Reply With Quote

Old   June 26, 2020, 05:24
Default
  #10
New Member
 
Mazen Draw
Join Date: Sep 2018
Posts: 21
Rep Power: 7
MazenDraw is on a distinguished road
Hi Andrea,


you can see the changes made to the code in OpenFOAM dev release, as it's already been adopted.



https://github.com/OpenFOAM/OpenFOAM...8676a78f7a8f20


Hope it can help you run your case!


Kind regards,
Mazen
Andrea1984 likes this.
MazenDraw is offline   Reply With Quote

Old   June 26, 2020, 05:58
Default
  #11
Senior Member
 
Andrea
Join Date: Feb 2012
Location: Leeds, UK
Posts: 179
Rep Power: 16
Andrea1984 is on a distinguished road
Great, thank you Mazen!
Andrea1984 is offline   Reply With Quote

Reply

Tags
mrf, multiphase, reactingeulerfoam


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
[chtMultiRegionSimpleFoam] Control MRF inside fluid region hiuluom OpenFOAM Pre-Processing 38 October 21, 2019 07:51
Incomplete ring MRF zones Attesz OpenFOAM Running, Solving & CFD 1 June 3, 2017 05:16
[Commercial meshers] MRF: imported mesh from ICEM not shown in ParaView and trying to merge with other n0ukh3z007 OpenFOAM Meshing & Mesh Conversion 0 September 20, 2015 15:04
Rigid body motion on transient fluent mrf ghost82 EnSight 4 September 6, 2014 11:24
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 02:01


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