# MPPICFoam + preCICE

**URL:** <https://precice.discourse.group/t/mppicfoam-precice/1783>\
**Category:** Using preCICE\
**Tags:** openfoam, fsi\
**Created:** [February 13, 2024, 3:59pm UTC](https://precice.discourse.group/t/mppicfoam-precice/1783 "2024-02-13T15:59:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pi314](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@Pi314](https://precice.discourse.group/u/Pi314)\
**Post date:** [February 13, 2024, 3:59pm UTC](https://precice.discourse.group/t/mppicfoam-precice/1783/1 "2024-02-13T15:59:39Z")

</div>

Hello everyone,

I am trying to adapt the tutorial case “elastic-tube-3d” (OpenFOAM + Calculix + preCICE) to the solver MPPICFoam for tracking particles and having a dynamic mesh.  
The error message I am receiving is (similar to the one in [Request for pointVectorField pointDisplacement from objectRegistry region0 failed | available objects of type pointVectorField are 0()](https://precice.discourse.group/t/request-for-pointvectorfield-pointdisplacement-from-objectregistry-region0-failed-available-objects-of-type-pointvectorfield-are-0/658)):

> → FOAM FATAL ERROR: (openfoam-2106 patch=211215)
> 
> request for pointVectorField pointDisplacement from objectRegistry region0 failed  
> available objects of type pointVectorField are  
> 0()
> 
> From const Type& Foam::objectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::GeometricField\<Foam::Vector, Foam::pointPatchField, Foam::pointMesh\>] in file /usr/lib/openfoam/openfoam2106/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 463.
> 
> FOAM aborting

I guess the error is also due to the two-phase simulation — the solid particle phase and the fluid phase (displacementLaplacian does not support using different phases). Is there a solution for fixing the error without looking at an overset case, as in the link mentioned?  
Please let me know if you have any other possibilities to simulate a dynamic mesh and track the particles.

If you need any files, please let me know!

I am looking forward to your reply! Many thanks in advance!

---

<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:** [February 16, 2024, 2:55pm UTC](https://precice.discourse.group/t/mppicfoam-precice/1783/2 "2024-02-16T14:55:51Z")

</div>

This error typically means that the solver you are using does not specify a `pointDisplacement` field. You could also try with the `cellDisplacement`, but I assume you will get the same.

You can also tell the adapter look for a displacement field with a different name:

> **[Configure the OpenFOAM adapter | preCICE - The Coupling Library](https://precice.org/adapter-openfoam-config.html#parameters-and-fields-with-different-names)**
>
> Write a system/preciceDict, set compatible boundary conditions, and activate the adapter in your system/controlDict.

A preliminary example of a two-phase FSI tutorial we have uses `interFoam` as a solver:

> <https://github.com/precice/tutorials/pull/279>
>
> This PR adds a breaking dam 2D and breaking dam 3D test case for multiphase flow… of water/air mixture, where a body of water strikes a solid, deformable wall.

But I don’t know how you could add particles in the model.
