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

interFoam simulation blowing up

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2011, 14:36
Default
  #21
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Hi Jon,

Thanks for the input. I did as you suggested and set cAlpha = 0 and started the run. It takes a while to run, but I will post back when I know something.

I started the simulation back at 18 seconds where it was still running stable. does this seem reasonable? Or should I start it back at t=0?

Thanks again,

MD
mgdenno is offline   Reply With Quote

Old   July 12, 2011, 15:22
Default
  #22
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
Quote:
Originally Posted by mgdenno View Post
Hi Jon,

Thanks for the input. I did as you suggested and set cAlpha = 0 and started the run. It takes a while to run, but I will post back when I know something.

I started the simulation back at 18 seconds where it was still running stable. does this seem reasonable? Or should I start it back at t=0?

Thanks again,

MD
I would start from fresh, just in case. Start at t = 0 since we are trying to debug.
JonW is offline   Reply With Quote

Old   July 12, 2011, 15:23
Default
  #23
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
p.s. how long takes each simulation (up to break) and what computer do you have?
Jon
JonW is offline   Reply With Quote

Old   July 12, 2011, 16:58
Default
  #24
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
It is taking about an hour per second of simulation to run. I am running it on a virtual machine running kubuntu that has 4 2.3 Ghz CPU and 8 GB ram allocated to it. I am not sure of the specifics other than that, such as interconnect speed since they are vCPU...it is something I want to look into to see if it can be increased, etc.
mgdenno is offline   Reply With Quote

Old   July 14, 2011, 15:47
Default
  #25
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Hi JonW,

I did as you suggested and started a new simulation run (t=0) and set cAlpha = 0. Unfortunately the simulation still blows-up (it is still running but deltaT is getting very small...it is only a matter of time now). However, a came across your post regarding cAlpha (here), and I think I am having the same problem with waves. It seems as though it is not what is causing it to blow-up, but it is still a problem. I was hoping the waves would go away if I could get it to run, but based on what you have experienced, I am now thinking maybe they are separate issues.

Did you ever solve your issue?

I think I will work play around with the fvSchemes and my mesh and try to get it to run without pulling away from the walls (picture in previous post).

Thanks,

MD
mgdenno is offline   Reply With Quote

Old   July 14, 2011, 16:44
Default
  #26
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
Quote:
Originally Posted by mgdenno View Post
Hi JonW,

I did as you suggested and started a new simulation run (t=0) and set cAlpha = 0. Unfortunately the simulation still blows-up (it is still running but deltaT is getting very small...it is only a matter of time now). However, a came across your post regarding cAlpha (here), and I think I am having the same problem with waves. It seems as though it is not what is causing it to blow-up, but it is still a problem. I was hoping the waves would go away if I could get it to run, but based on what you have experienced, I am now thinking maybe they are separate issues.

Did you ever solve your issue?

I think I will work play around with the fvSchemes and my mesh and try to get it to run without pulling away from the walls (picture in previous post).

Thanks,

MD
Ok, if cAlpha = 0, did not work then I am clueless.

Yes, the waves are a problem in interFoam, and also when I import STL surface with snappy (into a good basic mesh with no problems), then I can see small wave generations surrounding the STL. Also, even I have completed the simulation, the reconstructPar have died on me (which it did not when I excluded the STL). NOTE, everything was OK when I put cAlpha = 0 (but the simulation becomes fubar, as there is no interface compression). So something is not right with interFoam in terms of interface compression of the alpha equation

I have gone thoroughly into alphaEqn.C and alphaEqnSubCycle.C (if misspelled, then dont remember the name exactly), and I see no problems there (i.e. everything is correct, as far as I can see). So the question is if the problems is in MULES.H and MULES.C and how it treats the compression part of the alpha equation. I don't know

The only thing I can suggest is to remesh. Begin with something simple and then gradually increase the complexity of the mesh. I know this is time consuming, but I dont think there is a way around this.

P.s. If you are manly interested in steady state interFoam, then maybe this is for you
http://www.openfoam.com/version2.0.0/steady-vof.php

cheers
Jon
JonW is offline   Reply With Quote

