Mass transport in a Stokes flow in a pipe
1. Running the model
The command line to run this pipestokes case
mpirun -np 4 feelpp_toolbox_fluid --case "github:{repo:toolbox,path:examples/modules/heatfluid/examples/pipestockes_mass}"
3. Geometry
3.1. Model & Toolbox
We consider a 2D model representative of a laminar incompressible flow around an obstacle. The flow domain, named \(\Omega_f\), is contained into the rectangle \( \lbrack 0,Long \rbrack \times \lbrack 0,Haut \rbrack \). It is characterised, in particular, by its dynamic viscosity \(\mu_f\) and by its density \(\rho_f\).
The goal of this benchmark is to couple the Stockes equations and the Concentration equations.
we remind that the Stokes equation are
with \(\boldsymbol{\mu}\) is the dynamic viscosity, \(\boldsymbol{p}\) is the pressure ,\(f\) the source and u the velocity.
And the Concentration equations is
With \(D_{p}\) the diffusion coefficient on the plasma.
We used the heat fluid toolbox, we replaced the temperature by the Concentration, k by \(D_{p}\), and we posed \(\rho C_{p}=1\) to have the same kind of equations.
4. Input parameters
The following table displays the various fixed and variables parameters of this test-case.
Name |
Description |
Units |
\(u\) |
fluid velocity |
\(m/s\) |
\(\rho\) |
density of the fluid |
\(kg/m^3\) |
\(\nu\) |
dynamic viscosity |
\(kg/(m×s)\) |
\(p\) |
pression |
\(Pa\) |
\(f\) |
source term |
\(kg/(m^3×s)\) |
\(C_p\) |
thermal capacity |
\(J/(kg∗K)\) |
\(T\) |
Temperature |
\(K\) |
\(Q\) |
heat source |
\(W.m^{-3}\) |
\(D_{p}\) |
the diffusion coefficient on the plasma |
\(\mu m²/s\) |
4.1. initial condition
-
For the fluid:
We use a parabolic velocity profile, in order to describe the flow inlet by \( \Gamma_{in} \), which can be express by
To determine \(D\), we know that for \(y=\frac{height}{2}\) we have the maximal velocity, so
-
For the Concentration:
We give as source this Concentration
4.3. Boundary conditions
For the fluid:
We set
-
On \(\Gamma_{in}\), an inflow Dirichlet condition : \( \boldsymbol{u}_f=(v_{in},0) \)
-
On \(\Gamma_{wall}\) and \(\Gamma_{obst}\), a homogeneous Dirichlet condition : \( \boldsymbol{u}_f=\boldsymbol{0} \)
-
On \(\Gamma_{out}\), a Neumann condition : \( \boldsymbol{\sigma}_f\boldsymbol{ n }_f=\boldsymbol{0} \)
For the Concentration:
-
On \(\Gamma_{in}\), an inflow Dirichlet condition : \( \boldsymbol{C}_f=C_{in} \)
---- "BoundaryConditions": { "velocity": { "Dirichlet": { "inlet": { "expr":"{D*y*(height-y),0}:y:height:D" }, "wall1": { "expr":"{0,0}" }, "wall2": { "expr":"{0,0}" } } }, "fluid": { "outlet": { "outlet": { "expr":"0" } } }, "temperature": { "Dirichlet": { "inlet": { "expr":"300*(y>0.15)*(y<0.5)+(293.15*(y<(0.15-1e-9)))+(293.15*(y>(0.5-1e-9))):y" } } } }