# Example about solving mixed finite element (PETSc)

**URL:** https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894
**Category:** General Discussion
**Created:** [July 15, 2022, 9:15am UTC](https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894 "2022-07-15T09:15:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)
#### Post date: [July 15, 2022, 9:15am UTC](https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894/1 "2022-07-15T09:15:53Z")

</div>

Hello, is there any example about solving mixed finite element (PETSc)?

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [July 15, 2022, 9:26am UTC](https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894/2 "2022-07-15T09:26:19Z")

</div>

Yes [FreeFem-sources/examples/hpddm at master · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/tree/master/examples/hpddm)

---

<div class="post-metadata">

### Author: ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)
#### Post date: [July 15, 2022, 9:41am UTC](https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894/3 "2022-07-15T09:41:26Z")

</div>

Thank you very much. Is the following example about mixed finite element? 😃

[FreeFem-sources/stokes-block-2d-PETSc.edp at develop · FreeFem/FreeFem-sources · GitHub](https://github.com/FreeFem/FreeFem-sources/blob/develop/examples/hpddm/stokes-block-2d-PETSc.edp)

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)
#### Post date: [July 15, 2022, 9:47am UTC](https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894/4 "2022-07-15T09:47:24Z")

</div>

That is one of the many examples using a mixed formulation indeed.

---

<div class="post-metadata">

### Author: ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)
#### Post date: [July 15, 2022, 10:42am UTC](https://community.freefem.org/t/example-about-solving-mixed-finite-element-petsc/1894/5 "2022-07-15T10:42:38Z")

</div>

Thank you very much again. 😃
