CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

Negative Density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2000, 19:33
Default Negative Density
  #1
Sangwon Kim
Guest
 
Posts: n/a
I have the same problem about 'negative density'.

I would like to know about the relationship between boundary condtion and negative density. I am eager to know about this unhappy message. Please post your wonderful advices.

Thank you
  Reply With Quote

Old   October 30, 2000, 23:06
Default Re: Negative Density
  #2
John C. Chien
Guest
 
Posts: n/a
(1). I am curious about this negative density message. (2). Could you describe your problem and the situation when you got this message. (3). Even though I don't use this code, I normally don't have such problem unless I am running a density-based code at low Mach number. (4). If you are not using the density-based code, then it is likely that the trouble lies somewhere else. So, what is the problem you are trying to solve?
  Reply With Quote

Old   October 31, 2000, 00:08
Default Re: Negative Density
  #3
Sangwon Kim
Guest
 
Posts: n/a
The problem that I want to solve is the flow mixing in IC engine cylinder. Before that, I am doing some kind of test about simple geometry and boundary conditions.

The boundary is 'inlet' and 'outlet'. The flow model is 'k-e'. The property is 'ideal gas'. Temperature option is 'on'.

If the inlet velocity is low, it converge but if the inlet velocity is high, negative density message is showed up. 'Negative densities found over 100 hundred cells.'

I want to know the general idea about this error message.
  Reply With Quote

Old   October 31, 2000, 00:23
Default Re: Negative Density
  #4
John C. Chien
Guest
 
Posts: n/a
(1). You will have to be more specific about this "low" and "high" inlet velocity. (2). You will have to use numbers, so we can understand it. Can you do it in numbers? I mean the inlet and wall conditions. And the size and the shape of your test case.(in numbers if possible).
  Reply With Quote

Old   October 31, 2000, 03:53
Default Re: Negative Density
  #5
A.Hassaneen
Guest
 
Posts: n/a
Generally, the (-ve) density message appear when something goes wrong in the calculation of the equation of state. For example for diverging solution, it start with very small or very high temperatures or enthalpy then the solution of the equation of state produce (-ve) pressure. This (-ve) pressure causes this (-ve) density.
  Reply With Quote

Old   October 31, 2000, 10:50
Default Re: Negative Density
  #6
Roberto Ciardulli
Guest
 
Posts: n/a
Is it possible to avoid this kind of situation and let calculations go on?
  Reply With Quote

Old   October 31, 2000, 13:37
Default Re: Negative Density
  #7
Sangwon Kim
Guest
 
Posts: n/a
Roughly, low velocity is 10m/s and high means 50m/s.

The geometry is 10cm height and 10cm diameter.

I turned on temperature option.

I agree this kind of error message is related to temperature calculaton(Energy equ).

The enthlpy residual is really big in many cases. (for ex 2x10E+15)

Thank you for your interest. I am really appreciate your response.
  Reply With Quote

Old   November 1, 2000, 03:13
Default Re: Negative Density
  #8
A.Hassaneen
Guest
 
Posts: n/a
As I have said below, look at the file (case.info) to find out what exactly caused this message and when it started, then discuss your findings with us here.
  Reply With Quote

Old   November 1, 2000, 05:57
Default Re: Negative Density
  #9
John Law
Guest
 
Posts: n/a
Since there is no much details about the cases here, the general guidance is : 1. for steady flow calculation, lower pressure and temperature under-relaxation factors, you may also use under-relaxation factir for density; 2. for unsteday calculation, reduce under-relaxation factor for PISO from 1.0 (default) to 0.5 (say). There could also be possibility of code bug in certain case, so if you can not sort it out, passing the case to your support engineer is always good option.
  Reply With Quote

Old   November 1, 2000, 08:12
Default Re: Negative Density
  #10
Bart Prast
Guest
 
Posts: n/a
I had the same problem. To a great extend these problems were solved when I used the latest version of STAR (3.100B)
  Reply With Quote

Old   November 1, 2000, 10:20
Default Re: Negative Density
  #11
Sreenadh Jonnavithula
Guest
 
Posts: n/a
The unfortunate fact is that this message results from a variety of errors. It is more a last desperate message from the code that something is wrong. In most cases, this happens because the solution is diverging (or diverged) and the first thing that the code notices is definitely wrong is that the physical property density is negative. So in general, as Hassaneen pointed out, you need to look at your .info file to see where the problem started.

In your case, though, I think the situation is not so bleak. From your description, I would guess that your pressure reference location is at or near the inlet. When you start the flow off with a large inlet velocity, the "pressure drop" in your channel during the first few (unconverged) iterations is probably larger than the inlet pressure. This would result in a negative absolute pressure near the exit, causing the negative density in Ideal Gas cases.

