CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Limiting k and epsilon

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2013, 05:04
Default Limiting k and epsilon
  #1
ksv
New Member
 
ksv
Join Date: Feb 2011
Posts: 16
Rep Power: 15
ksv is on a distinguished road
Dear Foamers,
Kindly help me in limiting k & epsilon values. Am using LaunderSharmaKE model and want to limit the k and epsilon values within certain range. I tried something like below
k_ = min(k_, 5)
in LaunderSharmaKE.C file and compiled. But nothing works. Kindly correct me.
Thanks
KSV
ksv is offline   Reply With Quote

Old   July 11, 2013, 06:42
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
I am not 100% sure but maybe you can use the following scheme:

Code:
div(phi, Epsilon) Gauss limitedLimitedLinear 0 5 1;

In which line did you insert your line?
And what is the reason for limiting your k - value?
Tobi is offline   Reply With Quote

Old   July 11, 2013, 21:02
Default
  #3
ksv
New Member
 
ksv
Join Date: Feb 2011
Posts: 16
Rep Power: 15
ksv is on a distinguished road
Hi Tobi,
Thanks your suggestion and will try it today. I inserted it below the solve(kEqn) line in the LaunderSharmaKE.C file. Honestly speaking I dont know as where to put it. The reason for limiting k values is that it is blowing up to huge values in my simulations.
Thanks
ksv
ksv is offline   Reply With Quote

Old   July 13, 2013, 03:12
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

if your values blow up ... then its possible that you have wrong BC or a bad mesh or anything is going wrong.
Tobi 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
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 16 March 4, 2017 08:30
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
Calculation of k and epsilon freezes Nigirim OpenFOAM Running, Solving & CFD 1 November 14, 2012 07:52
epsilon and K blowing up. sivakumar OpenFOAM Running, Solving & CFD 1 October 25, 2012 04:50
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 1 November 25, 2008 20:21


All times are GMT -4. The time now is 01:51.