|
[Sponsors] |
January 1, 2013, 09:45 |
Error with rhoCentralFoam in Shock tube
|
#1 |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
hi,
i have been working with the tutorial file of compressible flow in the open foam of Shock tube During the process the Mesh of the geometry is happening quiet easily but when i am running the solver it is giving me the error message as follows: ************************************************** ************* vaio@ubuntu:~/OpenFOAM/vaio-2.1.1/run/shockTube$ rhoCentralFoam /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.1-221db2718bbb Exec : rhoCentralFoam Date : Jan 01 2013 Time : 19:08:08 Host : "ubuntu" PID : 5824 Case : /home/vaio/OpenFOAM/vaio-2.1.1/run/shockTube nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading thermophysical properties Selecting thermodynamics package ePsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>> Reading field U Creating turbulence model Selecting turbulence model type laminar Reading thermophysicalProperties fluxScheme: Kurganov Starting time loop #0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 void Foam::divide<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>(Foam::GeometricField<Foam::Vect or<double>, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/rhoCentralFoam" #4 Foam::tmp<Foam::GeometricField<Foam::Vector<double >, Foam::fvsPatchField, Foam::surfaceMesh> > Foam:perator/<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>(Foam::GeometricField<Foam::Vect or<double>, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/rhoCentralFoam" #5 in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/rhoCentralFoam" #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/rhoCentralFoam" Floating point exception (core dumped) vaio@ubuntu:~/OpenFOAM/vaio-2.1.1/run/shockTube$ ^C vaio@ubuntu:~/OpenFOAM/vaio-2.1.1/run/shockTube$ I am new to the open foam and not able to find the solution of the problem if anybody has encountred the same problem please help in resolving the issue.:con fused: Thanks Himanshu.. |
|
January 2, 2013, 06:11 |
|
#2 |
Senior Member
|
Hello,
Check the following thread, it will be helpful to you. http://www.cfd-online.com/Forums/ope...am-detail.html Best regards, Tushar |
|
January 6, 2013, 04:10 |
|
#3 |
Super Moderator
|
You are getting floating point exception due to negative pressure or density. Try changing the limiter or reducing time step or cfl number.
|
|
January 7, 2013, 16:41 |
|
#4 | |
New Member
Join Date: Dec 2012
Posts: 3
Rep Power: 14 |
I've been having the exact same error as himanshu28. (Bear in mind, I'm running the tutorial file with NO modifications...)
Quote:
Forgive me, I'm new to OpenFoam, but I can't figure out what you mean by limiter. |
||
January 8, 2013, 06:40 |
|
#5 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
Quote:
Thanks Himanshu |
||
January 8, 2013, 09:21 |
Error Persist..!!!
|
#6 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
Quote:
thanks for reply I have tryed your suggestions but the the error is still persist i am attaching the executable of shocktube if you can check it would be a great help.0.zip system.zip thank you |
||
January 8, 2013, 12:09 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I have same this error with rhoCentralFoam for a long time.is rhoPimpleFoam more stable?
|
|
January 8, 2013, 14:06 |
|
#8 |
New Member
Join Date: Dec 2012
Posts: 3
Rep Power: 14 |
Alright, I've tried 10 different limiters, and I'm still getting the same error. The original limiter was linear, with reconstructs for rho, U, and T using vanLeer, vanLeerV, and vanLeer respectively. I commented out the reconstructs and tried different limiters for the default and still get the same error message.
I've also tried using the shockTube example in sonicFoam, same error message. |
|
January 11, 2013, 15:49 |
|
#9 |
New Member
David Huckaby
Join Date: Jul 2009
Posts: 21
Rep Power: 17 |
Hello Himanshu,
I think the problem is the initial conditions. According to your ./0 directory, your pressure is initialized to 0 (Pa) and the temperature 1 (K). It appears that you did not run "setFields" before running "rhoCentralFoam". Dave |
|
January 12, 2013, 04:49 |
|
#10 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
i dont want to use non homogenious initial condition so deleted setFieldsDict.is it ok?
|
|
January 14, 2013, 09:27 |
|
#11 |
New Member
David Huckaby
Join Date: Jul 2009
Posts: 21
Rep Power: 17 |
You can use a homogeneous initial condition, but for the simulation to run, the initial pressure should be a positive number (1e5 Pa). The temperature might also need to be increased ( > 200K) due to the thermodynamic parameterization.
|
|
January 16, 2013, 00:54 |
|
#12 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
Quote:
is $ blockMesh $ <solver> /in this case rhoCentralFoam what alterations i need to perform to run this case.Since i am new to open foam your guidance will help. Thank You Himanshu |
||
January 16, 2013, 05:37 |
|
#13 |
Senior Member
|
@immortality: If you have no gradients at any place, what flow would you have? So keeping a completely homogeneous case without any gradients or differing values in my opinion contradicts the principle of flow. But that is your decision to make.
The important thing indeed is that you need to have a case which has conditions acceptable to the solver. If you really do not want to change anything via the setFieldsDict, please change 0/p and 0/T to reasonable values! Temperatures below 200 K are difficult to some of the thermodynamic libraries. And pressures below 1000 Pa most probably are below limits for using a control-volume approach as the FVM is one. (More info on that: Look for Knudsen-number and direct simulation monte carlo DSMC) @himanshu28: - The alteration you need to make should be simply running the command "setFields" just after blockMesh. Then your case should be set up correctly and you should have a nice shocktube simulation. The different pressure zones you can define within system/setFieldsDict. - In general for working with the tutorials, it is advantageous to have a look into the "Allrun" file. Usually all the steps are conducted in the right order in there. The basic approach actually would be to first conduct simply "./Allrun", then do the single steps from the Allrun-file by hand. |
|
January 17, 2013, 08:25 |
Thanks alot !!!
|
#14 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
Quote:
Thank a lot for your guidance. Regards Himanshu.. |
||
January 17, 2013, 14:15 |
|
#15 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Actually that is one perfect way every developer uses when they are just crazy about a difficult bug, having no gradient does not contradict anything to prevent the simulation and produce error, if you don't have gradient but flow that is what you should call contradict.
|
|
December 4, 2013, 14:06 |
|
#16 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I had an entry in the tube with higher pressure,then a gradient there was and movement occurred due to incoming fluid.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
February 23, 2018, 01:20 |
Other thread of interest
|
#17 |
New Member
Join Date: Mar 2011
Posts: 16
Rep Power: 15 |
This other thread:
Instability solving low-density plume expansion with rhoCentralFoam may be of interest to people having a similar problem. I can say the bounding on energy equation method suggested helped avoid stability problems I was encountering during solution startup. Good luck with you own simulations! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HLL Riemann Shock Tube Matlab Problem | Luke F | Main CFD Forum | 2 | May 20, 2016 03:10 |
Shock tube simulation | harish | FLUENT | 5 | January 25, 2014 03:20 |
Modelling Shock Tube with Venting | RCBlast | Main CFD Forum | 1 | December 17, 2012 10:40 |
rhoCentralFoam not reflecting shock in Shock Tube? | Astaria | OpenFOAM Running, Solving & CFD | 5 | March 4, 2012 04:07 |
shock tube validation | AB | Main CFD Forum | 3 | December 10, 2004 08:31 |