CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

flow distribution index (gamma function)

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

Like Tree2Likes
  • 1 Post By kyle
  • 1 Post By ggulgulia

Reply
 
LinkBack Thread Tools Display Modes
Old   August 24, 2009, 10:53
Default flow distribution index (gamma function)
  #1
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 8
bramv101 is on a distinguished road
Hi all,

in fluent you could write a piece of usercode that represented the flow distribution index (gamma)

gamma = 1-V_prime/2*Vavg
Vprime=Area AVGD of abs(V-Vavg)

Has anyone done something similar in StarCCM+ and willing to explain me?

Last edited by bramv101; August 27, 2009 at 09:16.
bramv101 is offline   Reply With Quote

Old   August 24, 2009, 17:01
Default
  #2
Senior Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 134
Rep Power: 9
kyle is on a distinguished road
You can do it by creating a new report and a field function...

1. Add an "Area Averaged Report" and add the boundary or section plane you are interested in to the report. Set velocity magnitude as the scalar. This will create another new field function that will have the value of the the average velocity. The name of the new field function will be based on the name you gave your report.

2. You can then create a new field function called gamma: 1 - abs($VelocityMagnitude - $VelocityAverageReport) / (2 * $VelocityAverageReport)
(The name of the field function "$VelocityAverageReport" will depend on what you named your report)

Note that you will have to create an average velocity report and a different gamma field function for each boundary or section that you want to work with.
kyle is offline   Reply With Quote

Old   August 26, 2009, 10:53
Default
  #3
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 8
bramv101 is on a distinguished road
Many Thx this worked for me
bramv101 is offline   Reply With Quote

Old   August 27, 2009, 04:48
Default
  #4
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 8
bramv101 is on a distinguished road
If i created the field function, how can i then display this value?
Another avg report doesnt seam logical to me
bramv101 is offline   Reply With Quote

Old   August 27, 2009, 09:16
Default
  #5
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 8
bramv101 is on a distinguished road
Never mind, i should use expression report.
However one thing:
your definition of the gamma function is somewhat odd to me.
you do not use axial velocity but magnitude instead, and you dont area avg your abs(V_cell_axial-AA_v_axial)
bramv101 is offline   Reply With Quote

Old   August 27, 2009, 15:51
Default
  #6
Senior Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 134
Rep Power: 9
kyle is on a distinguished road
If you want to use axial velocity you need to create a new field function to use instead of velocity magnitude:

abs(dot(unit($$Area), $$Velocity))
kyle is offline   Reply With Quote

Old   April 20, 2015, 08:30
Default
  #7
New Member
 
Priyank Vijapur
Join Date: Jan 2014
Posts: 2
Rep Power: 0
Priyankv is on a distinguished road
Quote:
Originally Posted by kyle View Post
You can do it by creating a new report and a field function...

1. Add an "Area Averaged Report" and add the boundary or section plane you are interested in to the report. Set velocity magnitude as the scalar. This will create another new field function that will have the value of the the average velocity. The name of the new field function will be based on the name you gave your report.

2. You can then create a new field function called gamma: 1 - abs($VelocityMagnitude - $VelocityAverageReport) / (2 * $VelocityAverageReport)
(The name of the field function "$VelocityAverageReport" will depend on what you named your report)

Note that you will have to create an average velocity report and a different gamma field function for each boundary or section that you want to work with.
Here do we consider Mass flow average or Area average? I am checking FDI at SCR inlet. Please let me know which one do i need to consider and why?
Priyankv is offline   Reply With Quote

Old   April 20, 2015, 11:17
Default
  #8
Senior Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 134
Rep Power: 9
kyle is on a distinguished road
The formula I posted (six years ago!) is area averaged. It's up to you to determine whether you need area or mass averaged. I don't know your requirements.
Priyankv likes this.
kyle is offline   Reply With Quote

Old   April 21, 2015, 05:08
Default
  #9
Member
 
Gajendra Gulgulia
Join Date: Apr 2013
Location: India
Posts: 86
Rep Power: 4
ggulgulia is on a distinguished road
Hi

Mass averaged reports are generally needed when you are considering the bulk volume of your continua or a part of it, or in more layman terms the control volume for eg: total pressure, static pressure, total temperature, entropy, enthalpy etc.

However the surface averaged reports (as the name suggests) gives the values at a surface, for eg uniformity index and other values which you may need at surface.

(I am omitting the mathematics, you can always look them up in the help manual )
Priyankv likes this.
ggulgulia is offline   Reply With Quote

Old   April 21, 2015, 07:43
Wink
  #10
New Member
 
Priyank Vijapur
Join Date: Jan 2014
Posts: 2
Rep Power: 0
Priyankv is on a distinguished road
Quote:
Originally Posted by kyle View Post
The formula I posted (six years ago!) is area averaged. It's up to you to determine whether you need area or mass averaged. I don't know your requirements.
Thank you for your prompt response! Well i'm running flow analysis for an SCR. Acceptance criteria for FDI is 0.85, When i calculated it considering Area avg it was 0.84, when i considered Mass avg i got 0.86. So was wondering if i can show mass avg results :P Thanks, Priyank V
Priyankv is offline   Reply With Quote

Reply

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
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 09:53
flow rate as a function of pressure. JM Main CFD Forum 1 January 31, 2007 23:07
Inlet or a mass source as a function of local flow HC CFX 2 June 20, 2006 14:54
User defined function of mass flow rate Eric FLUENT 1 April 22, 2005 18:15
Stream function and vorticity for turbulence flow? Willard Lee Main CFD Forum 1 January 20, 1999 12:03


All times are GMT -4. The time now is 02:34.