# Troubles in trying to run the OpenFOAM-Deal.II FSI tutorials

**URL:** <https://precice.discourse.group/t/troubles-in-trying-to-run-the-openfoam-deal-ii-fsi-tutorials/353>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters, fsi, dealii\
**Created:** [October 10, 2020, 3:04pm UTC](https://precice.discourse.group/t/troubles-in-trying-to-run-the-openfoam-deal-ii-fsi-tutorials/353 "2020-10-10T15:04:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dolphin](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Dolphin](https://precice.discourse.group/u/Dolphin)\
**Post date:** [October 10, 2020, 3:04pm UTC](https://precice.discourse.group/t/troubles-in-trying-to-run-the-openfoam-deal-ii-fsi-tutorials/353/1 "2020-10-10T15:04:03Z")

</div>

Dear developers of preCICE:  
I am trying to run the OpenFOAM-Deal.II FSI tutorials. I followed the build process instructions. And I successfully run the preCICE adapter dummy examples and OpenFOAM self coupling examples. I use OpenFOAM-v2006 and Deal. II 9.2. I cloned the tutorial reporsitory. And put the Deal.II linear\_elasticity and linear\_elasticity.prm in the flap\_prep/solid folder. But when I typed ./Solid/linear\_elasticity Solid/linear\_elasticity.prm, the errors return as follows:  
\  
(base) afan@afan-XPS-8700:~/myProject/precice/tutorials/FSI/flap\_perp/OpenFOAM-deal.II$ ./Solid/linear\_elasticity Solid/linear\_elasticity.prm  
—[precice] This is preCICE version 2.1.0  
—[precice] Revision info: v2.1.0  
—[precice] Configuring preCICE with configuration “precice-config.xml”  
—[precice] I am participant “Solid”  
Triangulation:  
Number of active cells: 54  
Polynomial degree: 3  
Number of degrees of freedom: 6,600  
Output written to solution-0.vtk

—[precice] ERROR: The given mesh name “Solid\_mesh” is unknown to preCICE. Please check the mesh definitions in the configuration.  
\\  
And I am a liitle confused about the tutorial folder. Because there is a parameter.prm file. I don’t know whether I should use parameter.prm or linear\_elasticity.prm as the input file for the solid solver.  
And why I typed ./Allrun, the Solid.log returns:  
\  
./Allrun: line 65: Solid/coupled\_elasto\_dynamics: No such file or directory  
\  
I also tried to change the name of “linear\_elasticity” to “coupled\_elasto\_dynamics”. And there is still some configuration errors in the Solid.log.  
\  
—[precice] e[0m This is preCICE version 2.1.0  
—[precice] e[0m Revision info: v2.1.0  
—[precice] e[0m Configuring preCICE with configuration “precice-config.xml”  
—[precice] e[0m I am participant “Solid”  
Triangulation:  
Number of active cells: 54  
Polynomial degree: 3  
Number of degrees of freedom: 6,600  
Output written to solution-0.vtk

—[precice] e[31mERROR: e[0m The given mesh name “Solid\_mesh” is unknown to preCICE. Please check the mesh definitions in the configuration.  
\  
And I tried to comment the Solid\_mesh configuration. And it still doesn’t work.  
I found there was a difference in linear\_elasticity.prm and parameter.prm. I tried to modify the two .prm according to the precice-config.xml. But I tried many times. And I still can’t run the tutorial (the error always come from the solid part, the fluid part runs with no error). And I would like to know how I can make the turtorials run. The wiki page’s instructions seem not work for me.  
Best wishes!  
Ivan

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [October 11, 2020, 9:48am UTC](https://precice.discourse.group/t/troubles-in-trying-to-run-the-openfoam-deal-ii-fsi-tutorials/353/2 "2020-10-11T09:48:11Z")

</div>

Hi @Dolphin,

which branch of the tutorial repository are you using? My best guess would be that your tutorial clone is not in sync with the remote repository.

> [@Dolphin](#):
>
> And I am a liitle confused about the tutorial folder. Because there is a parameter.prm file. I don’t know whether I should use parameter.prm or linear\_elasticity.prm as the input file for the solid solver.  
> And why I typed ./Allrun, the Solid.log returns:

You don’t need to copy the parameter files. In the most recent version, the naming of the parameter files is also consistent with the adapter branch.

Could you run a `git pull` in the tutorial branch and run your case with the given parameter file (in the tutorial repo) again? I think the `runSolid` script assumes the location of your executable in the main directory, not in the `Solid` directory, but you can modify it or run it directly from the subfolder.

Let us know, if it works for you!

---

<div class="post-metadata">

**Author:** ![Dolphin](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Dolphin](https://precice.discourse.group/u/Dolphin)\
**Post date:** [October 11, 2020, 3:38pm UTC](https://precice.discourse.group/t/troubles-in-trying-to-run-the-openfoam-deal-ii-fsi-tutorials/353/3 "2020-10-11T15:38:47Z")

</div>

Hi @DavidSCN,  
The problem is just because of what you pointed out: I forked the tutorial repository about a year ago which is out-dated now, and git cloned that version.  
Now I cloned the up-to-date tutorial and followed the tutorial wiki. Everything works fine~  
Thank you very much!  
Best wishes!  
Ivan