If this is a startup problem, you can get over it by either ramping up the velocity (for example, use your low velocity solution as an initial guess for the higher velocity solution) or reducing the underrelaxation factors. If this persists, it is possible that this is an inconsistent set of boundary conditions. That is, with this inlet pressure, there is no way this much mass would flow in this channel. Another way of avoiding this problem is to place the reference pressure location at the outlet. Then the pressure drop would simply raise the upstream absolute pressure, and there would be no absolute negative pressures anywhere. It depends on where you have measured values of pressure to impose on the simulation.

If all this doesn't help, it could still be a problem with divergance - perhaps a bad mesh etc., I encourage you to contact user support.
  Reply With Quote

Old   November 2, 2000, 09:03
Default Re: Negative Density
  #12
Roberto Ciardulli
Guest
 
Posts: n/a
in the file case.info I got these kind of messages:

"warning #65 out of bounds value for scalar variable enth"

"out of bound values found at more than 100 cells"

"negative press found at cell no. ..."
  Reply With Quote

Old   November 4, 2000, 05:48
Default Re: Negative Density
  #13
Ahmed Hassaneen
Guest
 
Posts: n/a
For you Roberto and Sangwon, if you don't have any moving mesh, so most propably you should use finer mesh to avoid that message assuming that your boundary condition is fine. Another thing is try the MARS differencing scheme instead of UD.
  Reply With Quote

Old   November 6, 2000, 08:52
Default Re: Negative Density
  #14
Roberto Ciardulli
Guest
 
Posts: n/a
Actually mine is a transient state run (moving piston in a cylinder during intake stroke); I also have used MARS diff. sch. for U V W. Should I still use a finer mesh?

Thanks for your interest

Roberto
  Reply With Quote

Old   November 7, 2000, 06:01
Default Re: Negative Density
  #15
A.Hassaneen
Guest
 
Posts: n/a
No, I belive it's not a mesh problem. In your case if it happens at the end of compression or the start of expansion (the first event in the expansion) so it is related to the event module and I can give you some suggestion if this is the case. If it happens after the first time step, so reducing the length of time step by 1 order of magnitude may help. Could you tell us when that happen??
  Reply With Quote

Old   November 7, 2000, 09:16
Default Re: Negative Density
  #16
Roberto Ciardulli
Guest
 
Posts: n/a
It happened at the beginning of the compression stroke 3 degrees before intake valve closing (LIVC = 70 deg.). I wanted to see what happened during compression but the error stopped the run.

Thanks, Roberto

P.S.: Here are a few parameters that may help you:

start crank angle= 590 deg.

stop crank angle= 630 deg.

intake valve closing= 610 deg.

engine speed= 2000 rpm

time step size= 0.5 deg.= 4.16667e-05

transient post frequency= 2

number of time steps= 80
  Reply With Quote

Old   November 8, 2000, 03:00
Default Re: Negative Density
  #17
Ahmed Hassaneen
Guest
 
Posts: n/a
Look at the file (protemp.info) and find out how many events are processed before the message and at which time step. Also, is it related to the last event of the inlet valve??
  Reply With Quote

Old   November 8, 2000, 08:44
Default Re: Negative Density
  #18
Roberto Ciardulli
Guest
 
Posts: n/a
Actually I cannot find the file (protemp.info)...I might have deleted it; is there another way to get those informations? If not let me know, so that I'll run again the same case.

Bye, Roberto
  Reply With Quote

Old   November 11, 2000, 03:13
Default Re: Negative Density
  #19
A.Hassaneen
Guest
 
Posts: n/a
I'm not sure if it is PROTEMP.INFO or PROTEMP.something else. Try to look at all the PROTEMP.*, one of the file has info for one event and the other has info for all events up to the moment.
  Reply With Quote

Old   November 14, 2000, 02:59
Default Re: Negative Density
  #20
Pavan Sharma
Guest
 
Posts: n/a
Dear Sangwon Kim

I agreed with Mr. Sreenadh Jonnavithula. I have also encountered this problem of negative density on various cases, sometimes even in solving the sample problem. If there is no hardware specific problem the certainly it is due to diversion of the solution. I would suggest to have a finer mesh and reduced the time step value. We were succesful in solving the problem by this way.

Pavan
  Reply With Quote

Reply


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
negative density novice Siemens 1 March 15, 2005 09:27
Negative density Ricky Siemens 6 June 23, 2004 09:48
negative density Jane Siemens 4 March 9, 2004 21:01
Negative density Miriam Siemens 0 May 10, 2002 04:21
NEGATIVE DENSITY M. R. JAHANNAMA Main CFD Forum 8 September 29, 1999 23:59


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