# No deformation when using RBFMeshMotionSolver

**URL:** <https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907>\
**Category:** Non-preCICE\
**Tags:** openfoam, fsi\
**Created:** [April 27, 2024, 7:04am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907 "2024-04-27T07:04:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [April 27, 2024, 7:04am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/1 "2024-04-27T07:04:18Z")

</div>

Hi, I have questions about using the RBFMeshMotionSolver. I’m using pimpleFoam. I’ve read quite a few discussions on using the RBFMeshMotionSolver from solid4Foam with pimpleFoam.  
I am interested to use RBFMeshMotionSolver to replace the laplacian solver for prescribed mesh deformation in OF with 6DOF simulation.  
I tried to start off with the fluid-openfoam-rbf.zip from [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#issue-1333146912).  
I have installed preCICE and solid4Foam.  
I ran it and it completes with no error. However, when I view the case in paraview, the flap is stationary, there is no motion or deformation. Is this supposed to be so?

Next I tried to replace the laplacian withe rbf in a modified OF wingMotion tutorial. I prescribed a rotation to the airfoil. It completes without error but at the start, it seems to hang and it’s doing some initial calculation. When I view the results, similarly there’s no motion or mesh deformation.

I have attached the dynamicMeshDict and pointdisplacement. Did I do something wrong?

[pointDisplacement.txt](https://precice.discourse.group/uploads/short-url/48gUH1ajfUqT5iJsh6xh0xxo4mv.txt) (1.9 KB)

[dynamicMeshDict.txt](https://precice.discourse.group/uploads/short-url/v2QSufiRB8er5MvvgKhxMoyC3q0.txt) (1.9 KB)

---

<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:** [May 6, 2024, 2:41pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/2 "2024-05-06T14:41:19Z")

</div>

Maybe @Claudio or @philip have some idea here (I don’t have any experience with the rbfMeshMotionSolver so far).

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [May 6, 2024, 2:58pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/3 "2024-05-06T14:58:39Z")

</div>

Hi @quarkz and @Makis  
it happened to me too to see no deformation. Finally I had to recompile RBFMeshMotionSolver with precice 3, to make it work again. Unfortunately I wasn’t able to catch what was going wrong. I’ll have a look at your config files very soon and see if there are some problems. In the meantime, which version of OF and precice are you using?  
Claudio

---

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [May 7, 2024, 3:55am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/4 "2024-05-07T03:55:32Z")

</div>

Hi @Claudi, I’m using the latest preCICE (3.1.1) with openfoam 2312.

Do you mean that I should try preCICE 3.0?

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [May 7, 2024, 8:59am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/5 "2024-05-07T08:59:58Z")

</div>

Hi,  
no, I don’t think that the preCICE version matters. What I have done is to compile RBFMeshMotionSolver by itself (i.e. not with all S4F) against the current OpenFOAM version. and used it with preCICE. If this can help you, this simple case works for me with preCICE 3 and OpenFOAM 2312: [test\_RBF.zip](https://precice.discourse.group/uploads/short-url/rpCxtdi8B9dSRDKx5VWQyJBiTmK.zip) (22.4 KB)  
Claudio

---

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [May 8, 2024, 1:53am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/6 "2024-05-08T01:53:39Z")

</div>

Hi @Claudio , I tried to run the code but it hangs at:

```
Starting time loop

---[preciceAdapter] Loaded the OpenFOAM-preCICE adapter - v1.3.0.
---[preciceAdapter] Reading preciceDict...
---[precice] This is preCICE version 3.1.1
---[precice] Revision info: no-info [git failed to run]
---[precice] Build type: Release (without debug log)
---[precice] Configuring preCICE with configuration "../precice-config.xml"
---[precice] I am participant "Fluid"
---[precice] Setting up primary communication to coupling partner/s

```

May I supposed to run the solid-calculix folder too?

However, since I don’t have calculix, it gives an error:

```
(base) user:solid-calculix$ ./run.sh
./run.sh: 14: ccx_preCICE: not found

```

Is it possible to configure it not to use calculix as I require a prescribed deformation.

I tried to remove the preCICE\_Adapter in controlDict and it ran, but w/o deformation.

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [May 8, 2024, 7:25am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/7 "2024-05-08T07:25:16Z")

</div>

Hi @quarkz  
at first sight it looks like your system is not able to find ccx\_preCICE. Before removing anything from the case:

- you shoud install calculix and preCICE adapter. See for example [here](https://precice.discourse.group/t/calculix-adapter-installation/1846/4)
- you shoud have ccx\_preCICE now and it must be in your path (e.g. somewhere in .bashrc you should point to it )
- you should run fluid and solid from two different terminals and within the directory where you find run.sh

I hope this helps  
Claudio

---

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [May 9, 2024, 5:12am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/8 "2024-05-09T05:12:05Z")

</div>

Hi @Claudio, I have installed calculix and re-tested the case. It’s working perfectly. However, I guess u may have misunderstood my qn. I ran another case with solid4Foam and it’s also working. But I don’t need FSI for the moment. I just want to deform the grid using RBF in a prescribed way. Is there an example of how it can be done?

Thanks!

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [May 9, 2024, 6:27am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/9 "2024-05-09T06:27:42Z")

</div>

Hi @quarkz, good to hear that. Unfortunately I don’t have anything ready to share at the moment. Why don’t you use the rigid\_body\_solver from the quickstart? You may configure it so that you impose the fluid mesh deformation from the “solid” (one way coupling or something like that, if this is your goal).  
Btw I am planning to do something like this in the near future, because I am interested in assessing RBFMeshMotionsolver as I am not able to make it work with large meshes. If you are interested we might stay in touch.  
claudio

---

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [May 10, 2024, 1:09pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/10 "2024-05-10T13:09:54Z")

</div>

Hi @Claudio Thanks for the update. Ya, I’ll give it a try. Btw, you mention that RBF doesn’t work with large meshes. May I know what’s the size? Do stay in touch.

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [May 11, 2024, 4:56pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/11 "2024-05-11T16:56:55Z")

</div>

It doesn’t work in the sense that it tends to eat a lot of memory. In my case, with a medium workstation, 1M cells might be way too much to handle.  
Claudio

---

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [May 12, 2024, 1:17pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/12 "2024-05-12T13:17:13Z")

</div>

Hi @Claudio , 1M cells in 3D is quite small. Maybe if I run it on a cluster with much more memory, then it can work with larger cells.

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [May 13, 2024, 7:01am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/13 "2024-05-13T07:01:27Z")

</div>

Hi @quarkz indeed it is not very big. It happened to me to run fast into “std::bad\_alloc” when initializing. I know that there are ways to reduce memory usage. For example you could use _coarsening_, but I was not able to find configurations using it effectively, also because I miss some information regarding many parameters of RBF. Please let me know if you find interesting configurations.  
Claudio

---

<div class="post-metadata">

**Author:** ![LastSolidBender](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@LastSolidBender](https://precice.discourse.group/u/LastSolidBender)\
**Post date:** [June 12, 2024, 7:17pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/14 "2024-06-12T19:17:47Z")

</div>

HI, I followed these steps and the bin folder was created but there was no ccx\_preCICE file in it, infact, it was the only file that was missing  
I also get the same error as quarkz

---

<div class="post-metadata">

**Author:** ![Claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Claudio](https://precice.discourse.group/u/Claudio)\
**Post date:** [June 13, 2024, 7:24am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/15 "2024-06-13T07:24:30Z")

</div>

Hi,  
did you compile CalculiX with preCICE or did you install the binaries, as suggested in the link above?

---

<div class="post-metadata">

**Author:** ![LastSolidBender](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@LastSolidBender](https://precice.discourse.group/u/LastSolidBender)\
**Post date:** [June 13, 2024, 9:37am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/16 "2024-06-13T09:37:19Z")

</div>

I installed Calculix from the preCICE website, after making sure all the dependencies given by

```
sudo apt install libarpack2-dev libspooles-dev libyaml-cpp-dev

```

were also installed first.  
Then I made calculix by running make -j 4 in src and proceeded to download the adapter from the site, I have made a new post about it as well, detailing the problem

Edit: [Calculix adapter error v2.20](https://precice.discourse.group/t/calculix-adapter-error-v2-20/1963)

---

<div class="post-metadata">

**Author:** ![LastSolidBender](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@LastSolidBender](https://precice.discourse.group/u/LastSolidBender)\
**Post date:** [June 14, 2024, 1:41pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/17 "2024-06-14T13:41:43Z")

</div>

Hi, I also tried with Calculix v 2.19 and the same thing happens, when I make the adapter, ccx\_preCICE doesn’t form for some reason

---

<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:** [July 18, 2024, 1:29pm UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/18 "2024-07-18T13:29:14Z")

</div>

Note that the first version of the CalculiX adapter to work with preCICE v3 is v2.20.1:

> **[Release v2.20.1 · precice/calculix-adapter](https://github.com/precice/calculix-adapter/releases/tag/v2.20.1)**
>
> This release ensures compatibility of the adapter with preCICE v3.0.0.
> What's Changed
> 
> Add pre-commit hook config file for clang-format by @IshaanDesai in #117
> Port the CalculiX adapter to preCICE ...

If you install preCICE v3 but a previous release of the CalculiX adapter, building will fail due to undefined functions.

---

<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 5, 2024, 5:04am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/19 "2024-09-05T05:04:40Z")

</div>

2 posts were split to a new topic: [Compatibility of preCICE and OpenFOAM adapter versions](https://precice.discourse.group/t/compatibility-of-precice-and-openfoam-adapter-versions/2103)

---

<div class="post-metadata">

**Author:** ![quarkz](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/quarkz/32/1496_2.png) [@quarkz](https://precice.discourse.group/u/quarkz)\
**Post date:** [September 5, 2024, 9:38am UTC](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907/20 "2024-09-05T09:38:20Z")

</div>

Hi yes, we are using the latest ver.

[Next page](https://precice.discourse.group/t/no-deformation-when-using-rbfmeshmotionsolver/1907.md?page=2)
