CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] questions about groovyBC (https://www.cfd-online.com/Forums/openfoam-community-contributions/110565-questions-about-groovybc.html)

immortality December 14, 2012 04:18

questions about groovyBC
 
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.

gschaider December 14, 2012 04:45

Quote:

Originally Posted by immortality (Post 397493)
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 (Post 397493)
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

immortality December 14, 2012 10:07

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?


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