Old   February 21, 2012, 09:48
Default outlet patch acting like wall! strange result
  #27
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Dear Matthew
Hi
I simulate a stepped spillway without any interruption but the result is very strange. when the flow face the outlet it doesn't pass the outlet and turn back like facing on the wall.
I don't know how to correct it I searched alot especially I read this thread carefully but I couldn't understand what to do.
could you please help me?
Here are the main files.
Attached Images
File Type: jpg 1.jpg (11.6 KB, 360 views)
MOHAMMAD67 is offline   Reply With Quote

Old   February 21, 2012, 10:42
Default
  #28
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Mohammad,

The download link is not working for me, I think it is blocked for me.

Based on what I am seeing in your picture though, I have the following thoughts:

1. Is it possible that what you are seeing is just a hydraulic jump?
2. If the outlet is really acting like a wall then I would guess that there is a problem with your velocity boundary condition. It should probably be either inletOutlet or zeroGradient.

Can you post your case to this forum? If it is too large maybe try removing all files except for the blockMeshDict from the constant/polyMesh directory and only include the original files from 0/ directory (the ones from before you ran setFields).

MD
mgdenno is offline   Reply With Quote

Old   February 21, 2012, 12:21
Smile stepped spillway files
  #29
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Dear Matthew

Really thanks for your reply. I really need to my gods help through you to solve my problem . It's taken along time that i couldn't get a good result.
Files are attached. Could you please give me your email.
also I corrected the file and you can download.
BTW I'm using Salome 6.3 for meshing and geometry building. Also I use funkysetfields instead of setfield dictionary to patchthe second phase.
Attached Files
File Type: gz system.tar.gz (948 Bytes, 73 views)
File Type: gz 0.tar.gz (3.7 KB, 102 views)
File Type: gz boundary.tar.gz (499 Bytes, 48 views)
MOHAMMAD67 is offline   Reply With Quote

Old   February 22, 2012, 10:23
Default
  #30
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
hello,

Your BC are not correct, and i think also that your geometry either. (You should extend the outlet zone in your geometry, if this is the cas in reality)

For your BC:
* alpha seems ok, but inlet = 0.5 is a bit strange however, even if you use setFields. You may try zerogradient instead, or use groovyBC to set the level of your flow.
* U: ok
* p_rgh: all wall and inlet should be " buoyantPressure", not zeroGradient.
- outlet should not be a totalPressure like your upperwall (not consistent), but try zeroGradient here. But if your upperwall is a wall, then -> buoyantPressure, and outlet: totalPressure.
* k,epsilon: try zeroGradient for the upperwall (if this is a free atmosphere. In case this is a wall, then ok)
* nut: wall = nut wall function ok, all other (inlet/outlet/top: calculated).

hope this help,

regards,
olivier
vonboett, JFM and Bashar like this.
olivierG is offline   Reply With Quote

Old   February 22, 2012, 10:38
Default Spillway simulation
  #31
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Hi Oliver
Thanks for your comments. I'll implement changes and report the results.
Regard
MOHAMMAD67 is offline   Reply With Quote

Old   February 22, 2012, 14:49
Default Result
  #32
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Dear Oliver
I did all things except extending the domain. Unfortunately it didn't work and after 1.3 seconds it blows out. I don't know how deal with. I reduced the delta T to 0.00001 and turn the adjustable time step off. It is running now. I will inform you from the result.
Maybe I should make the mesh finer. Whats your opinion. Does it help me to get result.
Kind Regard
MOHAMMAD67 is offline   Reply With Quote

Old   February 22, 2012, 14:53
Default
  #33
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Mohammad,

I agree with what Oliver has said. Let us know how it goes.

Oliver,

You mentioned using groovyBC to control the water level at the inlet. I posted a question about this sometime ago and never got an answer on how to accomplish it. I normally specify and inlet patch and set alpha=1. Do you have a simple working example of how to do this? I have never used groovyBC but if it can be used to do this I may have to give-it-a-go.

MD
mgdenno is offline   Reply With Quote

Old   February 22, 2012, 14:58
Default
  #34
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Mohammad,

Have you run checkMesh on your mesh? That should give some idea if you have mesh problem. Do you have a picture showing your mesh (maybe a slice through your domain)?

