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

UDS for positive scalar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2003, 17:53
Default UDS for positive scalar
  #1
Jun
Guest
 
Posts: n/a
I would like to use UDS to calculate the concentration field. But the results are negative (small) in some parts of the domain. Would it affect a lot on the solution? and if that's true, how can I solve a positive scalar by uds? Can I just set the negative values to zero using udf?

Thanks a lot for your advising.

Jun Li
  Reply With Quote

Old   August 19, 2003, 03:38
Default Re: UDS for positive scalar
  #2
Greg Perkins
Guest
 
Posts: n/a
There are couple of things to do.

Generally I check for small negative values and set them to zero inside a DEFINE_ADJUST routine. Scalars should never be negative (see Patankar).

The other option, which you should also consider is to add or modify your source term - Patankar also describes this - so that it is linearised with respect to the scalar being solved and forces the solution to zero as zero is approached.

In practice even with some sort of source term linearisation I find that I still need to reset small negatives to zero. gnerally we are talking about numbers of order 1.0e-4 to 1.0e-6 in magnitude so they don't effect the solution if reset to zero. However it you leave them they may grow exponentially and interact with your other equations in an adverse way, so its best to reset them to zero.

Hope it helps

Greg

ps Patankar - Numerical heat Transfer 1980 - the first book to read if you're new to CFD and finite volume methods.

  Reply With Quote

Old   August 19, 2003, 14:40
Default Re: UDS for positive scalar
  #3
Jun
Guest
 
Posts: n/a
I appreciate it, Greg. I am doing it now and will let people here know what will happen when setting the negatives to zero.

Jun
  Reply With Quote

Old   August 26, 2003, 18:26
Default Re: UDS for positive scalar
  #4
Jun
Guest
 
Posts: n/a
No much change happens in my case if resetting the negatives to zero. Jun
  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
Preventing negative scalar (UDS) values?? Matthew Brannock FLUENT 5 September 1, 2020 13:32
Perfect sink for an UDS scalar concentration Peter023 FLUENT 8 June 28, 2018 12:48
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
User defined scalar transport problem (UDS) jpcfd FLUENT 0 June 8, 2010 05:50
UDS - scalar equation tomik FLUENT 0 May 17, 2006 05:17


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