|
[Sponsors] |
[swak4Foam] log velocity profile with groovyBC - syntax |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 9, 2011, 05:36 |
log velocity profile with groovyBC - syntax
|
#1 |
Member
Join Date: Nov 2010
Posts: 41
Rep Power: 15 |
Hi,
I'm trying to implement a logarithmic velocity profile using groovy BC. I've used this code: Code:
inlet { type groovyBC; variables "u_f=0.05;ks=0.0132;z0=ks/30;K=0.41;vel=2.303*(u_f/K)*log(pos().z/z0)*normal();"; valueExpression "vector(vel,0,0)"; } Code:
--> FOAM FATAL ERROR: Parser Error at "1.11" :"syntax error, unexpected ','" "vector(vel,0,0)" " ^ " From function parsingValue in file PatchValueExpressionDriver.C at line 192. FOAM exiting Can someone advise on what is wrong with the syntax? Thanks. |
|
Tags |
groovybc, logarithmic, syntax, velocity profile |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[UDF] Relative coordinates in logarithmic velocity profile | cfdworker | Fluent UDF and Scheme Programming | 25 | July 13, 2017 03:44 |
UDF error - parabolic velocity profile - 3D turbine | Zaqie | Fluent UDF and Scheme Programming | 9 | June 25, 2016 19:08 |
[swak4Foam] Problem with fully developed velocity profile groovyBC in 2D axi-sym mesh | harshad88 | OpenFOAM Community Contributions | 7 | July 24, 2014 14:28 |
[swak4Foam] groovyBC error: velocity profile (2D) >> what's wrong? | vitorspadeto | OpenFOAM Community Contributions | 4 | June 19, 2014 15:31 |
[boundary condition] logarithmic velocity profile | cfdworker | FLUENT | 2 | April 17, 2009 23:36 |