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

Assigning values to an additional scalar variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2012, 05:25
Default Assigning values to an additional scalar variable
  #1
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
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, 10:53
Default
  #2
Senior Member
 
Pauli
Join Date: Mar 2009
Posts: 189
Rep Power: 17
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, 12:20
Default
  #3
Senior Member
 
Join Date: Apr 2009
Posts: 118
Rep Power: 17
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


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
Solving for an additional species CO in coalChemistryFoam N. A. OpenFOAM Programming & Development 3 February 18, 2019 05:58
calculation of additional variable in multiple domain cosine CFX 12 April 24, 2016 12:51
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 06:13
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 17:39.