# What is the easiest way to interpolate functions defined in differnce meshes

**URL:** <https://fenicsproject.discourse.group/t/what-is-the-easiest-way-to-interpolate-functions-defined-in-differnce-meshes/18279>\
**Category:** dolfinx\
**Tags:** mesh\
**Created:** [October 18, 2025, 1:53pm UTC](https://fenicsproject.discourse.group/t/what-is-the-easiest-way-to-interpolate-functions-defined-in-differnce-meshes/18279 "2025-10-18T13:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WjjSteve](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/wjjsteve/32/4389_2.png) [@WjjSteve](https://fenicsproject.discourse.group/u/WjjSteve)\
**Post date:** [October 18, 2025, 1:53pm UTC](https://fenicsproject.discourse.group/t/what-is-the-easiest-way-to-interpolate-functions-defined-in-differnce-meshes/18279/1 "2025-10-18T13:53:24Z")

</div>

Let’s say I have two mesh T1 and T2, they are defined on the same domain, but with different mesh size, for example, T1 is a mesh defined in [0,1]^2 with 100\times 100 nodes but T2 has 50\times50 nodes.

Then I have the function spaces V1 and V2 with the same element, let’s say P1 element.

Now if I have a function defined in V1, how can I interpolate it to V2?

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [October 18, 2025, 4:59pm UTC](https://fenicsproject.discourse.group/t/what-is-the-easiest-way-to-interpolate-functions-defined-in-differnce-meshes/18279/2 "2025-10-18T16:59:35Z")

</div>

Interpolate\_nonmatching is the easiest way to transfer data between the grids:

> **[dolfinx.fem — DOLFINx 0.9.0 documentation](https://docs.fenicsproject.org/dolfinx/v0.9.0/python/generated/dolfinx.fem.html#dolfinx.fem.Function.interpolate_nonmatching)**
