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

[rhoCentralFoam] Crash in Nozzle Simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2014, 08:25
Default [rhoCentralFoam] Crash in Nozzle Simulation
  #1
New Member
 
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12
maxmax is on a distinguished road
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));
The simulation crashes within few picoseconds, at which the inlet pressure is about 10 Pa.

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
Attached Images
File Type: jpg geometry.jpg (19.8 KB, 72 views)
File Type: jpg inlet.jpg (22.8 KB, 55 views)
Attached Files
File Type: zip simplenozzle.zip (9.9 KB, 37 views)
maxmax is offline   Reply With Quote

Old   June 30, 2014, 09:45
Default
  #2
Member
 
Join Date: Jun 2012
Posts: 76
Rep Power: 13
maHein is on a distinguished road
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
maHein is offline   Reply With Quote

Old   July 1, 2014, 05:43
Default
  #3
New Member
 
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12
maxmax is on a distinguished road
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
    }
}
Best regards,
Max
maxmax is offline   Reply With Quote

Old   July 7, 2014, 07:43
Default
  #4
New Member
 
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12
maxmax is on a distinguished road
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...
maxmax is offline   Reply With Quote

Old   July 14, 2014, 11:19
Default
  #5
New Member
 
Max
Join Date: Apr 2014
Posts: 4
Rep Power: 12
maxmax is on a distinguished road
Does no one have an idea?
maxmax is offline   Reply With Quote

Old   July 18, 2014, 04:56
Default
  #6
Member
 
Join Date: Jun 2012
Posts: 76
Rep Power: 13
maHein is on a distinguished road
Sorry, I did not have any success either :-(
maHein is offline   Reply With Quote

Old   June 3, 2015, 15:51
Default
  #7
New Member
 
Erik McKee
Join Date: Oct 2014
Posts: 1
Rep Power: 0
mckeee2 is on a distinguished road
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!
mckeee2 is offline   Reply With Quote

Reply

Tags
crashing, nozzle flow, rhocentralfoam, vacuum


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
Convergent-Divergent Nozzle with MATLAB Obad Main CFD Forum 8 June 2, 2020 14:10
simulation of Aerospike nozzle gyanesh FLUENT 1 March 22, 2017 08:05
Flow Simulation Crash with Trajectories D.Castle FloEFD, FloWorks & FloTHERM 2 August 5, 2009 14:50
Nozzle - Simulation converges, but data incorrect fade CFX 0 July 20, 2009 04:13
Need assistance in BC's for simulation of Vacuum cleaning nozzle bruce OpenFOAM Running, Solving & CFD 0 May 22, 2009 13:56


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