|
[Sponsors] |
March 5, 2012, 05:54 |
rhoPimpleFoam Fatal error
|
#1 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Hello everybody,
I'm trying to get used to OpenFoam, because I would like to perform a numerical simulation for my PhD thesis. So I decided to run some tutorials and standard cases. Then I created a 2D mesh, using gmsh, the same I want to use for my thesis and tryied to run a standard solver for this new geometry. In particular, I tryied to run "rhoPimpleFoam". I didn't change anything in the code, only the mesh...but after some time steps it crashes down and I got a fatal error: "maximum number of iteration exceeded". From this forum I learned that could be related to a converegence problem, but I'm a newbie in this field so I don't know what could I change to fix it. I hope someone will help me. If you are intersted I can send you by mail my case folder, I can't upload it beacuse exceeds the max limit of the forum. Thanks in advance |
|
March 5, 2012, 07:01 |
|
#2 | |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
Quote:
also your running a transient case.. the settings for this case are always harder to work with... run easier transient cases (those within icoFoam directory, or pimpleFoam) to get the hang of it.... but i rly think you should get more theory b4 trying out random settings..
__________________
Best Regards /calim "Elune will grant us the strength" |
||
March 5, 2012, 07:43 |
checkMesh failed
|
#3 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Thanks for your advice,
I didn't check the mesh before...this is what I got: Failed 1 mesh checks. I upload in attachment the details of checkMesh. Unfortunately I don't know how to fix it, when I try to optimise 3D mesh with netgen using gmsh it crashes down. Are there mesh tools in OpenFoam that could be helpful? |
|
March 5, 2012, 10:41 |
|
#4 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
Hi!
your topology seems to be have problems Code:
Checking topology... Boundary definition OK. ***Total number of faces on empty patches is not divisible by the number of cells in the mesh. Hence this mesh is not 1D or 2D. gl
__________________
Best Regards /calim "Elune will grant us the strength" |
|
March 6, 2012, 12:07 |
Mesh Ok!
|
#5 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Hi!
thanks, you were right...the problem was related to the mesh, but not about boundary... the problem was related to the physical groups I had defined in gmsh. Actually I generated a new 3D mesh with gmsh, imported in OpenFoam, checked and run rhoPimpleFoam. But after while I get still the same error, probably the initial boundary conditions are not suitable for the new geometry. When I look the results, it seems that when the turbulence is going to start the simulation crashs. |
|
March 6, 2012, 12:20 |
|
#6 |
Senior Member
Goutam Saha
Join Date: Dec 2011
Location: UK
Posts: 131
Rep Power: 15 |
Its better to import mesh file from fluent. It works fine. I am using fluent for meshing. I used Gmsh before and it creates the same problem like you.
|
|
March 6, 2012, 12:35 |
|
#7 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
if the mesh is ok then you gotta work on the case...
and it should be a transient one since ur pimple*FOAM so try running a steady state simulation to make sure u have consistent BC then move back to the transient case. If you cannot map the results from the ss simulation then at least you can have a look at what the dimensions and order of your variables so you can set ur transient case w/o blowing it
__________________
Best Regards /calim "Elune will grant us the strength" |
|
March 12, 2012, 06:55 |
Standard case it's working
|
#8 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Dear all,
thanks to your advices I got a working rhoPimpleFoam for my 3D mesh. Now I'm trying to move some steps forward and again I got troubles. What I want to do is to customize the problem to fit my case. I have a fixed value of flow at inlet (1.75e-3 m/s) and a fixed value of pressure at the outlet (atmospheric pressure). I changed the thermophysical properties, inserting values related to my gas mixture and my boundary condition (only files: p, T, U). And again when I run my simulation after few steps it crashes down. I upload my 0 time folder and the thermophysical properties file. Thanks in advance |
|
March 13, 2012, 06:17 |
|
#9 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
Hi !
ok you said 1.75e-3m/s in the forums but wrote Code:
type fixedValue; value uniform (1.75 0 0); then i guess we should know if ur flow is turbulent and how turbulent it is and which models your using...
__________________
Best Regards /calim "Elune will grant us the strength" |
|
March 13, 2012, 06:51 |
|
#10 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Hi calim,
sorry! Nevertheless I modified the value in the U file but doesn't work anyway. About flow turbulence, I don't have much experience in fuid dynamic but it should be a turbulent flow... I did a calculation of the Reynolds number, using the formula I found in wikipedia for a flow in a pipe, and it's about 1000. Concerning the models, I don't know exactly, but as I told you previously I didn't change anything in rhoPimpleFoam except for the mesh...so I guess it's the default model used in rhoPimpleFoam. |
|
March 13, 2012, 12:46 |
|
#11 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
it seems that you're a bit confused rhoPimpleFoam handles:
Code:
Transient solver for laminar or turbulent flow of compressible fluids for HVAC and similar applications. are either ras or les type. I'd suggest you to read a bit more on turbulence b4 trying this transient simulation if you're looking for let's say..decent results.. your reynolds number, if right, points the need for a low re turbulence model / transition models... which require a bit of attention.. so pls take your time and investigate these topics.. GL!
__________________
Best Regards /calim "Elune will grant us the strength" |
|
March 14, 2012, 05:43 |
About turbulence...
|
#12 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Dear Calim
you are right, as I told you before I don't have experience about fluid dynamic and turbulence. I read several times the OpenFoam user's guide and the programmer's guide, but there isn't much about the physics of fluids and turbulence. The reason why I choose rhoPimpleFoam is that checking the standard solvers provided by OpenFoam, I thought it was the closest to my system. I have a gas mixture continuosly flowing trough a cylindric pipe, where the central region has a bigger diameter (kind of pumping chamber). Using a valves system I have a fixed value of flow at the inlet and atmospheric pressure at the outlet. Being a gas-continuous flow, with turbulence, I thought to use a transient solver for compressible flow, this is the reason why I choose rhoPimpleFoam. What do you suggest? Do you have papers to suggest me? Or should I use a different solver? Thanks! |
|
March 14, 2012, 09:42 |
|
#13 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
Hi!
first check whether you need compressible effects or not.. then you need to know if you need the transient response or the steady-state(ss) one if no is the answer for both questions, then i guess simpleFoam is your best option the user's guide tells you which are compressible and which are not, same for transient or ss about turbulence then you need some theory.. but since your case doesnt have a very high turbulence then i guess a laminar case is ok for you to start with. change the simulationType in the RASProperties to laminar! (RASModel laminar play a bit with the tutorials @ /tutorials/incompressible/simpleFoam/ GL
__________________
Best Regards /calim "Elune will grant us the strength" |
|
March 15, 2012, 06:44 |
Incompressible flow
|
#14 |
New Member
Francesco Borgosano
Join Date: Dec 2011
Location: Heidelberg
Posts: 17
Rep Power: 15 |
Hi Calim,
again your tips have been really helpful... I checked the Mach number and it's really really low, so I guess I can use an incompressible model. Concerning steady state or transient, I need the second one...so I choose the standard solver pisoFoam. About pisoFoam I would ask you what are CrossPowerLawCoeffs and BirdCarreaufCoeffs? How can I estimate these for my gas mixture? Thanks a lot!!! |
|
March 15, 2012, 07:05 |
|
#15 |
Senior Member
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18 |
those are "viscosity models", for when you need to simulate a fluid whose stress behavior is not linear. the transport model should be (4 water) :
Code:
transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; again.. i think you need to study a bit more.. i work with foam for sometime now and there's not a day go by that i dont learn sth new with foam or about it.. so i rly think you should read a bit more.. later
__________________
Best Regards /calim "Elune will grant us the strength" |
|
August 28, 2013, 09:12 |
|
#16 |
Senior Member
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 16 |
Hello Ancioi
How did you resolve this issue of max number of iterations exceeded. I have it in my rhoPimpleFoam case for air flowing in a pipe. Air is compressible. Can anyone advise please as I am trying to resolve this error for the last 8 days to no avail. Regards |
|
July 11, 2014, 17:02 |
|
#17 |
New Member
Xiangyu Gao
Join Date: Sep 2013
Location: West Lafayette, IN, USA
Posts: 29
Rep Power: 13 |
Hi, Sihaqqi!
Have you figured out the reason for the exceeded maximum iteration number? I am now facing the same problem. I have posted the description of my case. http://www.cfd-online.com/Forums/ope...tml#post501196 Could you please help me with it? Thank you in advance. |
|
July 11, 2014, 19:04 |
|
#18 |
Senior Member
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 16 |
I tried several options but then I had to lave the compressible flow. The solver was not working for my case but this does not mean that it will not work in your case as well.
|
|
Tags |
fatal error, maximum number, rhopimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 02:40 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 16:46 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
[Netgen] Installation of Netgen in SuSE Linux 92 | edvardsenpriv | OpenFOAM Meshing & Mesh Conversion | 23 | January 16, 2009 07:12 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |