# P1+P0 for pressure

**URL:** <https://community.freefem.org/t/p1-p0-for-pressure/196>\
**Category:** General Discussion\
**Created:** [December 12, 2019, 11:50pm UTC](https://community.freefem.org/t/p1-p0-for-pressure/196 "2019-12-12T23:50:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amina](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@amina](https://community.freefem.org/u/amina)\
**Post date:** [December 12, 2019, 11:50pm UTC](https://community.freefem.org/t/p1-p0-for-pressure/196/1 "2019-12-12T23:50:08Z")

</div>

Dear all,

I’m trying to implement an augmented Taylor-Hood method for mixed problems with a discontinuous pression finite element of the type P1+P0 (and not P1dc).  
That anyone have a clue? I tried fespace Vh(Th, P1+P0) in vain.  
Actually, P2b/P1dc generates too many degrees of freedom and for that reason I need to work with P2/P1+P0

Thanks!

---

<div class="post-metadata">

**Author:** ![iftikhar](https://avatars.discourse-cdn.com/v4/letter/i/cab0a1/32.png) [@iftikhar](https://community.freefem.org/u/iftikhar)\
**Post date:** [December 13, 2019, 11:39am UTC](https://community.freefem.org/t/p1-p0-for-pressure/196/2 "2019-12-13T11:39:16Z")

</div>

Hi Amina  
Can you provide a minimal working example, so that we can have a look at that make some suggestions to you.  
IA

---

<div class="post-metadata">

**Author:** ![amina](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@amina](https://community.freefem.org/u/amina)\
**Post date:** [December 13, 2019, 2:05pm UTC](https://community.freefem.org/t/p1-p0-for-pressure/196/3 "2019-12-13T14:05:05Z")

</div>

Actually my concern is only avout space declaring.  
For Taylor-Hood in 2D we declare  
Vh(Th,[P2,P2])  
Ph(Th,P1)  
and I just wanted to relace the P1 space by P1+P0, which doesn’t work. Hence, I was wondering if it is possible to do so differently. Actually, my space is the P1 space with addition of a constant to each cell (it is not the P1dc)

Best,  
Amina.

---

<div class="post-metadata">

**Author:** ![simon.garnotel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/simon.garnotel/32/11_2.png) [@simon.garnotel](https://community.freefem.org/u/simon.garnotel)\
**Post date:** [December 15, 2019, 8:49am UTC](https://community.freefem.org/t/p1-p0-for-pressure/196/4 "2019-12-15T08:49:16Z")

</div>

Are you looking for P1 bubble finite element space ?  
By the way, you can not use this FE space for pressure in order to the respect of the inf-sup condition

---

<div class="post-metadata">

**Author:** ![amina](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@amina](https://community.freefem.org/u/amina)\
**Post date:** [December 15, 2019, 3:03pm UTC](https://community.freefem.org/t/p1-p0-for-pressure/196/5 "2019-12-15T15:03:06Z")

</div>

Hello Simon,  
Thanks. I’m not looking for P1 bubble because the bubble is H1-conform, I’m looking for P1 with an additional constant onevery celle so that the pressure can be discontinuous. I don’t want to use P1dc because it ony works with P2b which generates much more degrees of freedom.  
Best,  
Amina.

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [September 21, 2020, 8:08am UTC](https://community.freefem.org/t/p1-p0-for-pressure/196/6 "2020-09-21T08:08:21Z")

</div>

Remark, you can use 2 pressures p = p0+p1 with p1 is P1 and p0 is P0  
but in this case be careful because both space P1 and P0 have constant inside,  
so you have to remove one pressure by adding term like

```
   int2d(Th)(epsilon*p0*q0)

```

where q = q1 + q0 are the tests function associated to p=p1+p0 and epsilon must be small enough but not to small.
