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

funkySetFields error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2014, 01:44
Default funkySetFields error
  #1
New Member
 
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 4
preacher is on a distinguished road
Greetings

I was trying initiate a Lamb-Oseen Vortex using funkySetFields command using :

funkySetFields -field U -keepPatches -expression 'U+((pos()-vector(50,47.1,pos().z))^vector(0,0,1))/mag(pos()-vector(50,47.1,pos().z))*(530/(2*pi*mag(pos()-vector(50,47.1,pos().z))))*(1-exp((-1/9)*sqr(mag(pos()-vector(50,47.1,pos().z))))))' -time 0

and it is showing me error.

I am running pimpleFoam model and the domain is a cuboid with uniform meshing. The error is as follows

Create time

Create mesh for time = 0


Time = 0
Using command-line options

Modifying field U of type volVectorField

Putting "U+((pos()-vector(50,47.1,pos().z))^vector(0,0,1))/mag(pos()-vector(50,47.1,pos().z))*(530/(2*pi*mag(pos()-vector(50,47.1,pos().z))))*(1-exp((-1/9)*sqr(mag(pos()-vector(50,47.1,pos().z))))))" into field U at t = "0" if condition "true" is true
Keeping patches unaltered

swak4Foam: Allocating new repository for sampledMeshes
swak4Foam: Allocating new repository for sampledGlobalVariables


--> FOAM FATAL ERROR:
Parser Error for driver FieldValueExpressionDriver at "1.189" :"syntax error, unexpected ')', expecting $end"
"U+((pos()-vector(50,47.1,pos().z))^vector(0,0,1))/mag(pos()-vector(50,47.1,pos().z))*(530/(2*pi*mag(pos()-vector(50,47.1,pos().z))))*(1-exp((-1/9)*sqr(mag(pos()-vector(50,47.1,pos().z))))))"
^
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|

Context of the error:


- Driver constructed from scratch
Evaluating expression "U+((pos()-vector(50,47.1,pos().z))^vector(0,0,1))/mag(pos()-vector(50,47.1,pos().z))*(530/(2*pi*mag(pos()-vector(50,47.1,pos().z))))*(1-exp((-1/9)*sqr(mag(pos()-vector(50,47.1,pos().z))))))"


From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 1188.

FOAM exiting


Can anyone kindly suggest, how to sort out this problem..??

Thanks in advance..

Sreetej
preacher is offline   Reply With Quote

Old   March 12, 2014, 02:23
Default
  #2
New Member
 
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 4
preacher is on a distinguished road
Sorry for the post, I got the solution there is a problem with the vortex equation parenthesis...


But i could not delete the thread, may be it's the settings of the forum.

Sorry again..
preacher is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
blockMesh with double grading. spwater OpenFOAM Native Meshers: blockMesh 85 October 11, 2015 09:03
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
Saving ParaFoam views and case sail OpenFOAM Paraview & paraFoam 9 November 25, 2011 16:46
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 07:16.