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

[swak4Foam] funkySetFields error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2014, 00:44
Default funkySetFields error
  #1
New Member
 
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 12
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, 01:23
Default
  #2
New Member
 
Sreetej
Join Date: Feb 2014
Location: Singapore
Posts: 14
Rep Power: 12
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


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
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 05:39.