# Moving grid with deformation

**URL:** <https://precice.discourse.group/t/moving-grid-with-deformation/2296>\
**Category:** Is preCICE for me?\
**Tags:** overset\
**Created:** [January 5, 2025, 2:01pm UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296 "2025-01-05T14:01:39Z")\
**Posts on this page:** 8\
**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:** [January 5, 2025, 2:01pm UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/1 "2025-01-05T14:01:39Z")

</div>

Hi,

I am trying to solve some moving grid with deformation problems. I tried to show using a simple 2D example. I have attached it. So I have a horizontal wood plank attached to a wall. The wall is prescribed to slide up/down vertically and so the plank moves too. I would like to use FSI to determine how much the plank will deform.

For this problem, we can use the `displacementLaplacian` solver to deform the entire grid. However, I wonder if we can move the entire grid for the prescribed motion and only use the `displacementLaplacian` solver to deform the grid for the plank deformation. So there’s 2 separate motions

This is similar in some sense to what [JulianSchl](https://precice.discourse.group/u/JulianSchl) is doing [https://precice.discourse.group/t/rotational-movements-with-precice-and-openfoam-using-solidbody-solver-instead-of-displacementlaplacian-solver/622](https://precice.discourse.group/t/rotational-movements-with-precice-and-openfoam-using-solidbody-solver-instead-of-displacementlaplacian-solver/622)

However, there’s no update regarding their develpment.

 ![preCICE qn](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/d/d3e780a1d8885ae1625125e741db4cc28546293e.png)

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:** [January 9, 2025, 9:39am UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/2 "2025-01-09T09:39:22Z")

</div>

Hi,  
have you tried to look at the tutorials [here](https://github.com/solids4foam/solids4foam/tree/master/tutorials/fluidSolidInteraction-preCICE)? There is an example with solids4foam using overset. Maybe you can adapt it to your case.  
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:** [January 10, 2025, 1:01am UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/3 "2025-01-10T01:01:38Z")

</div>

Hi, I think I have seen it before.

But is it possible to do it without overset? Cos my actual problem involves moving large distances and hence overset is not that efficient.

---

<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:** [January 10, 2025, 8:16am UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/4 "2025-01-10T08:16:22Z")

</div>

Hi, probably it’s not, but it should work fine if it is “2D”. Alternatively, could you set up some whole mesh movement, like in the sloshing examples? It depends on the boundary conditions you want to set up. I have never tried, it is just a guess.

---

<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:** [January 10, 2025, 11:16pm UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/5 "2025-01-10T23:16:57Z")

</div>

I just tried the overset example. However, after I downloaded it and run, it doesn’t seem to work. Running ./Allrun got some results, but on paraview I don’t see any motion. If I run separately with 2 terminals using ./Allrun.fluid and ./Allrun.solid, the fluid one seems to run by itself while the solid one just give:

```
Rotating points
    about (1 0 0)
    angle 90
Rotating points by (1 0 0 0 2.22045e-16 -1 0 1 2.22045e-16)
Writing points into directory "constant/polyMesh"

End

Running solids4Foam on /home/user/Flapping_OF_2D_tmp/precice-tutorials/flexibleOversetCylinder/solid
Removing time directories without results

```

Is there some errors somewhere?

---

<div class="post-metadata">

**Author:** ![daxiangxiang](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/daxiangxiang/32/2011_2.png) [@daxiangxiang](https://precice.discourse.group/u/daxiangxiang)\
**Post date:** [January 13, 2025, 6:07am UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/6 "2025-01-13T06:07:11Z")

</div>

Hello, quarkz  
If you can describe your case in more detail, I believe someone can help you make better suggestions, including me.  
For example:  
size of calculation area, the amplitude of the boundary motion, the given displacement boundary conditions, and it would be better if several pictures could be given indicating the limit position of the solid region in the flow field.  
With best wishes.  
xiangxiang

---

<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:** [January 17, 2025, 1:00pm UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/7 "2025-01-17T13:00:08Z")

</div>

Hi daxiangxiang, actually I don’t want to make my problem too complicated and confusing. Basically, I want a moving grid which moves together with the body of interest. At the same time I want to prescribed some deformation to the body or let FSI deform the body due to the motion. As the deformation can be quite big, I would require to use RBF to deform the mesh. I use my simple problem earlier to check if it can be done. If so, then it’s doable with precice. Thanks

---

<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:** [March 19, 2025, 5:31pm UTC](https://precice.discourse.group/t/moving-grid-with-deformation/2296/8 "2025-03-19T17:31:47Z")

</div>

Hi @quarkz,

I only now saw your post (I was not looking at the forum for a while). Did you make any progress? I think the case you describe would be a great tutorial case for preCICE. Contributions are very welcome!

I get the impression that overset meshes work fine with preCICE, but we still need an example.

> [@quarkz](#):
>
> This is similar in some sense to what [JulianSchl](https://precice.discourse.group/u/JulianSchl) is doing [Rotational movements with preCICE and OpenFOAM using solidBody solver instead of displacementLaplacian solver](https://precice.discourse.group/t/rotational-movements-with-precice-and-openfoam-using-solidbody-solver-instead-of-displacementlaplacian-solver/622)
> 
> However, there’s no update regarding their develpment.

I would not expect any updates on this project. That was a student project, which has already been completed.
