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] Boundary Conditions with GroovyBC, Normal Gradient (https://www.cfd-online.com/Forums/openfoam-community-contributions/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 14:23

hi dear treima.did you figure out the problem?

treima January 26, 2013 02: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 19:56.