# Macro to access MEAN volume fraction

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

 January 17, 2012, 00:38 Macro to access MEAN volume fraction #1 New Member   Join Date: Jun 2011 Posts: 18 Rep Power: 6 Hello all, I am running an eulerian model on Fluent using unsteady statistics. Could anyone please tell me what is the macro to access the MEAN volume fraction for a specific phase? I know from the manual that for an instantaneous case the macro is C_VOF(c,pt[n]), but i cannot find anything regarding the MEAN value. Any help would be much appreciated, Thanks!! Yashmash

 January 17, 2012, 04:25 #2 Member   Join Date: Nov 2011 Location: Czech Republic Posts: 95 Rep Power: 5 I don't if such macro exists, but there is possibility to compute mean fraction by your own. You can iterate through all cells in you domain and determine volume that is occupied by particular phase and then divide it by total volume.

 January 17, 2012, 10:24 #3 Senior Member   shoeb khan Join Date: Nov 2011 Posts: 179 Rep Power: 5 if you need the mean volume fraction go to reports>>volume intergral>>volume average >>phases and there you can see the phase volume in your domain regards shk

 January 18, 2012, 01:21 #4 New Member   Join Date: Jun 2011 Posts: 18 Rep Power: 6 thanks guys but what I'm looking for is the MACRO for TIME AVERAGED or MEAN value of volume fraction so I can use it in my UDF.

January 18, 2012, 04:25
#5
Senior Member

shoeb khan
Join Date: Nov 2011
Posts: 179
Rep Power: 5
Quote:
 Originally Posted by yashmash thanks guys but what I'm looking for is the MACRO for TIME AVERAGED or MEAN value of volume fraction so I can use it in my UDF.
All the udf in fluent calculates the value to the cell centered value .
you cannot get the mean value with udf in an entire domain . you have to calculate the value using some loop function inside your udf.

regards
shk

 January 25, 2012, 09:50 #7 Senior Member   shoeb khan Join Date: Nov 2011 Posts: 179 Rep Power: 5 hi the problem may be i am saying may be that the domain udf has to be 2 for 3rd phase as domain id starts from 0 1 and 2 for phase 1 2 and 3. kindly make the changes and see whether the simulation is working fine. also try to use the subthread for the thread of the phase of which you want the value for the vof of the fluid. Thread *subthread=THREAD_SUB_THREAD(mix_thread, p_d_index); Regards Shk Last edited by shk12345; January 25, 2012 at 10:40.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Pravesh Kumar FLUENT 5 November 6, 2013 01:48 gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11 gopala OpenFOAM Running, Solving & CFD 0 April 27, 2009 10:46 SSL FLUENT 2 January 26, 2008 12:55 Dr.jones CFX 1 January 25, 2006 05:32

All times are GMT -4. The time now is 14:10.