# Nonzero pressure Navier Stokes

**URL:** <https://fenicsproject.discourse.group/t/nonzero-pressure-navier-stokes/18264>\
**Category:** dolfinx\
**Tags:** boundary-conditions, assembly\
**Created:** [October 14, 2025, 4:16pm UTC](https://fenicsproject.discourse.group/t/nonzero-pressure-navier-stokes/18264 "2025-10-14T16:16:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 14, 2025, 7:07pm UTC](https://fenicsproject.discourse.group/t/nonzero-pressure-navier-stokes/18264/2 "2025-10-14T19:07:31Z")

</div>

Several things to consider here.

1. Starting from zero fluid flow, with a non-ramped inlet condition will cause an initial pressure wave going from the inlet into the domain. Consider either starting with a ramped inlet condition, or an initial condition that is non-zero (for instance generated with a Stokes solver).
2. Using strong pressure conditions is not something I would advice, see for instance: [https://asmedigitalcollection.asme.org/appliedmechanicsreviews/article-abstract/59/3/107/465438/On-Boundary-Conditions-for-Incompressible-Navier](https://asmedigitalcollection.asme.org/appliedmechanicsreviews/article-abstract/59/3/107/465438/On-Boundary-Conditions-for-Incompressible-Navier)
3. Have you tried with a direct solver, rather than gmres and hypre?

> [@Nick\_Rovito](#):
>
> I’m confident in the weak form, we have a similar script in Dolfin 2019 that behaves as expected, but I’m not willing to rule the weak form out as a possibility. I do think the issue lies within how I’m setting up the PETSc matrix system.

If you have a similar setup in legacy FEniCS, could you provide that code as well?

---

_[View the full topic](https://fenicsproject.discourse.group/t/nonzero-pressure-navier-stokes/18264)._
