CFD Online URL
[Sponsors]
Home > Forums > STAR-CCM+

flow distribution index (gamma function)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 24, 2009, 11:53
Default flow distribution index (gamma function)
  #1
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 7
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 10:16.
bramv101 is offline   Reply With Quote

Old   August 24, 2009, 18:01
Default
  #2
Senior Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 131
Rep Power: 8
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, 11:53
Default
  #3
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 7
bramv101 is on a distinguished road
Many Thx this worked for me
bramv101 is offline   Reply With Quote

Old   August 27, 2009, 05:48
Default
  #4
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 7
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, 10:16
Default
  #5
Member
 
Bram
Join Date: Apr 2009
Location: Belgium
Posts: 81
Rep Power: 7
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, 16:51
Default
  #6
Senior Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 131
Rep Power: 8
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

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 15:54
User defined function of mass flow rate Eric FLUENT 1 April 22, 2005 19: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 23:52.