CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Boundary Conditions with GroovyBC, Normal Gradient (http://www.cfd-online.com/Forums/openfoam-programming-development/102182-boundary-conditions-groovybc-normal-gradient.html)

treima May 24, 2012 09:34

Boundary Conditions with GroovyBC, Normal Gradient
 
Hello,

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

boundary
{
type fixedGradient;
gradient 100;
}

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

boundary
{
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
treima


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:
http://www.cfd-online.com/Forums/ope...-gradient.html


regards

treima


All times are GMT -4. The time now is 05:27.