|
[Sponsors] |
June 30, 2014, 09:25 |
[rhoCentralFoam] Crash in Nozzle Simulation
|
#1 |
New Member
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12 |
Hi,
I tried to compute a "simple" gas flow through a laval nozzle into vacuum, however the simulation crashes because of negative temperatures. The simulations I want to run are 3D, but for the sake of simplicity I created a 2D version in which the same error occurs. I attached a picture of the nozzle geometry as well as the full case directory (including the blockMeshDict). The bottom in the picture is a symmetryplane, the top a wall, left is the inlet, right the outlet and front and back are of type 'empty'. The inlet has a linear increase in pressure from 1e-6 Pa to 50 bar (5e+6 Pa) within 5e-6 s, and a pressureInletOutletVelocity. Everywhere else the initial pressure is 1e-6 Pa and zero velocity. What happens when the simulation runs is plotted in 'inlet.png' in the attachment. The pressure at the inlet constantly increases, as is the velocity, but the temperature quickly drops below zero which eventually crashes the simulation when calculating rhoCentralFoam.C:116 Code:
volScalarField c(sqrt(thermo.Cp()/thermo.Cv()*rPsi)); When the mesh resolution is increased, the simulation diverges earlier! The courant number was well below 1 in all cases that I tried to run, but this has no influence on the time of the crash. I am confused what might cause the temperature to diverge so strongly and hope someone might have a clue of what is going wrong here. Best regards, Max |
|
June 30, 2014, 10:45 |
|
#2 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 14 |
Hello maxmax,
have you checked your thermophysicalProperties? It looks like they are normalized to speed of sound at 1m/s and 1K. I'm not sure if you should therefore also adjust the pressure boundary conditions accordingly or simply use non-normalized values instead. Regards, Martin |
|
July 1, 2014, 06:43 |
|
#3 |
New Member
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12 |
Hi Martin,
thanks a lot for the quick reply! I changed the thermophysical properties to non-normalized values, but the problem still persists. The temperature equally diverges to negative values. I hope that I did not missunderstand what you meant by non-normalized values. The values I used are Code:
thermoType { type hePsiThermo; mixture pureMixture; transport const; thermo hConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } mixture { specie { nMoles 1; molWeight 4; // H: 2.0; He: 4.0; Ar: 39.9; N: 32.0 } thermodynamics { Cp 5.19e3; //heat capacity [J/(kgK)]: H: 14.304e3; He: 5.193e3; Ar: 0.52e3; N: 1.040e3 Hf 5.23e6; //heat of fusion [J/kg]: H: 58.6e3; He: 5.23e3; N: 25.5e3; Ar: } transport { mu 0; // dynamic viscosity: He: 1.86e-5 Pas (at 20°C); Pr 0.66; // Prandtl number [Pr = c_p*mu/kappa] monoatomic gas: 0.66 } } Max |
|
July 7, 2014, 08:43 |
|
#4 |
New Member
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12 |
Even with totalPressure and pressureInletOutletVelocity the simulation crashes.
I found that also the pressure becomes negative, at exactly the same time as the temperature becomes negative. I'm so confused... |
|
July 14, 2014, 12:19 |
|
#5 |
New Member
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12 |
Does no one have an idea?
|
|
July 18, 2014, 05:56 |
|
#6 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 14 |
Sorry, I did not have any success either :-(
|
|
June 3, 2015, 16:51 |
|
#7 |
New Member
Erik McKee
Join Date: Oct 2014
Posts: 1
Rep Power: 0 |
Hey maxmax,
This response has probably come too late. I noticed that the value for your heat of fusion is way too large: You quote: Hf 5.23e6; //heat of fusion [J/kg]: H: 58.6e3; He: 5.23e3; N: 25.5e3; Ar: your stated value in your comment was 5.23e3 for helium but you wrote 5.23e6. Let me know if you found this please and got it working. Thanks! |
|
Tags |
crashing, nozzle flow, rhocentralfoam, vacuum |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convergent-Divergent Nozzle with MATLAB | Obad | Main CFD Forum | 8 | June 2, 2020 15:10 |
simulation of Aerospike nozzle | gyanesh | FLUENT | 1 | March 22, 2017 09:05 |
Flow Simulation Crash with Trajectories | D.Castle | FloEFD, FloWorks & FloTHERM | 2 | August 5, 2009 15:50 |
Nozzle - Simulation converges, but data incorrect | fade | CFX | 0 | July 20, 2009 05:13 |
Need assistance in BC's for simulation of Vacuum cleaning nozzle | bruce | OpenFOAM Running, Solving & CFD | 0 | May 22, 2009 14:56 |