# how to transfer scalar data from Mesh A to Mesh B

**URL:** https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100
**Category:** ParaView Support
**Created:** [June 25, 2019, 10:02am UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100 "2019-06-25T10:02:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![srouquette](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@srouquette](https://discourse.paraview.org/u/srouquette)
#### Post date: [June 25, 2019, 10:02am UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100/1 "2019-06-25T10:02:22Z")

</div>

Hello dear paraview users,  
i was wondering if it is possible to transfer or interpolate a scalar data from a Mesh A to a different Mesh B?  
Knowing that Mesh A and B have the same geometry… but different meshgrid!  
My data is stored in data.vtu (i got it from a Elmer FEA software. My scalar is the temperature for example ). My meshed were made with GMSG and these are called MeshA.msh and MeshB.msh.  
I hope that my question is clear? and that there is a solution under Paraview 😉  
Cheers

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [June 25, 2019, 1:59pm UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100/2 "2019-06-25T13:59:11Z")

</div>

Hi Sebastien,  
You’ll have to use the Programmable Filter  
Here is a ParaView state file that transfers the Normals from a cube looking superquadric to a sphere looking superquadric.

[transfer-scalar.pvsm](https://discourse.paraview.org/uploads/default/original/2X/5/57a9b12fd24f91bceee8c3b943a6a6cc427c4cbd.pvsm) (498 KB)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 25, 2019, 2:22pm UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100/3 "2019-06-25T14:22:44Z")

</div>

For your case, since you want to potentially interpolate values from a mesh to another, you can use **Resample With DataSet** filter. The filter allows you to choose the dataset providing the **Source Data Arrays** and the other providing the **Destination Mesh**.

---

<div class="post-metadata">

### Author: ![srouquette](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@srouquette](https://discourse.paraview.org/u/srouquette)
#### Post date: [June 26, 2019, 7:56am UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100/4 "2019-06-26T07:56:22Z")

</div>

Thank you very much for your solution… i’m gonna test it as soon as possible.

Cheers

Sebastien

---

<div class="post-metadata">

### Author: ![srouquette](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@srouquette](https://discourse.paraview.org/u/srouquette)
#### Post date: [June 26, 2019, 7:58am UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100/5 "2019-06-26T07:58:30Z")

</div>

Thank you very much for your reply.

I noticed this option “resample with data set” but did not really understood how to use it and i did not find any tutos or example so far!

i will investigate it surely. I m not a paraview expert, i only use it to visualize data and export some data but i never used the filter capabilities!

Cheers

Sebastien

---

<div class="post-metadata">

### Author: ![AllanZJD](https://discourse.paraview.org/user_avatar/discourse.paraview.org/allanzjd/32/5618_2.png) [@AllanZJD](https://discourse.paraview.org/u/AllanZJD)
#### Post date: [December 28, 2020, 9:00am UTC](https://discourse.paraview.org/t/how-to-transfer-scalar-data-from-mesh-a-to-mesh-b/2100/6 "2020-12-28T09:00:50Z")

</div>

Thank you for posting this. I’ve been trying to append a small part of dataset B to dataset A, trying to make dataset A’s mesh the same as B’s, but it never worked. Resample With Dataset solved this for me.
