|
[Sponsors] |
February 16, 2011, 12:57 |
GroovyBC again
|
#1 |
Senior Member
Rickard
Join Date: May 2010
Location: Lund, Skåne, Sweden
Posts: 143
Rep Power: 16 |
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)"; } |
|
February 16, 2011, 19:04 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
June 16, 2011, 17:58 |
groovyBC error
|
#3 |
New Member
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 17 |
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 |
|
June 16, 2011, 18:28 |
|
#4 |
New Member
Ulisses
Join Date: Mar 2009
Location: Brazil
Posts: 24
Rep Power: 17 |
I already discovery my mistake.
I wrote in the wrong place in system/controlDict: libs ("libgroovyBC.so") |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC for oscillatory flow | liybzd | OpenFOAM Community Contributions | 5 | November 12, 2018 08:53 |
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC | zanilu70 | OpenFOAM Community Contributions | 4 | December 13, 2016 07:46 |
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam | dani2702 | OpenFOAM Community Contributions | 0 | November 17, 2016 04:30 |
[swak4Foam] groovyBC issue - k and epsilon | sagnikmazumdar | OpenFOAM Community Contributions | 24 | March 1, 2015 08:16 |
[swak4Foam] groovyBC and Eqn.setReference() | benk | OpenFOAM Community Contributions | 3 | June 2, 2011 09:49 |