# OpenFOAM code export?

**URL:** <https://www.simscale.com/forum/t/openfoam-code-export/82743>\
**Category:** Using SimScale\
**Created:** [July 6, 2018, 9:17am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743 "2018-07-06T09:17:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![achristiaens](https://www.simscale.com/forum/user_avatar/www.simscale.com/achristiaens/32/18930_2.png) [@achristiaens](https://www.simscale.com/forum/u/achristiaens)\
**Post date:** [July 6, 2018, 9:17am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/1 "2018-07-06T09:17:53Z")

</div>

Hi all,

a general question: is it possible to extract the full OpenFOAM code of a simulation I did in SimScale? If yes, how?

Thanks in advance,  
An-Sofie

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [July 6, 2018, 10:04am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/2 "2018-07-06T10:04:42Z")

</div>

Hi An-Sofie (@achristiaens)!

It is indeed possible to get the code! You simply have to go to the run(s) you would like to have a look at and download the results. Once extracted you can have a look at the folder structures like **system** , **constant** , and the **0** folder with the boundary conditions.

Let me know if it works!

Best,

Jousef

---

<div class="post-metadata">

**Author:** ![1318980](https://www.simscale.com/forum/user_avatar/www.simscale.com/1318980/32/9637_2.png) [@1318980](https://www.simscale.com/forum/u/1318980)\
**Post date:** [July 6, 2018, 10:47am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/3 "2018-07-06T10:47:03Z")

</div>

In addition to what @jousefm has said, there might be some manual changes you need to do, depending on your OpenFOAM version, its a case of re-running observing the errors and warnings and making the changes. For example, in the latest openFoam the name of the turbulence properties file changed between SimScale version and v5.

Good luck!  
Darren

---

<div class="post-metadata">

**Author:** ![jousefm](https://www.simscale.com/forum/user_avatar/www.simscale.com/jousefm/32/34908_2.png) [@jousefm](https://www.simscale.com/forum/u/jousefm)\
**Post date:** [July 6, 2018, 11:00am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/4 "2018-07-06T11:00:10Z")

</div>

Forgot to mention that Darren - thanks for clarifying! 🙂

Cheers,

Jousef

---

<div class="post-metadata">

**Author:** ![sachinparamane](https://www.simscale.com/forum/user_avatar/www.simscale.com/sachinparamane/32/31442_2.png) [@sachinparamane](https://www.simscale.com/forum/u/sachinparamane)\
**Post date:** [May 31, 2020, 9:21am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/5 "2020-05-31T09:21:11Z")

</div>

I am trying to run Simscale simulation file in OpenFOAM however I am getting error as “cannot find file turbulenceProperties”.  
What is the workaround to replace this file?  
Waiting for your reply.  
I am using OF4Win 19.10 version

Sachin

---

<div class="post-metadata">

**Author:** ![pfernandez](https://www.simscale.com/forum/user_avatar/www.simscale.com/pfernandez/32/27697_2.png) [@pfernandez](https://www.simscale.com/forum/u/pfernandez)\
**Post date:** [June 3, 2020, 4:23pm UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/6 "2020-06-03T16:23:17Z")

</div>

You can compare the files used in [2.3.x](https://github.com/OpenFOAM/OpenFOAM-2.3.x/tree/master/tutorials/incompressible/simpleFoam/motorBike/constant) with the files used since [v3](https://github.com/OpenFOAM/OpenFOAM-7/tree/master/tutorials/incompressible/simpleFoam/motorBike/constant). Basically, you have to replace

**RASProperties**

```
RASModel kOmegaSST;

turbulence on;

printCoeffs on;

```

with

**turbulenceProperties**

```
simulationType RAS;

RAS
{
    RASModel kOmegaSST;

    turbulence on;

    printCoeffs on;
}

```

---

<div class="post-metadata">

**Author:** ![sachinparamane](https://www.simscale.com/forum/user_avatar/www.simscale.com/sachinparamane/32/31442_2.png) [@sachinparamane](https://www.simscale.com/forum/u/sachinparamane)\
**Post date:** [June 4, 2020, 6:25am UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/7 "2020-06-04T06:25:42Z")

</div>

Yes. Its implemented and running it now. Also change of the file name to turbulenceProperties.

---

<div class="post-metadata">

**Author:** ![shayor](https://www.simscale.com/forum/letter_avatar/shayor/32/6_449c533f586939b6e5f246632a46421f.png) [@shayor](https://www.simscale.com/forum/u/shayor)\
**Post date:** [June 28, 2020, 9:03pm UTC](https://www.simscale.com/forum/t/openfoam-code-export/82743/8 "2020-06-28T21:03:40Z")

</div>

Is it possible to do so with just the community plan or do I need a paid one?Thanks in advance
