|
[Sponsors] |
October 23, 2020, 11:58 |
Unknown FunctionEntry 'eval'
|
#1 |
New Member
Jeffrey Johnston
Join Date: Oct 2020
Location: Belfast, Northern Ireland
Posts: 21
Rep Power: 5 |
Hello,
First time poster and new OpenFOAM user here. I am trying to run a tutorial from the OpenFOAM User guide 'Turbulent plane channel flow with smooth walls' as found here. I am getting an error when I try to run blockMesh on the files. Code:
Unknown functionEntry 'eval' in "...system/controlDict" near line 49 Valid functionEntries are : 6 ( codeStream include neg calc includeIfPresent includeEtc ) Code:
timestart #eval #{ 0.1 * ${/endTime} #}; I saw something that said #eval was a new feature intended to replace #calc because it was more efficient. Is this correct? I have OpenFoam8 installed so it's not because of an old version. I tried to replace #eval with #calc in the control dictionary but I am also confused by the apparently different syntaxes used in each case. The examples I have seen seem to suggest that #calc uses quotation marks around the expression whereas #eval uses curly braces. Have I got this correct? I tried the following: Code:
timeStart #calc "0.1*${/endTime}"; Code:
error: '$' was not declared in this scope Code:
error: expected ')' before '{' token Thanks, P.S. I am using the windows subsystem for Linux to run Ubuntu. |
|
Tags |
eval calc functionentry |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] converting Fluent mesh to openfoam standard mesh | deepesh | OpenFOAM Meshing & Mesh Conversion | 31 | March 29, 2017 05:59 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 10:45 |
Thermal Comfort Simulation in STAR CCM+ | anupmu | STAR-CCM+ | 1 | February 27, 2013 14:25 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 15:46 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 1, 2003 23:32 |