CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Boundary Conditions with GroovyBC, Normal Gradient (

treima May 24, 2012 09:34

Boundary Conditions with GroovyBC, Normal Gradient

Iīd like to implement some boundary conditions with groovyBC, but it seems, that that doesn`t work like I think it should ;).
Here is my problem:

Without groovyBc itīs possible to implement a fixed normal gradient with

type fixedGradient;
gradient 100;

Now i need this expression with a dependency of a variable, computet in a step befor. So i tried

type groovyBC;
gradientExpression "Var-fixed";
variable "Var{boundary2}=Var2; fixed=100";
value uniform 0;

For a calculating a single value, for example for a Dirichlet boundary condition, it works.

Did I make a mistake in my definition of the boundary condition? Are there any good documentations for groovyBC, where i can find such things?

Best regards

Iīm sorry, this might be the wrong Forum, i didnīt pay attention...

immortality January 25, 2013 15:23

hi dear treima.did you figure out the problem?

treima January 26, 2013 03:37

Yes, there is a solution to this problem.

Have a look at this thread:



All times are GMT -4. The time now is 07:42.