# Data communication of displacements and velocities

**URL:** <https://precice.discourse.group/t/data-communication-of-displacements-and-velocities/151>\
**Category:** Using preCICE\
**Tags:** configuration\
**Created:** [February 13, 2020, 12:55pm UTC](https://precice.discourse.group/t/data-communication-of-displacements-and-velocities/151 "2020-02-13T12:55:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jun\_leng](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jun\_leng](https://precice.discourse.group/u/jun_leng)\
**Post date:** [February 13, 2020, 12:55pm UTC](https://precice.discourse.group/t/data-communication-of-displacements-and-velocities/151/1 "2020-02-13T12:55:07Z")

</div>

Hi, everyone,

I noticed that the examples only exchange ‘displacements’ and ‘forces’. Can I send both `displacement` and `velocity` data of the structure to the fluid solver at the same time as the following?  
`<mesh name="FluidMesh">`  
`<use-data name="Forces" />`  
` <use-data name="Displacements" />`  
` <use-data name="Velocities" />`  
` </mesh>`

`<mesh name="StructureMesh">`  
` <use-data name="Forces" />`  
` <use-data name="Displacements" />`  
` <use-data name="Velocities" />`  
` </mesh>`  
…  
`<coupling-scheme:serial-implicit>`  
` <participants first="FluidSolver" second="StuctureSolver"/>`  
`<exchange data="Displacements" mesh="StructureMesh" from="StuctureSolver" to="FluidSolver"/> `  
`<exchange data="Velocities" mesh="StructureMesh" from="StuctureSolver" to="FluidSolver"/> `  
` <exchange data="Forces" mesh="StructureMesh" from="FluidSolver" to="StuctureSolver"/>`  
…  
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:** [February 13, 2020, 8:22pm UTC](https://precice.discourse.group/t/data-communication-of-displacements-and-velocities/151/2 "2020-02-13T20:22:08Z")

</div>

Yes, you can definitely exchange more datasets over the same mesh! See how we are doing it in the heat exchanger example: [https://github.com/precice/tutorials/blob/develop/CHT/heat\_exchanger/buoyantSimpleFoam-CalculiX/precice-config.xml](https://github.com/precice/tutorials/blob/develop/CHT/heat_exchanger/buoyantSimpleFoam-CalculiX/precice-config.xml)

---

<div class="post-metadata">

**Author:** ![jun\_leng](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jun\_leng](https://precice.discourse.group/u/jun_leng)\
**Post date:** [February 13, 2020, 8:30pm UTC](https://precice.discourse.group/t/data-communication-of-displacements-and-velocities/151/3 "2020-02-13T20:30:30Z")

</div>

Hi,  
Do I need to change ` <coupling-scheme:serial-explicit>` into ` <coupling-scheme:parallel-explicit>`? Will it make a difference to the results of my simulation? Does this ‘parallel’ means that the fluid solver and structure solver run at the same time and it has nothing to do with the parallel computation of OpenFoam?

---

<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 13, 2020, 8:50pm UTC](https://precice.discourse.group/t/data-communication-of-displacements-and-velocities/151/4 "2020-02-13T20:50:28Z")

</div>

No, you don’t need to change the coupling scheme.

A parallel coupling scheme is completely different than the internal parallelization of the solver. It just means that the two participants compute the same time window without at the same time, without the one waiting for the other to finish. You can compare it to an Jacobi (parallel) vs a Gauss-Seidel (serial) approach.
