Question: - How do I set resistance terms, such as the Ergun Equation?
Answer:
Introduction
The ERGUN equation represents the pressure drop associated with flow through a packed bed, or more generally, a porous medium.
In PHOENICS, pressure drops are applied as sinks in the momentum equation. The units of the momentum equation are those of force, so the pressure drop must also be turned into a force.
The ERGUN equation can be written as:
dp/dx = a*U1 + b*U12
where a=µ/K and b is an empirical constant. Here, µ is the dynamic viscosity of the fluid flowing through the porous media and K is an emprical constant called the permeability.
The pressure drop can be turned into a force, as follows:
Fx = Area * dp
= Area * dp/dx * dx
Now Area = dy * dz;
so dx * Area = Volume
Hence:
Fx = Volume * (a*U1 + b*U12)
Implementation
The velocities used in the equation are superficial velocities, so
This can be introduced as two patches:
PATCH(ERGUN1, VOLUME, ........
COVAL(ERGUN1, U1, a, 0.0)
PATCH(ERGUN2, VOLUME, ........
COVAL(ERGUN2, U1, -b, 0.0)
Note that the -ve COefficient in patch ERGUN2 is activating a quadratic source - as stated in POLIS.