CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] log velocity profile with groovyBC - syntax

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 9, 2011, 05:36
Default log velocity profile with groovyBC - syntax
  #1
Member
 
Join Date: Nov 2010
Posts: 41
Rep Power: 15
grjmell is on a distinguished road
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)";
    }
When I run it with pimpleFoam, I get the following error:


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.
grjmell is offline   Reply With Quote

 

Tags
groovybc, logarithmic, syntax, velocity profile


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:14.