# Mesh movement and distortion in SU2 mesh

**URL:** <https://precice.discourse.group/t/mesh-movement-and-distortion-in-su2-mesh/195>\
**Category:** Official adapters and tutorials\
**Tags:** configuration\
**Created:** [April 6, 2020, 10:23am UTC](https://precice.discourse.group/t/mesh-movement-and-distortion-in-su2-mesh/195 "2020-04-06T10:23:19Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [April 6, 2020, 10:23am UTC](https://precice.discourse.group/t/mesh-movement-and-distortion-in-su2-mesh/195/1 "2020-04-06T10:23:19Z")

</div>

Hi,  
I am working with FSI coupling between SU2 and a structural mesh, using the **mapping:rbf-thin-plate-splines**. The mesh movement/deformation seems to be only around the interface and the fluid elements close to the inteface look pretty distorted, as in this picture:

 ![mesh](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/4d9423e19ce079067ed3e1ab817830c9453aa35e.png)  
The mesh movement in a similar case with OpenFOAM (such as the vertical flap tutorial) seems to me much more “diffused” and the elements less distorted. I would like to ask:

- Are there differences in the mapping with different solvers?
- which kind of mapping would be better in my case? I have read something about rbf:gaussian and/or the rbfShape.py file but I am not sure how to use it  
Thank you  
Claudio

---

<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:** [April 8, 2020, 9:44am UTC](https://precice.discourse.group/t/mesh-movement-and-distortion-in-su2-mesh/195/2 "2020-04-08T09:44:04Z")

</div>

Hi,  
I could have found the answer myself. There are grid movement parameters in the SU2 config file that can be tweaked to make the mesh stiffer: in particular, afaik, DEFORM\_COEFF (and maybe the DEFORM\_STIFFNESS\_TYPE) can change considerably how the SU2 mesh deforms.  
Claudio

---

<div class="post-metadata">

**Author:** ![KyleDavisSA](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/kyledavissa/32/108_2.png) [@KyleDavisSA](https://precice.discourse.group/u/KyleDavisSA)\
**Post date:** [April 8, 2020, 9:51am UTC](https://precice.discourse.group/t/mesh-movement-and-distortion-in-su2-mesh/195/3 "2020-04-08T09:51:26Z")

</div>

Hi Claudio,

the mapping in preCICE is not related to the mesh motion in the SU2 solver. The mapping configuration only tells preCICE how to map data between non-matching mesh interfaces. In the case of a displacement boundary condition, one solver will compute the displacement on the structural solver, and preCICE will map this displacement to the interface of the fluid solver (in this case SU2). How the solver moves the internal mesh is done within the solver and not preCICE.

To find which mesh motion options would be better for this case, perhaps the SU2 forum on CFD Online would be a better place to look. You can have a look [here](https://www.cfd-online.com/Forums/su2/).

The mapping only really plays a role when you have a much coarser mesh in the structural solver that the fluid solver. In this case, **nearest-neighbor** mapping results in a very blocky interface in the fluid solver. This is when **nearest-projection** of **RBF** is better.

Regards  
Kyle

---

<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:** [April 8, 2020, 9:53am UTC](https://precice.discourse.group/t/mesh-movement-and-distortion-in-su2-mesh/195/4 "2020-04-08T09:53:55Z")

</div>

Hi Kyle,  
thank you very much. That confirms what I discovered.  
Claudio
