|
[Sponsors] |
January 22, 2015, 05:36 |
Breakmodel in OpenFoam
|
#1 | |
Member
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Quote:
I have just seen your bug report posted at 2013-09-08 about the exclusive of atomization model and breakup model in Openfoam, and I realize it haven't been solved. I am wondering have you got any progress on this? Currently, I am struggling trying to imply primary breakup model such as KH breakup with blob method into Openfoam and met a lot of errors during the process. Do you have any suggestoin how this should be done properly? I think this process is also very important for my later plan of applying more advanced breakup model such as KH-ACT into openfoam. Any suggestion will be appreciated! Best Regards, Bo Last edited by wyldckat; February 2, 2015 at 16:25. Reason: Moderator note: moved this and next post to this current thread |
||
January 22, 2015, 07:53 |
|
#2 | |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
Quote:
I reported that bug at a time where the whole lagrangian spray classes had still a lot of sever bugs and things weren't working correctly. After tracking down and fixing the bugs, I think the current implementation in OpenFOAM is working fine and the bug #1000 is superfluous. Note that you need to use the very latest development version (January 2015) of OpenFOAM to get all bug-fixes, especial with respect to the KHRT model, see here: https://github.com/OpenFOAM/OpenFOAM...2783a51e6a9ea9 https://github.com/OpenFOAM/OpenFOAM...6a1c68dd9a0ed0 https://github.com/OpenFOAM/OpenFOAM...bd53e6d7263912 https://github.com/OpenFOAM/OpenFOAM...6700f24ccbb215 https://github.com/OpenFOAM/OpenFOAM...0928b2a54dad7a You can implement you own atomization model very easily and supply it in a user defined library. Please start a new thread and keep this one on topic, it might also be a good idea to familiarize yourself with the guidelines given here: http://www.cfd-online.com/Forums/ope...-get-help.html |
||
January 22, 2015, 10:24 |
Breakmodel in OpenFoam
|
#3 | |
Member
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Quote:
Regarding to the " very latest development version ", does it mean the latest OpenFoam 2.31 or can I also just modify the code according to the bug report in github with my OpenFoam 2.30? Last edited by wyldckat; February 2, 2015 at 16:24. Reason: fixed quoted post ID |
||
January 23, 2015, 10:47 |
|
#4 | |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
Quote:
I would recommend you to just use the latest 2.3.x git-version! You can of course also back-port all the changes from the 2.3.x git repository to your 2.3.0 installation, but I don't see how that would make any sense. For instructions on how to do that, see here: http://www.openfoam.org/download/git.php -Armin |
||
January 25, 2015, 22:09 |
|
#5 |
Member
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Dear Armin,
Thanks for the quick reply. I have just installed the newest 2.3.x version. Currently, I want to distinguish the KH and later KHRT breakup process in the ReitzKHRT model, it seems to me there are two possible ways of doing this: 1) add a breakup length limitation into the breakup model, which seems to be straight forward 2) add KH part into the atomization model, a bit more complicate but can make use of the liquidcore concept Which do you think is the better way of doing this? And the same with "blobs method"------- is it better to imply it in the atomization model part or injection model part? Thanks in advance. : ) By the way, I tried to add the breakup variable into calcBreakup function in SprayParcel like following: Code:
...... scalar disbreakup = mag(this->position()-this->position0()); td.cloud().breakup().update ( .... .... dChild, massChild, disbreakup ) Code:
Solving 3-D cloud sprayCloud Program received signal SIGSEGV, Segmentation fault. 0x00007fffe92e15ae in Foam::EKHRT<Foam::SprayCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > >::update (this=0x4afed00, dt=3.6121911451147631e-07, g=..., d=@0xb948fc8: 3.7787746720808345e-05, tc=@0xb9490e0: 0, ms=@0xb9490e8: 0, nParticle=@0xb948fc0: 2.0142790546900065, KHindex=@0xb9490c8: 0, y=@0xb9490d0: 0, yDot=@0xb9490d8: 0, d0=3.7779345486647244e-05, rho=662.24081809240022, U=......, Urmag=34.929408186742982, tMom=6.2366133261046816e-05, dChild=@0x7fffffff7c60: 0, massChild=@0x7fffffff7c58: 0, disbreak=@0x3ff404ea48000000: <error reading variable>) at lnInclude/EKHRT.C:164 164 if (disbreak > brelength) (gdb) Last edited by wang219910611; January 26, 2015 at 08:56. |
|
January 26, 2015, 22:15 |
|
#6 |
Member
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Update: I have solved this problem, though I am not very clear of the reason: for the disbreak up, you should use "const scalar" rather than "scalar &"
|
|
February 2, 2015, 08:42 |
|
#7 |
Member
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
Another question: Where is the breakup().update function really being called??
I was pretty sure it was called by the calcBreakup function in the SprayParcel.C, until I added the info lines into the calc function in SprayParcel.C: Code:
if (liquidCore() > 0.5) { Info<<"I am here AAA"<<endl; calcAtomization(td, dt, cellI); // Preserve the total mass/volume by increasing the number of // particles in parcels due to breakup scalar d2 = this->d(); this->nParticle() *= pow3(d1/d2); } else { Info<<"I am here BBB"<<endl; calcBreakup(td, dt, cellI); } |
|
February 2, 2015, 08:57 |
|
#8 | |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
Quote:
It is called at that place. IIRC, the print-outs to Info don't work there. Try writing to cout instead of Info (not sure it it works though). |
||
February 2, 2015, 09:23 |
|
#9 |
Member
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 12 |
||
Tags |
breakupmodel, sprayfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
OpenFOAM Foundation Releases OpenFOAM v2.3.0 | opencfd | OpenFOAM Announcements from OpenFOAM Foundation | 3 | December 23, 2014 04:43 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
OpenFOAM Training and Workshop | Hrvoje Jasak | Main CFD Forum | 0 | October 7, 2005 08:14 |