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

[swak4Foam] turbulence boundary condition in groovyBC.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2012, 05:51
Default turbulence boundary condition in groovyBC.
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
how is it possible to use a variable with time boundary condition for turbulancy in groovyBC?
i want to apply a boundary condition for k and omega in kOmega turbulency model so that it varies between kqrwallfunction for wall and a fixedvalue for environment.how can i enter kqrwallfunction when the patch is wall?
How can i do it?
Any idea and thoght is appreciated and is thanked.
immortality is offline   Reply With Quote

Old   January 5, 2013, 17:51
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
how is it possible to use a variable with time boundary condition for turbulancy in groovyBC?
i want to apply a boundary condition for k and omega in kOmega turbulency model so that it varies between kqrwallfunction for wall and a fixedvalue for environment.how can i enter kqrwallfunction when the patch is wall?
How can i do it?
Any idea and thoght is appreciated and is thanked.
You want a wall function that varies with time? Although this contradicts the later part.

Please do the following: imagine you're another person and don't know what you want to do, then reread you posting and think what you (the you that wrote the posting) wanted to ask ... probably then you'll feel the urge to reformulate the question
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 6, 2013, 02:27
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi.as i told it should be modeled a changing with time turbulent BC.
As it mentioned there is a patch that changes between a wall and inflow or outflow(like shock tube but left wall is rotating and have some ports in it to the outside environment)i want to use kOmegaSST model.for example for k value in this model there is a submodel for wall named kqRWallFunction.then as i want to use groovyBC i should write the formula of that manually in groovyBC.my question is this.how to write kOmegaSST formula in groovyBC?what are the formula i should use for instance how to write kqRWallFunction?can i write it directly in groovyBC?
I hope this is clear.thanks.
immortality is offline   Reply With Quote

Old   January 6, 2013, 05:56
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
hi.as i told it should be modeled a changing with time turbulent BC.
As it mentioned there is a patch that changes between a wall and inflow or outflow(like shock tube but left wall is rotating and have some ports in it to the outside environment)i want to use kOmegaSST model.for example for k value in this model there is a submodel for wall named kqRWallFunction.then as i want to use groovyBC i should write the formula of that manually in groovyBC.my question is this.how to write kOmegaSST formula in groovyBC?what are the formula i should use for instance how to write kqRWallFunction?can i write it directly in groovyBC?
I hope this is clear.thanks.
OK. Now you're getting clearer.

If you look at the implementation of kqRWallFunction it says in the comment "Boundary condition for turbulence k, Q, and R when using wall functions. Simply acts as a zero gradient condition." so by switching the fractionExpression to 0 and having the gradientExpression 0 as well should give you what you want
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 6, 2013, 08:32
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks.you mean in folders k,Q and R i should set them as zeroGradient when the patch is wall in fact.right?but I don't know what are k,Q and R and I haven't a folder named Q in my case.also I have deleted R folder because in parallel run an error has occured and referred to the R function and as I asked at another thread someone replied that I have no need in R folder in kOmegaSST model.please explain a little more.thanks.
immortality is offline   Reply With Quote

Old   January 6, 2013, 15:00
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
thanks.you mean in folders k,Q and R i should set them as zeroGradient when the patch is wall in fact.right?but I don't know what are k,Q and R and I haven't a folder named Q in my case.also I have deleted R folder because in parallel run an error has occured and referred to the R function and as I asked at another thread someone replied that I have no need in R folder in kOmegaSST model.please explain a little more.thanks.
Q and r are calculated. You don't have to specify them
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 7, 2013, 03:19
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks.for only knowing im curious about what can be q and r?is r refered to reynolds stress?
Then i should only set k to 0 in gradientExpression and value at inlet?
immortality is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
several fields modified by single boundary condition schröder OpenFOAM Programming & Development 3 April 21, 2015 05:09
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19


All times are GMT -4. The time now is 13:28.