Brinkman Navier-Stokes
Transient Brinkman Navier-Stokes
- class flatiron_tk.physics.transient_brinkman_navier_stokes.TransientBrinkmanNavierStokes(mesh, dt=0.01, theta=0.5, *args, **kwargs)[source]
Bases:
SteadyNavierStokesTransient scalar transport problem. Supers SteadyNavierStokes.
- Parameters:
mesh (flatiron_tk.mesh) – The mesh on which to solve the problem.
dt (float) – The time step size.
theta (float, optional) – The theta parameter for the implicit-explicit scheme. Default is 0.5.
*args – Additional arguments to pass to the SteadyNavierStokes constructor.
**kwargs – Additional arguments to pass to the SteadyNavierStokes constructor.
- add_stab()[source]
Add stabilization terms to the weak form for the steady Navier-Stokes problem. This method computes the SUPG and PSPG stabilization terms and adds them to the weak form.
- get_residual()[source]
Compute the residual for the transient Navier-Stokes problem.
Returns:
The residual expression for the transient Navier-Stokes equations.
- set_indicator_function(indicator_function)[source]
Set the indicator function for the transient Brinkman-Navier-Stokes problem.
Parameters:
indicator_function: The indicator function value or function.
- set_initial_conditions(u_init, p_init)[source]
Set the initial conditions for the transient Navier-Stokes problem.
Parameters:
- u_init: dolfinx.fem.Function or dolfinx.fem.Expression
Initial velocity field
- p_init: dolfinx.fem.Function or dolfinx.fem.Expression
Initial pressure field
- set_midpoint_theta(theta)[source]
Set the midpoint theta parameter for the transient Navier-Stokes problem.
Parameters:
theta: The midpoint theta parameter.
- set_permeability(permeability)[source]
Set the permeability for the transient Brinkman-Navier-Stokes problem.
Parameters:
permeability: The permeability value or function.
- set_time_step_size(dt)[source]
Set the time step size for the transient Navier-Stokes problem.
Parameters:
dt: The time step size.
This class solves the transient Brinkman Navier Stokes problem. The Brinkman equations are a modification of the Navier-Stokes equations to account for flow in porous media by adding a Darcy drag term to the momentum equation.
Strong formulation
Momentum equation
Continuity
where \(\textbf{u}\) and p are the velocity and pressure field respectively with the constants \(\rho\) and \(\mu\) are the fluid density and dynamic viscosity respectively.
Boundary conditions
Fixed value boundary condition
Traction boundary condition
Weak formulation
In this implementation, we the mid-point method for time integration. Let \(\mathcal{L}(u, p)\) be the weak formulation obtained in the Steady Navier-Stokes, the weak formulation for the transient problem is
Stabilization parameters
Stabilization parameter now has time dependence and is defined as
In this case, we use the same stabilization parameter for both SUPG and PSPG