# limitation of k and epsilon

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

 November 7, 2010, 08:28 #2 Senior Member   Nima Samkhaniani Join Date: Sep 2009 Location: Tehran, Iran Posts: 1,233 Blog Entries: 1 Rep Power: 18 i dont know any way from Dic u can limit ur k or e but in source code you can add something like that: k =min(max(k,scalar(0)),scalar(30))

 November 7, 2010, 08:58 min-max #3 Member   Mohammad.R.Shetab Join Date: Jul 2010 Posts: 49 Rep Power: 9 Dear Nima Thank you for your reply. I will test it. The only question here is I should write for term k like this? k=max(k,scalar(0)); k=min(k,scalar(30)); or like what you wrote: k=min(max(k,scalar(0),scalar(30))) they have the same meaning or not?!!! Thank you again Mohammadreza

 November 7, 2010, 11:00 #4 Senior Member   Nima Samkhaniani Join Date: Sep 2009 Location: Tehran, Iran Posts: 1,233 Blog Entries: 1 Rep Power: 18 they have the same meaning just its somehow more beautiful expression and if you dont like to change the main variable you can define new variable for example kLimited then : volScalarField kLimited = min(max(k,scalar(0)),scalar(30)) then use this limited version in ur calculation

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post nedved OpenFOAM Running, Solving & CFD 16 March 4, 2017 09:30 swahono OpenFOAM 10 November 26, 2010 06:38 renyun0511 OpenFOAM Running, Solving & CFD 0 November 19, 2009 03:11 nedved OpenFOAM Running, Solving & CFD 1 November 25, 2008 21:21 Carlos FLUENT 4 August 27, 2007 11:22

All times are GMT -4. The time now is 08:16.