|
[Sponsors] |
interPhaseChangeFoam with nOuterCorrectors != 1 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 ![]() |
I'm comparing the implementations of alphaEqn and alphaEqnSubCycle in interFoam and interPhaseChangeFoam, and they're pretty much equivalent except that interPhaseChangeFoam only calls interface.correct() if nOuterCorr is 1. This doesn't make sense to me, because if nOuterCorr is not 1, the interface curvature is never updated, and this would naturally lead to wrong results.
If someone can confirm this is a bug I will file a bug report with OpenCFD. If it isn't, I would appreciate an explanation why ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
New Member
Zheng.Zhi
Join Date: Jul 2009
Location: LanZhou China
Posts: 10
Rep Power: 17 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#3 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 ![]() |
I have got the same conclusion. In my solver, I have removed the 'if' condition. So, the interface.correct() will be performed after solving alpha equation
ABE |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 ![]() |
Hi ABC, can you use interPhaseChangeFoam to get good results? Which version do you use?
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 ![]() |
Hi Sandy,
I have tried OF 2.1x and 2.2x. Unfortunately, until now I was not able to get good results. ABE |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Greetings to all!
You might want to check the following bug report and see if it's directly related to the problems you're having: http://www.openfoam.org/mantisbt/view.php?id=817 Best regards, Bruno
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#8 | ||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Hi Sandy,
If these two bug reports are essentially the same, then the issue has been fixed: http://www.openfoam.org/mantisbt/view.php?id=817 The two relevant commits are:
Although, from Anton's original post, the current code still has: Quote:
Quote:
I had a look at 1.6-ext source code and things were still strange as well:
interFoam on the other hand, always calls "interface.correct()". Well... I suppose this could be submitted as a possible bug report for code review, since there doesn't seem to exist any explicit indication of where we can look of information on a related paper... Best regards, Bruno
__________________
|
|||||
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
|
Greetings to all!
I am using the interPhaseChangeFoam in OpenFoam version 2.1.x! I did not understand if is there or not a bug for this solver in this OpenFoam version! Anyway, I made the variations of the link: https://github.com/OpenFOAM/OpenFOAM...231425dd4b2bd8 and I got this compiling message error: Quote:
Moreover, Anyone knows what is that error (I just followed the passages in the link)? Thanks in advance Regards Marco |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 ![]() |
Hi Marco,
The bug was about the using incorrect alpha value in the twophasemixture function. To overcome this, 'alpha2' has been presented and used in the upgraded OF2.2.x. I am not sure what is the reason of the error you have encountered, but for sure, it should be something from your setting. ABE |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
|
Hi Abe,
first of all thanks for the quick reply! If I understood correctly, The bug is already solved in OF2.2.x version, am I right? This bug was in the .-/src/transportModel/.../twoPhaseIncompressibleMixture? I am currently using the OpenFoam version 2.1.x. Do you know if there is a procedure to fix this bug for this version?? Anyway, Did you get better results with bug-free version of this solver? Thank you Regards Marco |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 ![]() |
Yes, in the current version of OF2.2.x, the bug has been corrected.
The bug was about twoPhaseProperties (http://www.openfoam.org/mantisbt/view.php?id=817). I suggest that you upgrade to OF22x. In the case that you prefer to use OF21x, I think it would be possible to solve the bug by some modifications. The best way could be comparing solvers of the two versions. Send me your email, so I send the interPhaseChangeFoam solver of OF22x. Yes, I was really impressed by the solver stability and accuracy of the results (for my case cavitation around flat plate). ABE |
|
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
|
Hi Abe,
thank you very much, my mail is: m.longhitano88@gmail.com I think that, you should send the solver and the library in src folder as well! Anyway, I implemented a diverse mass transfer coeffcients (Singhal et al. /2005/) in the interPhaseChangeModel! If you want, I can send to you and you can test them with yours test cases! Last question, do you know if it is possible to update the openfoam version? Let me know Regards Marco |
|
![]() |
![]() |
![]() |
![]() |
#14 |
Member
ABE
Join Date: Jul 2012
Posts: 46
Rep Power: 14 ![]() |
Hi,
Yes it is possible to update. Here you can find the way: https://github.com/OpenFOAM/OpenFOAM-2.2.x I have sent the OF22x original interPhaseChange solver. Yes, I would be thankful if you send the singhal modified solver. Regards, Abolfazl |
|
![]() |
![]() |
![]() |
![]() |
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
FYI: there has been yet another update on 2.2.x: https://github.com/OpenFOAM/OpenFOAM...911775e177eaa5
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#16 |
Senior Member
|
Hi Bruno,
A short question, Can I update the 2.1.x version or must I install the 2.2.x? (I have tried but I got compiling errors) Thanks Regards Marco |
|
![]() |
![]() |
![]() |
![]() |
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Hi Marco,
As Abe wrote, it's preferable that you install OpenFOAM 2.2.x as well. You can easily have more than one OpenFOAM version installed in your machine. See http://www.cfd-online.com/Forums/ope...tml#post416327 - post #5, for ideas. As for applying the changes made on 2.2.x to 2.1.x, I should be possible, but there were considerable changes in this solver between versions. It requires a laborious side-by-side comparison of the source codes and applying manually the necessary changes. For example, the error you got was due to the new feature "fvOptions" that was introduced in OpenFOAM 2.2: http://www.openfoam.org/version2.2.0/fvOptions.php - which is something that isn't present in 2.1.x. Best regards, Bruno
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#18 |
Senior Member
|
Hi Bruno,
All right! thanks for the quick reply. In order to avoid to back to you again I have another question! Which procedure do you suggest to follow to install openFoam 2.2.x (I am using OpenSuse 12.something (sorry I do not remember and I am not in my office)) I ask it because everytime I follow the official web site I get some problems! P.S.: I also want to have a debug compiling Thanks in advance Marco |
|
![]() |
![]() |
![]() |
![]() |
#19 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Hi Marco,
If it's openSUSE 12.3: http://albertopassalacqua.com/?p=1290 Other than that, check: http://openfoamwiki.net/index.php/In...2.2.0/openSUSE - from these you can get the information on the packages to install. Then cross-reference with the instructions on the previous link, which was for openSUSE 12.3. Best regards, Bruno
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#20 |
Senior Member
|
Hi Bruno,
I am using openSuse 12.3 so I cross the two links that you wrote! Moreover I will follow what you suggested in this threads: http://www.cfd-online.com/Forums/ope...oam-1-6-a.html to use the debug version Thanks again Bruno Regards Marco |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug about MULES::implicitSolve for interPhaseChangeFoam in OF-1.6 | chiven | OpenFOAM Bugs | 18 | April 18, 2013 23:56 |
consult some questions about the interPhaseChangeFoam | super | OpenFOAM Running, Solving & CFD | 9 | April 8, 2013 08:25 |
nOuterCorrectors in PISO loop - what for? | makaveli_lcf | OpenFOAM Running, Solving & CFD | 0 | October 14, 2009 09:29 |
MULES in interPhaseChangeFoam | isabel | OpenFOAM | 0 | July 16, 2009 08:06 |
gammaEqn.H in the interPhaseChangeFoam solver | isabel | OpenFOAM | 2 | July 7, 2009 14:41 |