CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens

Passive Scalars

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2004, 07:03
Default Passive Scalars
Posts: n/a

If you define a passive scalar, e.g. scalar(x) and it is to be calculated in any subroutine via a variable 'y'. How do you define that you want the value of y to be scalar(x). So after doing this you can then post process it?

I'll appreciate any help, thanks
  Reply With Quote

Old   January 15, 2004, 08:23
Default Re: Passive Scalars
Posts: n/a
You can define the scalar value e.g. in the sorsca.f subroutine.

You can write


where xx is the defined passive scalar.

Then you can write

S1P=Large_number(like 1E+25) times "y"


After this, the scalar xx has the value "y".
  Reply With Quote

Old   January 15, 2004, 09:27
Default Re: Passive Scalars
Posts: n/a
Not sure I follow Ossi's example. I would use the subroutine "scalfn". In scalfn, do the following;

if (is.eq.x) then C where x is the scalar number phi = y end if

This routine is called for every cell and will put the value "y" into scalar "x", which can be post processed in prostar by; load,, getc conc x
  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Passive scalars and Star-CCM+ Tim Siemens 1 May 19, 2008 12:04
star-ccm+ and passive scalars tomy Siemens 3 August 21, 2007 16:15
gradients of passive scalars Ulle Siemens 1 July 10, 2005 13:24
passive scalars CMB Siemens 2 February 16, 2004 10:46
passive scalars CMB Siemens 0 December 10, 2003 07:14

All times are GMT -4. The time now is 00:30.