CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Get a variable at each time-step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2013, 10:44
Default Get a variable at each time-step
  #1
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13
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?
Thanks,
Parisa
Parisa_Khiabani is offline   Reply With Quote

Old   April 1, 2014, 15:47
Smile
  #2
Member
 
vlg
Join Date: Jul 2011
Location: My home :)
Posts: 81
Rep Power: 17
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:
Code:
/report/surface-integrals/area-weighted-avg/
outflow1
()
X
y
X_mass_fractions.srp
y
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
Code:
plot/solution
plot/solution-set/plot-to-file
(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

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
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


All times are GMT -4. The time now is 07:08.