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

if two scalars calculation in scalfn.f

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2004, 07:25
Default if two scalars calculation in scalfn.f
  #1
mspark
Guest
 
Posts: n/a
Hi all I always appreciate all to reply. i want to calculate and output two scalar value which are difined as SCALAR(01) and SCALAR(02) in subroutine scalfn.f. however there is only one output parameter(PHI) in scalfn.f. value of scalar(01) can be outputed through parameter(PHI). How can i output and display the value of scalar(02).

Best regards

mspark
  Reply With Quote

Old   April 5, 2004, 02:28
Default Re: if two scalars calculation in scalfn.f
  #2
Uffe
Guest
 
Posts: n/a
Have you tried this?

IF (IS.EQ.1) THEN C--SCALAR 1 PHI=? ELSEIF (IS.EQ.2) THEN C--SCALAR 2 PHI=?? ENDIF

Regards, Uffe
  Reply With Quote

Old   April 5, 2004, 02:49
Default Re: if two scalars calculation in scalfn.f
  #3
mspark
Guest
 
Posts: n/a
Hi Ufee

you mean

IF (IS.EQ.1) THEN

PHI=an equation

ELSEIF (IS.EQ.2) THEN

PHI=another differnent equation

ENDIF

This flow chart isn't satisfied with displaying two scalar value at the same time. I have two different equations i want to display during calaulation. the If two equation are calculated not by the iteration of star-cd dependently but by output from star-cd independently. At post-precess of starc-cd there are many number of 'concentration of scalar number', and if i have many equations presented by 'concentration of scalar number', how can i figure out and display the equations with one *.pst or *.pstt

best regsrds

mspark

  Reply With Quote

Reply

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
Use of SCALFN Chris Siemens 0 May 23, 2007 20:26
Calculation of bounded scalars ankgupta8um OpenFOAM Running, Solving & CFD 1 June 19, 2006 05:03
scalars of different phase novice Siemens 0 August 27, 2004 05:09
passive scalars CMB Siemens 2 February 16, 2004 09:46
Passive Scalars CMB Siemens 2 January 15, 2004 08:27


All times are GMT -4. The time now is 21:18.