1
$\begingroup$

My goal is to numerically solve the convection-diffusion equation of the form:

$$\frac{\partial C}{\partial t} = \nabla (D \nabla C) - \nabla (v C)$$

$C$ is concentration and $D$ is the diffusivity constant. I am simulating this on a small flat plate model of porous media.

Picture of flat plate model

I am assuming that fluid flow goes across the plates through the porous media from right to left and gas flow occurs from top to bottom inside the porous media and mass transport occurs between the gas and the fluid. I am modeling this in a commercial solver.

I assigned a mass flow to the fluid inlet and a constant pressure to the fluid outlet to model the fluid flow.

I keep having trouble modeling the gas flow. I tried setting a gradient by assigning a constant pressure at the inlet and outlet of the porous media but that does not seem correct.

I'm beginning to think that there is a more fundamental problem with my approach.

My question: is it correct to assign a gas pressure or a mass flux at the inlet and outlet to the porous domain?

Would a mass flux be required at the interfaces to the fluid regions as well? Is there a specific approach for modeling gas flux?

$\endgroup$
1
  • $\begingroup$ It is difficult to understand (at least for a non-specialist) and hence to advise something. Why do you think the results are incorrect? What did you expect to see and what didn't you see? Have you tried to eliminate gas flow and see whether the solution is fine? $\endgroup$
    – VorKir
    Commented Mar 21, 2017 at 0:08

4 Answers 4

1
$\begingroup$

I presume that your fluid phase is liquid, for example, water.

If that is a case, you have liquid and gas, and porous material, thus you have capillary pressure in the liquid. At the microscopic scale, this is described by Young-Laplace equation. At the macro scale, your flow is the unsaturated flow problem.

The capillary pressure depends on water content density. It is a semi-empirical relation between liquid content and capillary pressure, called resorption curve. Such problems have been studied in soil mechanics and civil engineering in general, including modelling of concrete. The hydraulic conductivity is strongly nonlinear, which drops quickly to very small values (to zero) when with dropping water content.

You can find several models developed for soils, most popular is Van Genuchten model, with in applied with Richards equation give strongly nonlinear parabolic equation.

I do not know exact conditions under which you solve your problem, but it could be premature, that phenomenon which you try to solve is driven by the convection-diffusion equation.

If you are interested, I have free/open code for unsaturated flow using mix formulation (using RT elements) which can be, relatively easily, generalised to the case with the flow of gas phase.

About your question, what boundary conditions you like to apply depending on what you know about fluid phase, if you now pressure on both sides, then apply it. If you measure influx, apply it.

$\endgroup$
0
$\begingroup$

Since you are trying to solve a scalar field $C$, you should be worry about boundary conditions for your primal variable in the case $C$, injecting water or gas will describe the velocity field $v$ to be incompressible ($\nabla \cdot v = 0$) or not ($\nabla \cdot v \neq 0$).

In the other hand if you are solving the velocity field $v$ with a CFD solver, then you are simulating the mixing of two flows, in that case imposing velocity at both inlets and pressure at outlets may be a good form to tackle your problem.

$\endgroup$
0
$\begingroup$

Since you are asking quite a general question, I will respond with a general answer.

In describing incompressible flows we use velocity inlet boundary condition (e.g. uniform, parabolic, etc) and a constant pressure outlet boundary condition (e.g. atmospheric pressure).

At the membrane side specify a mass flux boundary condition which depends on the gradient in $C$ across the membrane:

$$-D\nabla C = k\left(C-C_0\right)$$

Where $D$ and $k$ are the diffusion coefficient and mass transfer coefficient respectively. Usually, these are related through so-called Sherwood relations where the Sherwood number $Sh=kL/D$ and $L$ is a characteristic length scale (e.g. membrane thickness).

These Sherwood relations are a function of the Reynolds number $Re=UL/\nu$ where $\nu$ is the kinematic viscosity and $U$ is the average fluid speed. In this way the mass transfer across the membrane is coupled to the fluid flow.

$\endgroup$
0
$\begingroup$

Since you are asking quite a general question, I will respond with a general answer.

I like this. I will address the following question:

Would a mass flux be required at the interfaces to the fluid regions as well? Is there a specific approach for modeling gas flux?

Boundary conditions (BCs) are prescribed behavior involving the variables of the problem. The more you add, the more your problem will be described; at least from the computer code standpoint. Since you are solving for a scalar-valued concentration $C$, then one common BC you can prescribe is the Robin boundary condition (see previous link for details): $$ a C + b \frac{\partial C}{\partial n} = g. $$

Note that the Neumann component on the aforementioned equation; i.e. $b \frac{\partial C}{\partial n}$ is a good start to study the normal concentration flux at the boundary. In general, these are very useful for these type of problem in the case you need to prescribe an insulation condition on your variable of interest; i.e. from Wikipedia:

The Robin boundary condition is a general form of the insulating boundary condition for convection–diffusion equations. Here, the convective and diffusive fluxes at the boundary sum to zero: $$ u_x(0)\,c(0) -D \frac{\partial c(0)}{\partial x}=0 $$

Therefore, I would advise to further study Robin BCs in this context, in order to learn the advantages these may bring to the table, in terms of imposing a mass flux at the interfaces, which are indeed boundaries to each individual sub-volume.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.