# Mesh Solver OpenFOAM Error

**URL:** <https://precice.discourse.group/t/mesh-solver-openfoam-error/1130>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, fsi\
**Created:** [August 10, 2022, 8:19pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130 "2022-08-10T20:19:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [August 10, 2022, 8:19pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/1 "2022-08-10T20:19:39Z")

</div>

Hello  
Hope you are all well  
I was working on an FSI case setup using OF and CalculiX for flow over an elastic sphere and received an error that I noticed a few other people got in the posts below.

[preCICE using new Mesh Motion Solver - Official adapters and tutorials - preCICE Forum on Discourse](https://precice.discourse.group/t/precice-using-new-mesh-motion-solver/857)

[Request for pointVectorField pointDisplacement from objectRegistry region0 failed | available objects of type pointVectorField are 0() - Using preCICE - preCICE Forum on Discourse](https://precice.discourse.group/t/request-for-pointvectorfield-pointdisplacement-from-objectregistry-region0-failed-available-objects-of-type-pointvectorfield-are-0/658)

This is the error I got when executing ./run.sh for the fluid side:

> —[precice] I am participant “Fluid”  
> —[preciceAdapter] [DEBUG] preCICE solver interface was created.  
> —[preciceAdapter] [DEBUG] Creating interfaces…  
> —[preciceAdapter] [DEBUG] Number of face nodes: 3600  
> —[preciceAdapter] [DEBUG] Interface created on mesh Fluid-Mesh-Nodes  
> —[preciceAdapter] [DEBUG] Adding coupling data writers…  
> —[preciceAdapter] [DEBUG] Adding coupling data readers…  
> → FOAM FATAL ERROR: (openfoam-2106)  
> 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 /scratch/projects/UNT/apps/OpenFoam/OpenFOAM-v2106/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 463.  
> FOAM aborting  
> #0 Foam::error::printStack(Foam::Ostream&) at ??:?  
> #1 Foam::error::exitOrAbort(int, bool) at ??:?  
> #2 Foam::GeometricField\<Foam::Vector, Foam::pointPatchField, Foam::pointMesh\> const& Foam::objectRegistry::lookupObject\<Foam::GeometricField\<Foam::Vector, Foam::pointPatchField, Foam::pointMesh\> \>(Foam::word const&, bool) const at ??:?  
> #3 preciceAdapter::FSI::DisplacementDelta::DisplacementDelta(Foam::fvMesh const&, std::\_\_cxx11::basic\_string\<char, std::char\_traits, std::allocator \>, std::\_\_cxx11::basic\_string\<char, std::char\_traits, std::allocator \>) at ??:?  
> #4 preciceAdapter::FSI::FluidStructureInteraction::addReaders(std::\_\_cxx11::basic\_string\<char, std::char\_traits, std::allocator \>, preciceAdapter::Interface\*) at ??:?  
> #5 preciceAdapter::Adapter::configure() at ??:?  
> #6 Foam::functionObjects::preciceAdapterFunctionObject::read(Foam::dictionary const&) at ??:?  
> #7 Foam::functionObjects::preciceAdapterFunctionObject::preciceAdapterFunctionObject(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?  
> #8 Foam::functionObject::adddictionaryConstructorToTableFoam::functionObjects::preciceAdapterFunctionObject::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?  
> #9 Foam::functionObject::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?  
> #10 Foam::functionObjectList::read() at ??:?  
> #11 Foam::Time::run() const at ??:?  
> #12 Foam::Time::loop() at ??:?  
> #13 Foam::simpleControl::loop() at ??:?  
> #14 ? at ??:?  
> #15 \_\_libc\_start\_main in /usr/lib64/libc.so.6  
> #16 ? at ??:?

I am using snappyHex to generate the fluid mesh. Is that a potential reason why I am getting this error? I have attached my case folder below if that helps.  
[sphere\_0810.zip](https://precice.discourse.group/uploads/short-url/iev7zpHJO9mESeQb3JRbsMdrcas.zip) (380.8 KB)

Would appreciate any assistance.

---

<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:** [August 13, 2022, 10:16am UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/2 "2022-08-13T10:16:53Z")

</div>

Hi @mishal49,

can you try if the latest develop branch of the adapter works? This PR may have helped: [Displacement reading: Allow mesh motion solvers without a pointDisplacement field by solids4foam · Pull Request #241 · precice/openfoam-adapter · GitHub](https://github.com/precice/openfoam-adapter/pull/241)

(see also [I was asked to try a Pull Request. How can I do that?](https://precice.discourse.group/t/i-was-asked-to-try-a-pull-request-how-can-i-do-that/38), although this PR is already merged and you can just `git pull` and `git checkout develop`, then `./Allclean` and `./Allwmake`)

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [August 15, 2022, 8:11pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/3 "2022-08-15T20:11:35Z")

</div>

Hi @Makis  
Okay. Let me try this.  
I did switch the fluid mesh to one generated from a commercial software and still encountered the same error so does that mean that the adapter is still the issue?

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [August 16, 2022, 7:13pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/4 "2022-08-16T19:13:53Z")

</div>

Hi @Makis  
I compiled the latest adapter and updated the dynamicMeshDict and preciceDict files. I now encounter the same error much earlier.

> From static Foam::autoPtrFoam::functionObject Foam::functionObject::New(const Foam::word &, const Foam::Time &, const Foam::dictionary &)  
> in file db/functionObjects/functionObject/functionObject.C at line 122.  
> → loading function object ‘residuals’  
> —[preciceAdapter] Loaded the OpenFOAM-preCICE adapter - v1.1.0 + unreleased changes.  
> —[preciceAdapter] Reading preciceDict…  
> —[precice] This is preCICE version 2.3.0  
> —[precice] Revision info: no-info [Git failed/Not a repository]  
> —[precice] Configuration: Release (Debug and Trace log unavailable)  
> —[precice] Configuring preCICE with configuration “…/precice-config.xml”  
> —[precice] I am participant “Fluid”  
> → FOAM FATAL ERROR: (openfoam-2106)  
> request for volVectorField rbfMotionCentersField from objectRegistry region0 failed  
> available objects of type volVectorField are  
> 1(U)  
> From const Type &Foam::objectRegistry::lookupObject(const Foam::word &, bool) const [with Type = Foam::GeometricField\<Foam::Vector, Foam::fvPatchField, Foam::volMesh\>]  
> in file /scratch/projects/UNT/apps/OpenFoam/OpenFOAM-v2106/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 463.  
> FOAM aborting  
> #0 Foam::error::printStack(Foam::Ostream&) at ??:?  
> #1 Foam::error::exitOrAbort(int, bool) at ??:?  
> #2 Foam::GeometricField\<Foam::Vector, Foam::fvPatchField, Foam::volMesh\> const& Foam::objectRegistry::lookupObject\<Foam::GeometricField\<Foam::Vector, Foam::fvPatchField, Foam::volMesh\> \>(Foam::word const&, bool) const at ??:?  
> #3 preciceAdapter::FSI::Displacement::Displacement(Foam::fvMesh const&, std::\_\_cxx11::basic\_string\<char, std::char\_traits, std::allocator \>, std::\_\_cxx11::basic\_string\<char, std::char\_traits, std::allocator \>) at ??:?  
> #4 preciceAdapter::FSI::FluidStructureInteraction::addReaders(std::\_\_cxx11::basic\_string\<char, std::char\_traits, std::allocator \>, preciceAdapter::Interface\*) at ??:?  
> #5 preciceAdapter::Adapter::configure() at ??:?  
> #6 Foam::functionObjects::preciceAdapterFunctionObject::read(Foam::dictionary const&) at ??:?  
> #7 Foam::functionObjects::preciceAdapterFunctionObject::preciceAdapterFunctionObject(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?  
> #8 Foam::functionObject::adddictionaryConstructorToTableFoam::functionObjects::preciceAdapterFunctionObject::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?  
> #9 Foam::functionObject::New(Foam::word const&, Foam::Time const&, Foam::dictionary const&) at ??:?  
> #10 Foam::functionObjectList::read() at ??:?  
> #11 Foam::Time::run() const at ??:?  
> #12 Foam::Time::loop() at ??:?  
> #13 Foam::simpleControl::loop() at ??:?  
> #14 ? at ??:?  
> #15 \_\_libc\_start\_main in /usr/lib64/libc.so.6  
> #16 ? at ??:?  
> …/…/tools/run-openfoam.sh: line 15: 2046204 Aborted (core dumped) ${solver}

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [August 19, 2022, 4:50pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/5 "2022-08-19T16:50:34Z")

</div>

Hello  
Any suggestions on what the issue could be?

---

<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:00am UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/6 "2022-09-09T07:00:56Z")

</div>

> [@mishal49](#):
>
> → FOAM FATAL ERROR: (openfoam-2106)  
> request for volVectorField rbfMotionCentersField from objectRegistry region0 failed

This is the error message, essentially meaning that either there is no such field, it is named differently, or it has a different type. Assuming that you are now using solids4foam, are you using the latest develop version of it? Have you modified your `dynamicMeshDict` compared to the files you attached above?

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [September 9, 2022, 2:59pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/7 "2022-09-09T14:59:09Z")

</div>

I am using Calculix for this case and yes, I did modify the files to follow similar formatting to the ones shared. I have attached a link to the case and all relevant files.  
[https://myunt-my.sharepoint.com/personal/mishalraza\_my\_unt\_edu/Documents/Attachments/sphere\_PW2(1).zip](https://myunt-my.sharepoint.com/personal/mishalraza_my_unt_edu/Documents/Attachments/sphere_PW2(1).zip)

---

<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 11, 2022, 7:26pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/8 "2022-09-11T19:26:07Z")

</div>

I don’t have access to this file, but I guess only a few files are relevant.

I don’t know if you noticed already, but we recently added a solids4foam case for our perpendicular flap tutorial: [Perpendicular flap | preCICE - The Coupling Library](https://precice.org/tutorials-perpendicular-flap.html) Maybe it also helps comparing the configs.

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [September 11, 2022, 9:51pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/9 "2022-09-11T21:51:36Z")

</div>

Sorry about that. This should work

> **[sphere\_PW2.zip](https://drive.google.com/file/d/1WF-Zr0Wxx7jMRHHjWNB1KXw2aoQkOjQr/view?usp=sharing)**
>
> Google Drive file.

I do not see a folder for solid4Foam in the flap case in the tutorial repository:

> **[tutorials/perpendicular-flap at master · precice/tutorials](https://github.com/precice/tutorials/tree/master/perpendicular-flap)**
>
> master/perpendicular-flap

---

<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 12, 2022, 11:36am UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/10 "2022-09-12T11:36:55Z")

</div>

Running your case, I also get the same issue.

Can you run the perpendicular flap tutorial `fluid-openfoam` case, configuring with RBFMeshMotionSolver, [as Philip describes here](https://github.com/precice/openfoam-adapter/pull/241)?

I guess one aspect we have not checked is whether simpleFoam works at all (it should), as we mostly use pimpleFoam in our FSI tutorials.

> [@mishal49](#):
>
> I do not see a folder for solid4Foam in the flap case in the tutorial repository:

You are right, as we have not yet released a new version of the tutorials (but the website points to “develop”, which can be misleading in situations like this). Just go to the `develop` branch: [GitHub - precice/tutorials at develop](https://github.com/precice/tutorials/tree/develop)

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [February 17, 2023, 5:59pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/11 "2023-02-17T17:59:40Z")

</div>

I tried this and still encountered errors.  
Can I use the RBF solver only with solid4Foam?  
Do I have to stick to other solvers if I am using CalculiX?

---

<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 22, 2023, 4:59pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/12 "2023-02-22T16:59:47Z")

</div>

> [@mishal49](#):
>
> I tried this and still encountered errors.

The same error, or something else?

> [@mishal49](#):
>
> Can I use the RBF solver only with solid4Foam?  
> Do I have to stick to other solvers if I am using CalculiX?

There is probably a misunderstanding here. The RBF Mesh Motion Solver is provided by solids4foam, and you can use it in your fluid solver, if you have solids4foam installed. It does not matter what solver you have on the Solid side.

---

<div class="post-metadata">

**Author:** ![mishal49](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mishal49](https://precice.discourse.group/u/mishal49)\
**Post date:** [March 20, 2023, 4:22pm UTC](https://precice.discourse.group/t/mesh-solver-openfoam-error/1130/13 "2023-03-20T16:22:24Z")

</div>

I see. I do not have Solid4Foam installed so I am not able to use this solver yet.  
I can try and install to see if it makes a difference.
