|
[Sponsors] |
May 23, 2016, 15:57 |
Coefficient Cmu change
|
#1 |
New Member
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10 |
Hi,
I want to change turbulent coefficient Cmu from a constant to a function of height in star-ccm+. Is it possible easily? Or, should I use user code? |
|
May 25, 2016, 03:36 |
|
#2 |
Senior Member
kevin alun
Join Date: Sep 2011
Location: Germany
Posts: 106
Rep Power: 15 |
No you can not use an inline field function for this.
Not sure why you want to change Cmu, perhaps changing a material property is better, like visosity instead of a model parameter. |
|
May 25, 2016, 13:46 |
|
#3 |
New Member
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10 |
Thank you for answering.
I am studying atmospheric boundary layer. I need to assign different value according to the height in the atmospheric boundary layer. I know the field function can not be used for the Cmu. But, is it impossible if the user code is used? |
|
May 25, 2016, 16:40 |
|
#4 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
I believe marmot is correct, it does not make sense to change Cmu vs height. You should be changing other parameters... Have you by chance read over the ABL section in the help files? I think it may be of some use to you.
User Guide > Best Practices > Modeling Atmospheric Boundary Layers What exactly are you trying to capture by varying Cmu vs altitude? That may help us understand how to approach this. |
|
May 26, 2016, 01:48 |
|
#5 |
New Member
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10 |
Recently, there are ABL researches to use Cmu vs height, in order to achieve horizontally homogeneous atmospheric boundary layer, especially in turbulent kinetic energy.
So exactly, I want to impose that turbulent viscosity = (function of height) * Cmu * k^2 / e. |
|
May 26, 2016, 10:16 |
|
#6 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
turbulent viscosity = rho * Cmu * k^2 / e so what you are proposing here is to vary density with altitude (which makes physical sense).
what you need to do is setup a user defined equation of state. I have never actually had to do this myself, but I believe the process would go something like... 1. Select User Defined EOS when setting up your physics continua (rather than Ideal Gas or whatever you had been using). 2. Define a field function that using ideal gas law and atmospheric density lapse rate equation of your choice. 3. Go to Continua > Physics > Gas > Material Properties > Density and change it from Constant to Field Function. 4. Select your field function for density vs height. |
|
May 27, 2016, 05:21 |
|
#7 |
New Member
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10 |
Thank you for deliberate replies.
Changing density seems a good alternative way in my case. I will try to use your suggestion. However, I am afraid that I can't change density when I use Boussinesq model with buoyancy effect. |
|
May 27, 2016, 10:25 |
|
#8 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
Can you even use that for a gaseous flow? I thought that model was specific to liquids. If you are dealing with atmospheric boundary layer I would stick with air.
|
|
May 28, 2016, 00:13 |
|
#9 |
New Member
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10 |
I have a problem in changing density.
I tried to change density property, but density was not changed in constant density option. I can change density if I choose polynomial density option, but I have to choose energy option too and the results are abnormal. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Cmu change | selçuk ataş | FLUENT | 2 | July 19, 2017 13:24 |
phase change with CFX | aximefu | CFX | 5 | March 28, 2012 04:38 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
no enthalpy change across the momentum source | Atit Koonsrisuk | CFX | 2 | December 19, 2005 03:33 |
changing Cmu value in k-e models | ramesh | FLUENT | 0 | January 1, 2004 02:48 |