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

rhoCentralFoam Negative initial temperature in simulation of gas jet into vacuum

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2018, 13:43
Default rhoCentralFoam Negative initial temperature in simulation of gas jet into vacuum
  #1
New Member
 
c
Join Date: Nov 2017
Posts: 4
Rep Power: 9
c_underwood is on a distinguished road
Hi all,

I am trying to simulate a gas jet going into a vacuum. I have generated a mesh using the GMSH facility, then use setField so there is a chamber at the backing pressure, and then the vacuum at a lower pressure. This is currently still very high to stop any problems occurring from large gradients.
I was having issues with floating point exceptions, but solved that problem with:
unset FOAM_SIGFPE

However, now the system goes to negative temperature and kills the simulation.

I have seen on other threads that there is an option for setting min and max temperatures, but I have not been able to do this successfully.
I have created a file called fvOptions, and tried having it in both system/ and constant/ but no change has been seen. Is this how to go about setting temperature limits with rhoCentralFoam?

I have tried changing the fvSchemes, but none of these stop the negative temperature, although some options do delay its occurrence. What are the most stable schemes to use for this type of problem?

Are there any other ways of stopping the negative temperatures? I am only interested in the density profile, so if there is a fudge fix that doesn't mess up the simulation too much I would be interested.
I seem to be able to run smaller diameter nozzles for a longer time, why is this?

I have attached the simulation (a smaller version just around the nozzle).
To set up the mesh I run the gmsh on the .geo file to create a .msh then:

gmshToFoam *.msh
transformPoints -scale ('0.001 0.001 0.001)'

Then i modify the boundary file so the front and back are empty, by changing the fab to:
fab
{
type empty;
inGroups 1(empty);

To run the simulation I do the following:
cp 0orig/* 0/.
setFields
decomposePar
mpirun -np 8 rhoCentralFoam -parallel | tee log
Attached Files
File Type: gz openfoam_gasJet.tar.gz (7.1 KB, 5 views)
File Type: zip 2D_Nozzle_150_into_Vacuum_lowRes.geo.zip (1.2 KB, 5 views)
c_underwood is offline   Reply With Quote

Old   November 19, 2020, 15:45
Default
  #2
New Member
 
Cihangir
Join Date: Jul 2019
Location: Istanbul, Turkey
Posts: 1
Rep Power: 0
cpalaci is on a distinguished road
Hey! Have you found the solution to the issue?

Now, I am trying to simulate a sonic gas jet injection to supersonic flow and conventional solution suggestions could not solve my issue. Anyone kindly can help?
cpalaci is offline   Reply With Quote

Reply

Tags
fvshemes, nozzle, nozzleflow2d, rhocentralfoam


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
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 23:13
Wrong fluctuation of pressure in transient simulation caitao OpenFOAM Running, Solving & CFD 2 March 5, 2015 22:33
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
should Courant number always be kept below 1? wc34071209 OpenFOAM Running, Solving & CFD 16 March 9, 2014 20:31
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58


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