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] groovyBC for initial conditions? (https://www.cfd-online.com/Forums/openfoam-community-contributions/157487-groovybc-initial-conditions.html)

hajott July 30, 2015 09:32

groovyBC for initial conditions?
 
Hello,
I am wondering, whether groovyBC can be used to initialize fields with arithmetic expressions of x,y,z.

For example, I would like to define U(t=0)=(1-(x^2+y^2),0,0) or T(t=0)=exp((x-x0)^2+(y-y0)^2).

Is groovyBC capable of this, or is its parser limited to boundary conditions? Can you show an example, how to use groovyBC for initial conditions? If not, are there other tools that can be used for this purpose?

Thank you

Update: I found the solution - funkySetFields


All times are GMT -4. The time now is 06:32.