Time dependent boundary for Navier Stokes Equation

I’m trying to implement a time dependent boundary for Navier Stokes Equation.
To study this process, the closest I could find was the material under heat equation
But as far as I understood, this represents a fixed boundary value.

My, ultimate goal is to implement a time dependent function for the pressure in here

In this code they have the value 8 for the input pressure whereas in my case, it should be something like, P(t)=(sin(t))^2

Can someone please direct me to a suitable reading material for this or suggest an appropriate code.
Thank you!

You can use a Dirichletbc with a dolfinx.fem.Constant as the input value, and update it as described in: Out of memory error in frequency for loop - #4 by nate

2 Likes

Thank you. I will go over it