|
[Sponsors] |
April 30, 2013, 10:44 |
Get a variable at each time-step
|
#1 |
Member
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13 |
Hello everyone,
I would like to get the mass fraction of a component in the mixture at each time-step and use that in the journal file that I have written. In fact, I want to get mass fraction of component X, inside the journal file like physical time, time-step size etc. The problem is that since mass fraction is a post-processing variable, I cannot use getvar in journal file. So, I don't know how to get this variable at each time-step. Would you please guide me if you are familiar with that? Thanks, Parisa |
|
April 1, 2014, 15:47 |
|
#2 |
Member
vlg
Join Date: Jul 2011
Location: My home :)
Posts: 81
Rep Power: 17 |
Assuming you have boundary zone "outflow1" and you want to know mass fraction of X, the following commands should be added to your jou file:
Code:
/report/surface-integrals/area-weighted-avg/ outflow1 () X y X_mass_fractions.srp y Probably, you can use Code:
plot/solution plot/solution-set/plot-to-file Last edited by villager; April 1, 2014 at 15:49. Reason: code tags |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple floating objects | CKH | OpenFOAM Running, Solving & CFD | 14 | February 20, 2019 09:08 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 09:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |
Time step, Number of time step, Maxximum Iterations per time step | sandisk | FLUENT | 0 | July 18, 2011 02:57 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 04:35 |