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

Multiple scalar initialization using initfi.f

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 3, 2010, 19:38
Default Multiple scalar initialization using initfi.f
  #1
New Member
 
Sameera Wijeyakulasuriya
Join Date: Aug 2009
Posts: 12
Rep Power: 7
sdwijeya is on a distinguished road
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?
sdwijeya is offline   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
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
Specifying nonuniform boundary condition maka OpenFOAM Running, Solving & CFD 59 October 22, 2014 14:52
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
CFX12 rif errors romance CFX 4 October 26, 2009 14:41
STAR-CD user-defined scalar Murali CD-adapco 0 February 12, 2003 23:52


All times are GMT -4. The time now is 06:22.