CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CD (http://www.cfd-online.com/Forums/star-cd/)
-   -   Multiple scalar initialization using initfi.f (http://www.cfd-online.com/Forums/star-cd/78839-multiple-scalar-initialization-using-initfi-f.html)

sdwijeya August 3, 2010 19:38

Multiple scalar initialization using initfi.f
 
I want to initialize the domain for two scalars and trying to figure out how I can do that. initfi.f has only one variable for scalar and hence I'm not sure how to initialize both the scalars? what I want is as follows:

IF (ICTID.EQ.5) THEN
SCALAR(1) = 0.0
SCALAR(2) = 0.1
ELSEIF (ICTID.EQ.6) THEN
SCALAR(1) = 1.0
SCALAR(2) = 0.0
ELSE
SCALAR(1) =0.6
SCAALR92) = 0.2
ENDIF

How do I define Scalar(1) and Scalar(2) in initfi.f?

Any ideas?


All times are GMT -4. The time now is 09:41.