CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

questions about groovyBC

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

Reply
 
LinkBack Thread Tools 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,205
Rep Power: 17
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: 3,915
Rep Power: 40
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,205
Rep Power: 17
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 164 January 13, 2015 03:52
Boundary Conditions with GroovyBC, Normal Gradient treima OpenFOAM Programming & Development 2 January 26, 2013 03:37
Two questions about groovyBC immortality OpenFOAM Running, Solving & CFD 3 December 4, 2012 19:42
groovyBC and Eqn.setReference() benk OpenFOAM 3 June 2, 2011 08:49
Wall heat transfer using groovyBC (XiFoam solver) usergk OpenFOAM 7 February 4, 2011 14:36


All times are GMT -4. The time now is 11:39.