Difference between revisions of "DarcyForchheimer"
(First Build) |
(→Calculate the Coefficients) |
||
Line 60: | Line 60: | ||
==Calculate the Coefficients== | ==Calculate the Coefficients== | ||
− | In | + | In order to use the Darcy-Forchheimer equation, the coefficients D and F have to be estimated. For porous media we need the velocity dependent pressure p(u) function of the porous media. E.g., the above equation for <math>S_m</math> can be written as: |
+ | |||
+ | <math>S_m = - \mu \textbf{D}\textbf{U} - \frac{1/2}\rho\operatorname{tr}(\textbf{U}\bullet\textbf{I})\textbf{U}</math> | ||
+ | |||
+ | As the source term <math>S_m</math> can be expressed as a pressure gradient it follows <math>S_m = \nabla p</math>. Therefore, we can write: | ||
+ | |||
+ | <math>\nabla p = - \mu \textbf{D}\textbf{U} - \frac{1/2}\rho\operatorname{tr}(\textbf{U}\bullet\textbf{I})\textbf{U}</math> | ||
+ | |||
+ | While switching to the Cartesian coordinate system, we can achieve something similar to: | ||
+ | |||
+ | <math> \nabla p = - \mu \textbf{D}_{i}u_i - \frac{1}{2}\rho \textbf{F}_{i} |u_{kk}| u_i</math> | ||
+ | |||
+ | If we know the velocity dependent pressure we can calculate a polynomial function such as: | ||
+ | |||
+ | <math>\Delta p = A u + B u^2</math> | ||
+ | |||
+ | Comparing both equations, we can say: | ||
+ | |||
+ | <math> A = -\mu \textbf{D}</math> | ||
+ | |||
+ | <math>B = -\frac{1}{2}\rho\textbf{F}</math> | ||
+ | |||
+ | Therefore, knowing the velocity dependent pressure values, we can calculate A and B and thus, the coefficients <math>\textbf{D}</math> and <math>\textbf{F}</math> can be recalculated. It should be clear, that the vectors <math>\textbf{D}</math> and <math>\textbf{F}</math> can be direction dependent. | ||
+ | |||
+ | ==Porous Media such as Honeycombs == | ||
+ | Porous media that only have one flow direction, e.g., honeycombs, has to block two directions of the flow. To achieve that, we can set high values for <math>\textbf{D}</math> and <math>\textbf{F}</math>. | ||
+ | |||
+ | |||
+ | = References = | ||
+ | |||
+ | https://www.cfd-online.com/Forums/openfoam-solving/78705-darcy-forchheimer-law-specifying-porous-zones.html | ||
+ | http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2008/HaukurElvarHafsteinsson/haukurReport.pdf |
Revision as of 20:58, 10 November 2018
The Darcy Forchheimer model allows us to simply add a porosity zone into our fluid domain without any expense. In order to use the model, you have to put a fvOptions file into the constant folder including the following content (OpenFOAM-v6):
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: dev | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // porosity1 { type explicitPorositySource; explicitPorositySourceCoeffs { selectionMode cellZone; cellZone cat1; type DarcyForchheimer; f (0.63 1e6 1e6); d (80.25 1e6 1e6); coordinateSystem { type cartesian; origin (0 0 0); coordinateRotation { type axesRotation; e1 (1 0 0); e2 (0 1 0); } } } }
Contents
1 The Darcy-Forchheimer Equation
The Darcy Forchheimer acts in the momentum equation as a sink term . Considering the momentum equation, it follows:
Here, the Cauchy stress tensor is not split into its deviatoric and hydrostatic part (shear-rate and pressure). The main important term is the source term which is given as:
While the coefficients and have to be specified in the fvOptions file (see code above). The souce term represents a sink as the sign is negative.
1.1 Calculate the Coefficients
In order to use the Darcy-Forchheimer equation, the coefficients D and F have to be estimated. For porous media we need the velocity dependent pressure p(u) function of the porous media. E.g., the above equation for can be written as:
As the source term can be expressed as a pressure gradient it follows . Therefore, we can write:
While switching to the Cartesian coordinate system, we can achieve something similar to:
If we know the velocity dependent pressure we can calculate a polynomial function such as:
Comparing both equations, we can say:
Therefore, knowing the velocity dependent pressure values, we can calculate A and B and thus, the coefficients and can be recalculated. It should be clear, that the vectors and can be direction dependent.
1.2 Porous Media such as Honeycombs
Porous media that only have one flow direction, e.g., honeycombs, has to block two directions of the flow. To achieve that, we can set high values for and .
2 References
https://www.cfd-online.com/Forums/openfoam-solving/78705-darcy-forchheimer-law-specifying-porous-zones.html http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2008/HaukurElvarHafsteinsson/haukurReport.pdf