CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   if two scalars calculation in scalfn.f (https://www.cfd-online.com/Forums/siemens/53741-if-two-scalars-calculation-scalfn-f.html)

mspark April 3, 2004 07:25

if two scalars calculation in scalfn.f
 
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

Uffe April 5, 2004 02:28

Re: if two scalars calculation in scalfn.f
 
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

mspark April 5, 2004 02:49

Re: if two scalars calculation in scalfn.f
 
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



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