gschaider |
August 30, 2010 11:48 |
Quote:
Originally Posted by NewFoamer
(Post 273363)
Hello,
I'm trying to use GroovyBC to implement following boundary on the velocity field:
PHP Code:
feed { type groovyBC; variables "pFeed@feed=p;pDraw@draw=p;"; valueExpression "(pFeed-pDraw)*normal()"; value uniform (0 0 0); }
However, when trying to use icoFoam to solve my problem, I get following error:
PHP Code:
--> FOAM Warning : From function PatchResult::getUniformInternal(const label size,bool noWarn) in file PatchResultI.H at line 96 The minimum value 53.321 and the maximum 1346.83 differ. I will use the average 687.19
Is it that I cannot access the pressure fields in this way, or why is it happening?
|
The problem is that feed and draw (for instance) may have differing numbers of faces. What would be the correct way to map pDraw to feed then? Therefor groovyBC only uses uniform values for external variables. If the variable is not uniform (as in your case) groovyBC decides to make it uniform and instead of keeping you in the dark about this decision tells you about it.
To avoid the warning you'll have to "uniformize" p with either min, max, sum or average.
Even if feed and draw are of the same size there is no guarantee that the faces there are orderered the same (and what means "the same" anyway if they are not oriented in parallel) so groovyBC even then makes no attempt to use non-uniform values. So if you wanted to use groovyBC to generate some cyclic-BC: sorry. Not possible at the time
Bernhard
|