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

Coefficient Cmu change

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fluid23

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2016, 15:57
Default Coefficient Cmu change
  #1
New Member
 
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10
jspark is on a distinguished road
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?
jspark is offline   Reply With Quote

Old   May 25, 2016, 03:36
Default
  #2
Senior Member
 
kevin alun
Join Date: Sep 2011
Location: Germany
Posts: 106
Rep Power: 15
marmot is on a distinguished road
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.
marmot is offline   Reply With Quote

Old   May 25, 2016, 13:46
Default
  #3
New Member
 
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10
jspark is on a distinguished road
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?
jspark is offline   Reply With Quote

Old   May 25, 2016, 16:40
Default
  #4
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
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.
fluid23 is offline   Reply With Quote

Old   May 26, 2016, 01:48
Default
  #5
New Member
 
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10
jspark is on a distinguished road
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.
jspark is offline   Reply With Quote

Old   May 26, 2016, 10:16
Default
  #6
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
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.
jspark likes this.
fluid23 is offline   Reply With Quote

Old   May 27, 2016, 05:21
Default
  #7
New Member
 
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10
jspark is on a distinguished road
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.
jspark is offline   Reply With Quote

Old   May 27, 2016, 10:25
Default
  #8
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
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.
fluid23 is offline   Reply With Quote

Old   May 28, 2016, 00:13
Default
  #9
New Member
 
Jinsoo Park
Join Date: May 2016
Posts: 7
Rep Power: 10
jspark is on a distinguished road
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.
jspark is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 00:20.