# OpenFOAM error in blockMeshDict

**URL:** <https://precice.discourse.group/t/openfoam-error-in-blockmeshdict/1145>\
**Category:** Non-preCICE\
**Tags:** openfoam\
**Created:** [August 22, 2022, 11:22am UTC](https://precice.discourse.group/t/openfoam-error-in-blockmeshdict/1145 "2022-08-22T11:22:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatiha](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@fatiha](https://precice.discourse.group/u/fatiha)\
**Post date:** [August 22, 2022, 11:22am UTC](https://precice.discourse.group/t/openfoam-error-in-blockmeshdict/1145/1 "2022-08-22T11:22:12Z")

</div>

hello everyone,  
please when i try to run a case i had the following error

```nohighlight
--> FOAM FATAL IO ERROR: (openfoam-2112 patch=220610)
Illegal dictionary entry or environment variable name 1
Known dictionary entries: 
21
(
x0
x1
x2
x3
x4
x5
y0
y1
y2
y3
y4
y5
z0
z1
vertices
h1
h2
h3
v1
v2
v3
)

file: system/blockMeshDict at line 16 to 116.

    From bool Foam::primitiveEntry::expandVariable(const Foam::string&, const Foam::dictionary&)
    in file db/dictionary/primitiveEntry/primitiveEntry.C at line 162.

FOAM exiting

```

i have ubuntu 20.04 and openfoam 2112, Can you help me please???

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [August 22, 2022, 3:08pm UTC](https://precice.discourse.group/t/openfoam-error-in-blockmeshdict/1145/2 "2022-08-22T15:08:46Z")

</div>

Hello @fatiha

I am no OpenFOAM expert but this seems to be a purely OpenFOAM related error. Are the OpenFOAM related environment variables loaded correctly?

If you are sure that this is related to a preCICE case then please tell us which case you are trying to run.

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [September 9, 2022, 7:06am UTC](https://precice.discourse.group/t/openfoam-error-in-blockmeshdict/1145/3 "2022-09-09T07:06:45Z")

</div>

The file `blockMeshDict` should indeed have nothing to do with preCICE or with coupling. This looks like a syntax error in the respective case. Since there has been no reply for a while, let’s close this.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [September 12, 2022, 7:07am UTC](https://precice.discourse.group/t/openfoam-error-in-blockmeshdict/1145/4 "2022-09-12T07:07:32Z")

</div>

Closed on September 12, 2022, 7:07am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
