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

How to confine scalar to positive values

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2005, 21:53
Default How to confine scalar to positive values
  #1
Sheila
Guest
 
Posts: n/a
Hi everyone,

I am writing the k-w SST model in STAR as 2 scalars. I know that the model already exists in STAR but for my work I need to model them as separete quantities.

At the moment one of te problems I am having is that the minimum value of my k is always a very small negative value rather than zero. Any idea on what I can do to make sure the minimum is zero? Thanks in advance for your help. Sheila
  Reply With Quote

Old   January 25, 2005, 13:57
Default Re: How to confine scalar to positive values
  #2
4xF
Guest
 
Posts: n/a
RCONS 64 2
  Reply With Quote

Old   January 25, 2005, 15:04
Default Re: How to confine scalar to positive values
  #3
Sheila
Guest
 
Posts: n/a
Thank you!
  Reply With Quote

Old   January 27, 2005, 17:32
Default its not working...?!
  #4
Sheila
Guest
 
Posts: n/a
Hi 4xF,

its not wroking...

I am still getting a negative number as the minimum.

Sheila
  Reply With Quote

Old   January 28, 2005, 03:15
Default Re: its not working...?!
  #5
matej
Guest
 
Posts: n/a
Hi,

Unfortunatelly - I cannot tell you, where I got this info, whether it was adapco-online.com, or support, but still: the 64 switch works like this:

Setting rcon 64 to 1 clips the scalars between 0 and 1 for density calculation only, rcon 64 2 additionally clips the scalar values. (This seems to work only for active scalars.)

So it need not work for you. Can you limit the scalar with min-max in your user routine?

If it goes negative too much, It might be better to find the problem(source goes wild, or something)- where it originates and not to cure the effect ))

good luck

matej
  Reply With Quote

Old   February 1, 2005, 14:06
Default Re: its not working...?!
  #6
Sheila
Guest
 
Posts: n/a
Thank you
  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
Calculated Values in scalar field arkangel OpenFOAM Running, Solving & CFD 0 June 28, 2007 07:53
UDS for positive scalar Jun FLUENT 3 August 26, 2003 17:26
CO Scalar Values Ted Siemens 0 February 4, 2003 20:48
NEAGTIVE SCALAR VALUES Mario Siemens 1 November 18, 2002 02:01
How to enforce positive values Ning Main CFD Forum 10 August 20, 2000 00:10


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