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