|
[Sponsors] |
printstack with interFoam solver for a simple droplet on a flat plate |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 2, 2013, 01:23 |
printstack with interFoam solver for a simple droplet on a flat plate
|
#1 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi,
i am using interFoam solver for a simple droplet on a flat plate problem. However I am getting following error. Code:
Courant Number mean: 0.0145633 max: 0.336031 Interface Courant Number mean: 0.00266015 max: 0.297604 deltaT = 6.43228e-05 Time = 0.25 DILUPBiCG: Solving for alpha1, Initial residual = 0.000261318, Final residual = 1.9315e-08, No Iterations 1 Phase-1 volume fraction = 0.0663864 Min(alpha1) = -1.60472e-09 Max(alpha1) = 0.999996 DILUPBiCG: Solving for alpha1, Initial residual = 0.000257121, Final residual = 1.74159e-08, No Iterations 1 Phase-1 volume fraction = 0.0663864 Min(alpha1) = -1.56573e-09 Max(alpha1) = 0.999996 DILUPBiCG: Solving for alpha1, Initial residual = 0.000253059, Final residual = 1.5876e-08, No Iterations 1 Phase-1 volume fraction = 0.0663864 Min(alpha1) = -1.52736e-09 Max(alpha1) = 0.999996 DICPCG: Solving for p_rgh, Initial residual = 0.00568533, Final residual = 0.000220873, No Iterations 2 time step continuity errors : sum local = 0.000142762, global = 1.42374e-06, cumulative = 0.000414823 DICPCG: Solving for p_rgh, Initial residual = 0.00125021, Final residual = 4.41295e-05, No Iterations 4 time step continuity errors : sum local = 2.85196e-05, global = 1.98374e-06, cumulative = 0.000416807 DICPCG: Solving for p_rgh, Initial residual = 0.000346175, Final residual = 7.05486e-08, No Iterations 39 time step continuity errors : sum local = 4.56036e-08, global = -1.35202e-09, cumulative = 0.000416805 ExecutionTime = 106.02 s ClockTime = 410 s Courant Number mean: 0.0142799 max: 0.26863 Interface Courant Number mean: 0.00259935 max: 0.247942 deltaT = 7.62195e-05 Time = 0.250076 #0 Foam::error::printStack(Foam::Ostream&) in "/home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #2 Uninterpreted: #3 void Foam::MULES::implicitSolve<Foam::geometricOneField, Foam::zeroField, Foam::zeroField>(Foam::geometricOneField const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::zeroField const&, Foam::zeroField const&, double, double) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libfiniteVolume.so" #4 Foam::MULES::implicitSolve(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, double, double) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libfiniteVolume.so" #5 in "/home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/bin/BCFoam" #6 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6" #7 in "/home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/bin/BCFoam" Floating point exception (core dumped) Regards Last edited by wyldckat; August 17, 2013 at 09:15. Reason: Added [CODE][/CODE] |
|
August 2, 2013, 06:18 |
|
#2 |
Senior Member
|
dear @mebinitap,
Maybe you can decrease relaxation factors as I have mentioned earlier. or maybe choosing a robust convection scheme can converge your case, but it would be more diffusive. best
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
August 22, 2013, 09:08 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
FYI: I've moved the two posts above from the following thread, since the solver was very different: http://www.cfd-online.com/Forums/ope...arallel-2.html @mebinitap: I don't know if Mojtaba's answer helped you solve the problem, but if it didn't, please provide more information about your problem. Best regards, Bruno
__________________
|
|
August 22, 2013, 10:14 |
|
#4 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi Bruno,
Actually I was trying to model a droplet sitting on a plate, which is vibrating. For that I used a 2D rectangle domain (in blockMesh) and used sphereTocell to define alpha. But it seems droplet is slipping out of the domain. It happens even if drop is at the centre of the domain, so its not a surface roughness error i guess. Next i tried to use circular mesh which shows the same problem. But when i use a spherical 3D domain, i am not being able to run the case, ending up with printStack error as i mentioned earlier. One more thing I want to share (although not relevant here) that there is no such unusual behavior if i was use a cm sized domain and drop. Do you have any idea why it shows problem in smaller dimensions (mm) |
|
August 22, 2013, 10:24 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, a few details:
__________________
|
|
August 22, 2013, 10:30 |
|
#6 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi,
Thanks for the reply. Yes, the mesh is in metres and the BC is also the movingWall. But I have no idea about resolution transition. So better I'll check the post you mentioned first. Regards |
|
August 30, 2013, 09:56 |
|
#7 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi Bruno,
I read the post "Strange Results at Tank Outlet with InterFoam ", but I am still confused about how the results are different for same arrangement in two cases (in cmetres and in mm). For a simple case, I put a spherical drop in a chamber of mm size and it fluctuates rigorously with interFoam solver, while if i increase the size of domain and droplet to cm the fluctuations are reduced. At this point there is no flow field and all the four boundaries are wall, then why is this difference in two cases..Can you explain or give me a hint. Thanks |
|
August 31, 2013, 09:53 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi mebinitap,
Well, without an example case, I'm not able to do a similar analysis to the one I gave on that other thread. When I mentioned that thread, I also was thinking about you analysing more closely the simulation, from a physical point of view. This way, you could understand better what's happening. OK, even without an example to prove my point, here's my deduction from last night:
Best regards, Bruno
__________________
|
|
September 2, 2013, 04:01 |
|
#9 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi Bruno
Thanks for your time..So from what you said 1 cm drop should deform more than the mm one, which is not the case. This means the resolution has got an issue.. So I increased the resolution further, even then the drop (mm in size) tends to deform..Since I want to see the shape deformation under vibration effects, its very important that the droplet remain steady (doesnot deform on its own) without any external force..How can I stop the motion in the drop.. (The case is attached ) Thanks, |
|
September 7, 2013, 14:52 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi mebinitap,
You didn't attach the dynamic mesh information, nonetheless I think I found one of the problems. Attached is the tutorial "multiphase/interFoam/laminar/damBreak", modified to use your files. Nonetheless, I had to switch your "alpha1" field values from 0 to 1 and 1 to 0, so that the droplet would be made of water. In addition, the "controlDict" is configured to write time snapshots frequently, because I wanted to examine what was going on. Which lead me to find one of the big problems: you forgot to initiate the pressure field with the water's gravity-induced pressure. This leads to pulling the air very hard, because the gravity+pressure is suddenly activated when you start the simulation. In addition, the initial pressure should be in absolute value, not relative. In other words, the initial pressure field should be set to atmospheric pressure, not 0. Example given here: http://foam.sourceforge.net/docs/cpp...5.html#details ("totalPressureFvPatchScalarField") I found such a situation some time ago, here: http://www.cfd-online.com/Forums/ope...tml#post404292 post #7 I did a quick search and found this: Quote:
For your case, I created the file "system/funkySetFieldsDict" with the following content: Code:
FoamFile { version 2.0; format ascii; class dictionary; location "system"; object funkySetFieldsDict; } expressions ( pressureWater { field p_rgh; //field to initialise expression "9.81 * 1000.0 * (0.001-pos().y) + 100000.0"; condition "pow((pos().x-0.002),2) + pow(pos().y,2) <= pow(0.001,2)"; keepPatches 1; //keep the boundary conditions that were set before } ); Now, based on this case, I would say that only after the droplet on this simulation as come to a stand-still, only then you should start the vibration plate. Keep in mind that you can use mapFields, in order to use the result of this simulation on another simulation. Best regards, Bruno
__________________
|
||
September 9, 2013, 07:56 |
|
#11 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi, Thanks for your time and the detailed explanation. I will try run the case as you said and get back again later.
Regards |
|
September 13, 2013, 08:22 |
|
#12 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi,
I ran the case with quite longer time period but the deformations does not seem to decay (even with further refinement). I even tried circular mesh around the drop instead of rectangular blocks. Is it because the interface is not sharply defined. I used snappyHexMesh for a 3D case , still not working. Can you provide any idea.. Thanks |
|
September 14, 2013, 09:21 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi mebinitap,
I forgot to mention this before, but there is a solver that might help you to get the initial position of the droplet, namely for when it is meant to be stationary. The solver is LTSInterFoam and you'll find some information about it here: http://www.openfoam.org/version2.0.0/steady-vof.php Best regards, Bruno
__________________
|
|
September 18, 2013, 09:49 |
|
#14 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi Bruno,
Thanks again for your time..I tried LTSInterFoam as you suggested, but then droplet breaks up within a few seconds. Can you refer me to some links where the solver is explained in detail. The only problem is that the droplet interface is fluctuating too much and the rate is not much affected by timesteps and meshing. Its the same even for a full droplet at the center of the atmosphere so must not be a surface issue. Do you have any idea what could be the possible problem. Regards |
|
September 21, 2013, 16:19 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi mebinitap,
Unfortunately I'm not aware of any more tutorials about LTSInterFoam, beyond the one that OpenFOAM has got in the "tutorials" folder. Nonetheless, I've remembered about two tutorials that might help to gather some more ideas:
Either way, it is very much possible that the simulation you're trying to perform is on a scale for which the "inter*Foam" solvers provided in OpenFOAM cannot handle. As for more ideas:
Bruno
__________________
|
|
September 23, 2013, 00:25 |
|
#16 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi Bruno
Thank you so much..You were right..I got an instant reply from the support team that interFoam (VOF) is not good for surface-tension dominant problem..So may be i need some other solver that doesnot implement VOF technique. Regards Last edited by mebinitap; September 23, 2013 at 04:24. |
|
September 23, 2013, 17:08 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi mebinitap,
I'm glad you've gotten a straight answer! As for another solver... I'm not aware of any other solver that can specifically can work for this The closest I can think of is multiphaseEulerFoam, which should be well explained here: http://www.cfd-online.com/Forums/ope...eulerfoam.html - but it's designed for multiple phases, not just two phases. But with any luck, since it's Euler based, perhaps it can handle well surface tensions. The only other possibility that comes to mind would involve using dynamic meshes with two regions and using a force-tension calculation mechanism for the meshed surface in between phases... but I'm not aware of any solver that already does this. There is also "navalFoam" or "shipFoam" (I can't remember which one is the most recent), which are community created solvers... but I'm not sure if it applies to this kind of simulation:
Bruno
__________________
|
|
September 24, 2013, 02:19 |
|
#18 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
Hi Bruno,
I was thinking of twoPhaseEulerFoam for two phase system..It seems the interface can be sharply defined in this solver and is also based on Euler method. Anyways I will try what you suggested and let you know if i can get any better results.. Regards Binita |
|
October 5, 2013, 08:24 |
|
#19 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Binita,
I found this thread just now and thought that it might come in handy for your case: http://www.cfd-online.com/Forums/ope...tml#post455087 Best regards, Bruno
__________________
|
|
October 5, 2013, 11:13 |
|
#20 |
Member
|
Hi Binita,
Regarding the capability of the interFoam solver for your problem, I think michielm already pointed out the problem here http://www.cfd-online.com/Forums/ope...ormation.html; the droplet can not stay at the center of the surface due to the fact that there is no contact angle hysteresis implementation in interFoam. Thus, the deformation of the droplet will not decay as well. Regarding to surface-tension-dominant flows, if you want a very accurate solver to resolve the interface, you can try MMIT (moving mesh interface tracking) developed by Turkovic and Jasak. However, there is no contact angle boundary condition with that method yet, I believe. Regarding the error in your first post, I saw a 'Floating point exception' error. Could it be that you have in the case something divided by zero? That is the first thing I would check. Please check all steps in interFoam and try to find where is the problem. You might can see something in the result of previous time step (t = 0.25). Good luck. Regards, Duong |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary Layer of Laminar Flow over a Flat Plate | Blasius_Pohlhausen_Crocco | Main CFD Forum | 12 | September 30, 2013 18:35 |
Simulations Flow 3D over Flat plate | baoaero | OpenFOAM | 7 | June 7, 2013 06:53 |
Questions about a Turbulent Flat Plate Case | tstorm | FLUENT | 2 | August 11, 2009 15:16 |
Turbulent boundary layer on a flat plate | seb62 | OpenFOAM Running, Solving & CFD | 1 | January 17, 2009 04:30 |
Blunt flat plate - a validation case... | CFD Student | Main CFD Forum | 0 | March 6, 2007 10:27 |