CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Runtime Variables in OpenFoam (https://www.cfd-online.com/Forums/openfoam-solving/79209-runtime-variables-openfoam.html)

fijinx August 16, 2010 16:14

Runtime Variables in OpenFoam
 
Is there any way to implement runtime variables in openfoam? For example setting an inlet mass flow rate as a function of the average pressure over the boundary. I have looked through the documentation but did not see anything on this, perhaps I missed it.

chegdan August 17, 2010 18:08

groovyBC might be the answer
 
You might want to check out the utility groovyBc. For setting complicated boundary conditions or making them a function of another value (average outlet pressure), you might want to use this

http://openfoamwiki.net/index.php/Contrib_groovyBC

there are also plenty of posts around here that deal with it.

Start here after the wiki:
http://www.cfd-online.com/Forums/ope...rb-mesh-2.html

hope this helps.

Dan


All times are GMT -4. The time now is 03:35.