Creating log. velocity profile with groovyBC
I would like to create a logarithmic velocity profile at the inlet. I have tried with "groovyBC", however I keep getting the same error:
--> FOAM FATAL ERROR:
Parser Error at "1.8-9" :"field uf not existing or of wrong type"
"vector(uf/K*log(zp/z0), 0.0, 0.0)"
" ^^ "
From function parsingValue
in file PatchValueExpressionDriver.C at line 192.
In the 0/U-file, I have typed the following for my BC:
valueExpression "vector(uf/K*log(zp/z0), 0.0, 0.0)";
Can anyone tell me, what I have done wrong? (I use OpenFoam 1.6-ext)
Thanks in advance :)
- which version of groovyBC are you using? (To put it differently: is is a version that supports variables?)
- Have you tried deliberatly introducing a syntax error into the evaluation of uf (for instance "uf=nix*0.002257;") to see whether it is evaluated at all
I think you were right, that I was using a wrong version of groovyBC.. Now I have downloaded swak4Foam (1.7), and I think it works :)
|All times are GMT -4. The time now is 00:36.|