GroovyBC again
Hi again. Still some groovy problems.
Does anyone know what this problem may be due to? [15] Parser Error at "1.0-5" :"field Uinlet not existing or of wrong type" "Uinlet=Uz*cos(theta)*vector(0,0,1)+Uz*sin(theta)* vector(0,1,0)+Uz*sin(theta)*vector(1,0,0)" "^^^^^^ " [15] [15] From function parsingValue [15] in file PatchValueExpressionDriver.C at line 192. [15] FOAM parallel run exiting jet { type groovyBC; variables "Uz=150;rmax=0.0005;r=sqrt(pow(pos().x,2)+pow(pos( ).y,2));thetaMax=10.75*pi/180;theta=(thetaMax*r)/rmax;"; valueExpression "Uinlet=Uz*cos(theta)*vector(0,0,1)+Uz*sin(theta)* vector(0,1,0)+Uz*sin(theta)*vector(1,0,0)"; fractionExpression "(r<=0.5) ? U=Uinlet : U=vector(0,0,0)"; } |
Quote:
|
groovyBC error
Hi guys,
I am trying to generate a parabolic profile using groovyBC: inlet { type groovyBC; variables "dirx=vector (1,0,0);dirz=vector (0,0,1);Umin=22;hx=mag(pos()*dirx);hz=mag(pos()*di rz);a=hx*hx+hz*hz;speed=Umin*a"; valueExpression "vector (0, speed, 0)"; } But I've got the following error: PHP Code:
Thanks |
I already discovery my mistake.
I wrote in the wrong place in system/controlDict: libs ("libgroovyBC.so") |
All times are GMT -4. The time now is 22:16. |