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

[swak4Foam] questions about groovyBC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2012, 05:18
Default questions about 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
1)have totalPressure and totalTemperature been defined in groovyBC?
2)have it been assigned a piecewise function for having discrete values at different times in a discontinue manner?such that we can say for example since t0 until t1 velocity is such and such and since t1 till t2 such and such.
immortality is offline   Reply With Quote

Old   December 14, 2012, 05:45
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
1)have totalPressure and totalTemperature been defined in groovyBC?
In the library groovyStandardBCs there is a boundary condition groovyTotalPressure that allows setting the totalPresseure from an expression. t serves as an example on how to "groovify" standard boundary conditions. Same would be possible for totalTemperature but I currently have no intention to do this (but I'd accept contributions)

Quote:
Originally Posted by immortality View Post
2)have it been assigned a piecewise function for having discrete values at different times in a discontinue manner?such that we can say for example since t0 until t1 velocity is such and such and since t1 till t2 such and such.
You can use the "a ? b : c"-operator which means "if a is true take b else take c". Or a timeline with two values very close to the jump
__________________
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   December 14, 2012, 11:07
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
thank you.it helps me a lot.
how can it be used exactly.where is the example you have mentioned?a clear example is appreciated.
How totaltemperature could be used then?
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
[swak4Foam] groovyBC for oscillatory flow liybzd OpenFOAM Community Contributions 5 November 12, 2018 08:53
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC zanilu70 OpenFOAM Community Contributions 4 December 13, 2016 07:46
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 04:30
[swak4Foam] some questions about neibours of patches in groovyBC immortality OpenFOAM Community Contributions 7 March 3, 2013 12:38
[swak4Foam] Two questions about groovyBC immortality OpenFOAM Community Contributions 3 December 4, 2012 19:42


All times are GMT -4. The time now is 09:59.