|
[Sponsors] |
April 12, 2012, 11:36 |
using toPoints at funkySetFields
|
#1 |
Member
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16 |
Hi,
I try using the toPoints Method for initialising my pointMotionU field because if i don't do it the following error occurs: Code:
--> FOAM FATAL ERROR: inconsistent types: pointMotionU is pointVectorField while the expression evaluates to a volVectorField From function doAnExpression() in file funkySetFields.C at line 328. Code:
setPointMotionUstart { field pointMotionU; expression "vector(toPoint(0),toPoint(0.5e-1) * toPoint(pi) * (toPoint(0.1e1) - toPoint(pos().y)),toPoint(0)) "; keepPatches true; } Code:
--> FOAM FATAL ERROR: Parser Error at "1.8-14" :"field toPoint not existing or of wrong type" "vector(toPoint(0),toPoint(0.5e-1) * toPoint(pi) * (toPoint(0.1e1) - toPoint(pos().y)),toPoint(0)) " " ^^^^^^^ " From function parsingValue in file lnInclude/CommonValueExpressionDriverI.H at line 802. FOAM exiting Is it maybe something for the mantis bugtracker? Thanks a lot |
|
April 12, 2012, 18:48 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- "point(3.4)" this only works for a scalar (no expressions or anything) - "interpolateToPoint(0.1e1-pos().y)" this works for any expression Yes. A Mantis bug "Clean up this unholy mess in the grammars" might speed this up (although your immediate problem should be solved) |
||
August 4, 2013, 05:59 |
|
#3 |
Member
Mohammad Bahreini
Join Date: Dec 2012
Posts: 36
Rep Power: 13 |
Hi all
i want use of FunkySetFields for may case in OpenFoam2.1.1,i instal swak4Foam for this version witout problem,i made FunkySetFieldsDict for my case and after when i run that i see this problem --> FOAM FATAL ERROR: funkySetFields: time/latestTime option is required From function main() in file funkySetFields.C at line 641. FOAM exiting what is my mistake? |
|
August 4, 2013, 13:20 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
August 4, 2013, 13:28 |
|
#5 |
Member
Mohammad Bahreini
Join Date: Dec 2012
Posts: 36
Rep Power: 13 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam | gschaider | OpenFOAM Community Contributions | 169 | August 10, 2023 09:01 |
[swak4Foam] how to use funkySetFields function in muliregion case | bryant_k | OpenFOAM Community Contributions | 15 | October 15, 2021 02:50 |
[swak4Foam] funkySetFields and funkySetBoundaryFields | zxj160 | OpenFOAM Community Contributions | 19 | February 14, 2018 19:07 |
[swak4Foam] funkySetFields: problem with processor boundary | nmikhailov | OpenFOAM Community Contributions | 4 | May 26, 2015 09:48 |
[swak4Foam] Cartesian to polar using FunkySetFields >>> Division by zero | pagru | OpenFOAM Community Contributions | 3 | October 1, 2014 18:30 |