
[Sponsors] 
August 4, 2005, 06:12 
How to calculate mass of recirculation

#1 
Guest
Posts: n/a

I want to calculate the mass of recirculation in a flow field using CFX post. Any idea how to calulate it. Any help on this regard will be appreciated. Thanks in advance. Kali


August 4, 2005, 18:58 
Re: How to calculate mass of recirculation

#2 
Guest
Posts: n/a

Hi,
Define a plane or some sort of surface which the recirculating flow goes through and use the function tool to get the mass flow rate of it. You can define the plane/surface manually or define some sort of isosurface which defines it. Regards, Glenn Horrocks 

August 5, 2005, 01:03 
Re: How to calculate mass of recirculation

#3 
Guest
Posts: n/a

Glenn, Its not easy to define a plane or isosurface defining the individual recirculating zones. Please tell me if you have any other idea. Thanks, Kali


August 5, 2005, 03:38 
Re: How to calculate mass of recirculation

#4 
Guest
Posts: n/a

If you want to calculate the mass flow of the reversed flow in a specific plane in an area with recirculation, here's how to do it:
1) Create the plane of interest 2) Create a Contour Plot based on the plane with Velocity u (or v or w) as variable. Set range to User Specified and min = 100 and max = 100, or other symmetric values that extend the velocities. Set the # of Contours to 3! That gives a contour plot with 2 colours. One colour being positive u values and the other negative values. 3) Create a User Surface with the "From Contour" method. Set the Contour level to 2 or 3. 4) Calculate the mass flow of the User Surface using the function Calculator. massFlow()@User Surface 1 Michael Bo 

August 5, 2005, 09:56 
Re: Recirc  Use total pressure or age of fluid

#5 
Guest
Posts: n/a

Hi Kali,
It seems like you want the mass, rather than the mass flow (net mass flow would be zero anyhow). You might be able to create an isovolume (Volume object) based on Total Pressure. Typically, the total pressure within the recirculation zone will be much lower, due to the losses. From this isovolume you can then calculate the total mass. Alternatively, you could add an "Age" variable to your solver run. This will calculate the age of the fluid as it passes through your domain. Since fluid gets held up in a recirculation zone, the "Age" will be greater than that outside the recirculation. To calculate Age, go back to Pre and create an additional variable of type "Volumetric" and units of [s]. LIBRARY: ADDITIONAL VARIABLE: age Option = Definition Units = [s ] Variable Type = Volumetric END END Under Domains>Fluid Models, activate the additional variable ans set the option to Transport Equation. Leave Kinematic Diffusivity unchecked. FLOW: DOMAIN: StaticMixer FLUID MODELS: ADDITIONAL VARIABLE: age Option = Transport Equation END END END END Create a subdomain which includes your entire domain mesh with a source term for Age equal to 1 [] (i.e. 1 second per second). This source term will then accumulate time, as the integral of 1 dt is 't'. If you like, you can turn off the other equations by adding the appropriate model override parameters, for instance: FLOW: EXPERT PARAMETERS: solve energy = f solve fluids = f END END Finally, you may want to increase your timestep, at least on the age equation. This will speed things up significantly. You should only need a few multiples of you timescale to be done. Don't bother converging, especially if you have a recirculation zone, as time will continue to accumulate in these areas, causing the solution to stall. Now write the def file and run it. Hopefully this works out for you. Best regards, Robin 

August 10, 2005, 06:34 
Re: How to calculate mass of recirculation

#6 
Guest
Posts: n/a

Hello Kali,
The most important is that you define the boundary of the vortex. This itself is an active area of research. Some of the criteria are the ones suggested by Glenn and Robin. You could also do a google search on (vortex, definition, Hussain) and you will see that there are a number of definitions and each of them is good for certain type of flows. A recent article of Haller could give you an idea: http://web.mit.edu/ghaller/www/vortex.pdf I have used in the past the helicity and the second invariant of the velocity gradient. These are quite easy to implement in post using CEL and work quite well for internal flows. I hope that this helps a bit. Kind regards, Yulian 

August 17, 2005, 08:15 
Re: Recirc  Use total pressure or age of fluid

#7 
Guest
Posts: n/a

Hello Robin, I am also working on similar problem to determine Residence time distribution.I defined AGE variable and Subdomain and started the simulation with previous result file as Initial guess.But i got an error message " The following objects have been referenced but not defined:
SUBDOMAIN: Subdomain 1 ccl2flow: * command language error * Message: Undefined references Context: define_name_table " Then i started the simulation without initial guess and it is running without any errors.My previous result file has no sub domains defined. Do i need to define Sub domains for the first run? Please help me. Thank you. Regards, Siva 

August 18, 2005, 08:45 
Re: Recirc  Use total pressure or age of fluid

#8 
Guest
Posts: n/a

Hi Siva,
This problem can be resolved by using the interpolate option with your previous results file. CFX does not seem to recognise the old and new domains to be the same due to the new subdomain. Interpolating the old results will overcome this. Regards Paul 

August 19, 2005, 06:46 
Re: Recirc  Use total pressure or age of fluid

#9 
Guest
Posts: n/a

Hello Paul, Thank you very much for your help. I have one more question regarding interpolation. I did interpolation from command prompt. After interpolating results to new definition file it will stop by saying " * Finished interpolation successfully. * ". My question is do i need to use the old result file as initial guess for new run? or can i start directly from newly interpolated definition file?
Because,if we start from GUI it will automatically start the run after interpolation whereas from command prompt first we use cfx5interp command and in the next step we start the simulation with cfx5solve command. Regards, Siva 

August 22, 2005, 03:01 
Re: Recirc  Use total pressure or age of fluid

#10 
Guest
Posts: n/a

Hi Siva,
You should start directly from the .def file. (Help files > Solver Manager > Managing Your CFD Run > Tools Menu > Interpolate) The old results file has not been changed so contains all the values for the old domain without the subdomain. This is no longer of any use. Have Fun Paul 

September 5, 2014, 19:31 

#11 
Senior Member
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 248
Rep Power: 9 
Dear all,
I would like to measure the mass or the volume of recirculation zone. Has anybody figured out how to do that? If yes, please let me know. Thanks AshtonJ 

September 6, 2014, 07:50 

#12 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,743
Rep Power: 106 
The first problem is you have to define the recirculation zone. This is not easy in 3D in general, but for your flow there may be a definition.


September 6, 2014, 09:14 

#13 
Senior Member
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 248
Rep Power: 9 
Hi Glenn. I identify the recirculation zones in 3D based on flow streamlines. I just need to figure out how to quantify the recirculation regions.


September 7, 2014, 06:23 

#14 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,743
Rep Power: 106 
No, I mean define them mathematically. Sure, you can draw streamlines and the recirculation is obvious, but writing a mathematical function which matches the obviously visible streamline is not easy. Once you can define the recirculation mathematically then it is easy: You define that as a region in CFDPost and use the calculator to give the volume. I am not aware of a universal definition of a recirculation volume so you are going to have to find some way of defining it for your case. 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
how to calculate the averaged mass flow along a line over time ?  iampolaris  OpenFOAM PostProcessing  0  March 10, 2011 23:03 
How to calculate Volumetric Mass transfer coefficient using CFX?  tuks_123  CFX  2  July 22, 2010 01:15 
How to calculate the mass fraction of species in Fluent?  llrr  FLUENT  0  May 21, 2010 04:41 
mass flow in is not equal to mass flow out  saii  CFX  2  September 18, 2009 08:07 
how to calculate volume or mass ?  Yasmail AKARIOUH  FLUENT  1  July 3, 2008 05:51 