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

Assigning values to an additional scalar variable

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 29, 2012, 06:25
Default Assigning values to an additional scalar variable
  #1
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 8
lost.identity is on a distinguished road
Hi,

In my simulations I include an additional scalar variable, say, T (this is not a transported quantity). I obtain the value of T in densit.f, via some equation like SCALAR(IT) = 300, where IT is the integer number assigned to this particular scalar.

Now, I'm wondering whether STAR will store this value of T, which can later be read during post-processing.

Thanks!
lost.identity is offline   Reply With Quote

Old   November 29, 2012, 11:53
Default
  #2
Senior Member
 
Pauli
Join Date: Mar 2009
Posts: 181
Rep Power: 8
Pauli is on a distinguished road
Was the scalar defined in Prostar (sc,x,defi..)? If so, I'd expect it to get stored in the output (.ccmp) file. For a transient run, you must request the scalar be output to the .ccmt file.

If this is something you are creating in a user subroutine and trying to place into the STAR SCALAR array, I would not necessarily expect it to appear in the output files. It may. But I wouldn't automatically expect it.
Pauli is offline   Reply With Quote

Old   November 29, 2012, 13:20
Default
  #3
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 8
lost.identity is on a distinguished road
Thanks, yes it's defined in Prostar. It's a transient simulation and I have requested to post values to .ccmt file. As a test, I just ran a sample run with 10 iteration but it doesn't seem to output the correct number, just gives me zero. I'll have another look at the code.
lost.identity 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
Solving for an additional species CO in coalChemistryFoam N. A. OpenFOAM Programming & Development 2 November 13, 2014 09:43
calculation of additional variable in multiple domain cosine CFX 11 January 27, 2013 13:38
Additional Variable tav98f CFX 3 April 28, 2011 12:33
GETVAR SUBROUTINE for additional variable in CFX Tuks Main CFD Forum 0 November 8, 2005 07:13
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 03:16.