How to confine scalar to positive values
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 |
Re: How to confine scalar to positive values
RCONS 64 2
|
Re: How to confine scalar to positive values
Thank you! :D
|
its not working...?!
Hi 4xF,
its not wroking... I am still getting a negative number as the minimum. Sheila |
Re: its not working...?!
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 :o)) good luck matej |
Re: its not working...?!
Thank you :)
|
All times are GMT -4. The time now is 23:42. |