MD
mgdenno is offline   Reply With Quote

Old   February 23, 2012, 03:55
Default
  #35
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
hello,
mgdenno:
Take a look at the openfoamwiki about groovyBC, you will see some exemple (like the groovyWaveTank). And if you look in the svn repo, you will see some test case.
In short, you can set a z level like (pos().z<1 ? 0 : 1) In this case, you set alpha=0 if z<1, and 1 if z>= 1.

Mohammad:
You may try LTSInterFoam for your case, if your solution are steady state. It will be much faster. And yes, mesh is allways important, and with interFoam even more because interfacecompression is done over ~ 2 cel.

regards,
olivier
olivierG is offline   Reply With Quote

Old   February 24, 2012, 18:01
Default
  #36
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Thanks Oliver. I think I will dive into goovyBC this weekend.
mgdenno is offline   Reply With Quote

Old   February 25, 2012, 01:38
Default Turbulence !
  #37
Member
 
Mohammad Fereshtehpour
Join Date: Jul 2011
Location: Iran
Posts: 61
Rep Power: 15
MOHAMMAD67 is on a distinguished road
Send a message via Skype™ to MOHAMMAD67
Dear friends
Hi
I make the mesh finner but It didn't work . Unfortunately all the simulation has been blown out between 0.9 to 1.3 seconds.

Mattew
Could you please tell me how did you choose initial condition for k and epsilon? Is it possible to upload the 0 folder of your simulation? Did you change that folder uploaded in the first post of this thread?
secondly How did you mesh your model. I used netgen3d hypothesis with max. size of element 0.04.
I'm really confused about that!! Unfortunately I don't have access to HPC and wrong simulation really waste my time but I'm grateful because it helped me to learn a lot of new things about openfoam.
MOHAMMAD67 is offline   Reply With Quote

Old   February 25, 2012, 12:45
Default
  #38
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Mohammad,

Did you run checkMesh on your mesh? This program will check your mesh for problems. I would do this next.

I have used GMesh, snappyHexMesh and blockMesh to generate my meshes. The ones in the pictures at the beginning of this post were made with snappyHexMesh and an STL file. You should probably take an incremental approach if you are just starting out. Maybe, start with a simple 2D geometry from blockMesh, which will also run much faster so you can try more things in a shorter time. Gradually make your geometry more complex.

Regarding k and epsilon, I think if you are having trouble, and suspect that your turbulence may be the problem, you should try to run a laminar simulation first, then you won't have to worry about your turbulence properties.

MD
mgdenno is offline   Reply With Quote

Old   February 27, 2012, 05:11
Default Pressure outlet
  #39
Member
 
Arnout
Join Date: Nov 2010
Posts: 46
Rep Power: 16
The King is on a distinguished road
I has probolems with my pressure outlet as well, but it is a little different 2D case. When I used:

out
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}

it started to work fine. However, I has to change my fvsolutions file with a reference point and value:

PISO
{
momentumPredictor no;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
nAlphaCorr 1;
nAlphaSubCycles 4;
cAlpha 2;
pRefPoint (0.0 0.018 0.0);
pRefValue 1e5;

}

Good luck!
The King is offline   Reply With Quote

Old   October 21, 2012, 02:51
Default
  #40
New Member
 
yakouna
Join Date: Oct 2012
Posts: 2
Rep Power: 0
ardjouna is on a distinguished road
Hi Mathiew,

I Start with OpenFoam and have the same case labyrinth spillway and hope some help I start with dam break tutorial but have some troubles (when running rasInterFoam error message say this application not valable )

Thank you for your reply and best regards
ardjouna is offline   Reply With Quote

Reply

Tags
interfoam, spillways


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
Solar Radiation in OpenFOAM plainstyle OpenFOAM Running, Solving & CFD 15 July 8, 2014 05:43
GUI crash and simulation engine still running RPJones FLOW-3D 2 November 9, 2010 09:18
velocity profile export from a simulation onto another sudhirlv STAR-CCM+ 1 September 12, 2010 19:57
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 14:02


All times are GMT -4. The time now is 12:28.