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}"
sh

2. Data files

2.1. Json file

2.2. Cfg file

3. Geometry

3.1. Model & Toolbox

We consider a 2D model representative of a laminar incompressible flow around an obstacle. The flow domain, named ΩfΩf, is contained into the rectangle [0,Long]×[0,Haut][0,Long]×[0,Haut]. It is characterised, in particular, by its dynamic viscosity μfμf and by its density ρfρf.

Pipestokes Geometry

The goal of this benchmark is to couple the Stockes equations and the Concentration equations.
we remind that the Stokes equation are

{μΔu+p=fu=0{μΔu+p=fu=0

with μμ is the dynamic viscosity, pp is the pressure ,ff the source and u the velocity.

And the Concentration equations is

Ct+uC(DpC)=0, in ΩCt+uC(DpC)=0, in Ω

With DpDp the diffusion coefficient on the plasma.

We used the heat fluid toolbox, we replaced the temperature by the Concentration, k by DpDp, and we posed ρCp=1ρCp=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.

Table 1. Fixed and Variable Input Parameters

Name

Description

Units

uu

fluid velocity

m/sm/s

ρρ

density of the fluid

kg/m3kg/m3

νν

dynamic viscosity

kg/(m×s)kg/(m×s)

pp

pression

PaPa

ff

source term

kg/(m3×s)kg/(m3×s)

CpCp

thermal capacity

J/(kgK)J/(kgK)

TT

Temperature

KK

QQ

heat source

W.m3W.m3

DpDp

the diffusion coefficient on the plasma

μm²/s

4.1. initial condition

  • For the fluid:

We use a parabolic velocity profile, in order to describe the flow inlet by Γin, which can be express by

vinlet=Dy(heighty)

To determine D, we know that for y=height2 we have the maximal velocity, so

D=vmaxheight2(heightheight2)
  • For the Concentration:

We give as source this Concentration

Cin=300(y>0.15)(y<0.5)+(293.15(y<(0.151e9)))+(293.15(y>(0.51e9)))

4.2. Materials

   "Materials":
    {
        "Fluid":{
            "rho":"1.0",
            "mu":"1.0",
            "k":"2400.e-6",
            "Cp":"1.0"

        }
    }

4.3. Boundary conditions

For the fluid:

We set

  • On Γin, an inflow Dirichlet condition : uf=(vin,0)

  • On Γwall and Γobst, a homogeneous Dirichlet condition : uf=0

  • On Γout, a Neumann condition : σfnf=0

For the Concentration:

  • On Γin, an inflow Dirichlet condition : Cf=Cin

     "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"
                }
            }
        }
    }

4.4. Fields

We are intersting in the visualisation of the three fields : the velocity, the pressure and the temperature of the fluid

    "Exports":
    {
        "fields":["fluid.velocity","fluid.pressure","heat.temperature","fluid.pid"]
    }

4.5. Measures

the pressure is measured on two points to see the behavior of the pressure as a function of time

          "Measures":
            {
                "Forces":"wall2",
                "Points":
                {
                    "pointA":
                    {
                        "coord":"{0.6,0.2,0}",
                        "fields":"pressure"
                    },
                    "pointB":
                    {
                        "coord":"{0.15,0.2,0}",
                        "fields":"pressure"
                    }
                }
            }

5. Numerical Experiments

We run this model, using the command labeled at the top, we have the following results.

For The temperature: