|
[Sponsors] |
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 25, 2011, 04:09 |
fpos in funkySetFields
|
#11 |
Senior Member
|
I am getting an error when trying to use the fpos functionality in swak4Foam>funkySetFields.
funkySetFields -latestTime /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM Extend Project: Open source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 1.6-ext-943ecc426649 Exec : funkySetFields -latestTime Date : Mar 25 2011 Time : 04:58:35 Host : egpMBA.local PID : 70817 Case : /Users/egp/OpenFOAM/egp-1.6-ext/run/RayleighTaylor/coarse nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 1 Part: Alpha Putting "average((fpos().y+surf(0.5)*fproj().y)>=surf(-0.05)*cos(surf(6.2831)*fpos().x) ? surf(1.0) : surf(0.))" into field alpha1 at t = "1" if condition "true" is true --> FOAM FATAL ERROR: Parser Error at "1.9-12" :"syntax error, unexpected TOKEN_fposition" "average((fpos().y+surf(0.5)*fproj().y)>=surf(-0.05)*cos(surf(6.2831)*fpos().x) ? surf(1.0) : surf(0.))" " ^^^^ " From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 365. FOAM exiting This is strange since swak4FoamParsers/FieldValueExpressionDriver.C creates an IOobject named "fpos", and the machinery appears to largely be in place for surface field operations. Note: this funkySetFieldsDict works just fine with the stand-alone FSF. |
|
|
|