CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Get a variable at each time-step

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

LinkBack Thread Tools Display Modes
Old   April 30, 2013, 10:44
Default Get a variable at each time-step
Join Date: Feb 2013
Posts: 51
Rep Power: 4
Parisa_Khiabani is on a distinguished road
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?
Parisa_Khiabani is offline   Reply With Quote

Old   April 1, 2014, 15:47
Join Date: Jul 2011
Posts: 57
Rep Power: 6
villager is on a distinguished road
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:
the last y to append data, not to overwrite. The previous y - write to file - yes. Exchange y for your substance, e.g. H2O.

Probably, you can use
(try to make it work manually, start FLUENT in terminal mode and train yourself)

Last edited by villager; April 1, 2014 at 15:49. Reason: code tags
villager is offline   Reply With Quote


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
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
Multiple floating objects CKH OpenFOAM 10 September 21, 2011 23:13
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

All times are GMT -4. The time now is 00:27.