# Equations involve different mesh spaces

**URL:** <https://community.freefem.org/t/equations-involve-different-mesh-spaces/2453>\
**Category:** General Discussion\
**Created:** [May 12, 2023, 5:38am UTC](https://community.freefem.org/t/equations-involve-different-mesh-spaces/2453 "2023-05-12T05:38:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![phtournier](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@phtournier](https://community.freefem.org/u/phtournier)\
**Post date:** [May 12, 2023, 8:07am UTC](https://community.freefem.org/t/equations-involve-different-mesh-spaces/2453/2 "2023-05-12T08:07:28Z")

</div>

New features implemented in the develop branch allow you to do what you want, i.e. define coupled weak formulas where unknowns can belong to different meshes, or even mesh types. These features will be included in the next FreeFEM release, which should come within a few weeks.

Here you can find two simple Stokes examples demonstrating this feature, where we use two different meshes for the velocity and pressure: [FreeFem-sources/stokes\_composite.edp at develop · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/examples/stokes_composite.edp) [FreeFem-sources/stokes\_periodic\_composite.edp at develop · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/examples/stokes_periodic_composite.edp)  
You will see that the syntax is a little bit different depending on whether you want to use the problem/solve syntax or the varf/matrix approach.  
You can also find a volume/surface coupling FEM/BEM example here [FreeFem-sources/Helmholtz-2d-FEM-BEM-coupling-MUMPS-composite.edp at develop · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/mpi/Helmholtz-2d-FEM-BEM-coupling-MUMPS-composite.edp) but it is a little bit more involved.  
The documentation for these new features should hopefully come soon.

---

_[View the full topic](https://community.freefem.org/t/equations-involve-different-mesh-spaces/2453)._
