CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

Passive Scalars

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 15, 2004, 07:03
Default Passive Scalars
  #1
CMB
Guest
 
Posts: n/a
Hi,

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
  #2
Ossi
Guest
 
Posts: n/a
You can define the scalar value e.g. in the sorsca.f subroutine.

You can write

if(IS.EQ.xx)then

where xx is the defined passive scalar.

Then you can write

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

S2P=Large_number

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

Old   January 15, 2004, 09:27
Default Re: Passive Scalars
  #3
alex
Guest
 
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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passive scalars and Star-CCM+ Tim CD-adapco 1 May 19, 2008 11:04
star-ccm+ and passive scalars tomy CD-adapco 3 August 21, 2007 15:15
gradients of passive scalars Ulle CD-adapco 1 July 10, 2005 12:24
passive scalars CMB CD-adapco 2 February 16, 2004 10:46
passive scalars CMB CD-adapco 0 December 10, 2003 07:14


All times are GMT -4. The time now is 04:05.