forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request idaholab#21230 from lindsayad/friction-doc
Change the way we do Darcy/Forchheimer
- Loading branch information
Showing
45 changed files
with
1,354 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...vier_stokes/doc/content/source/functormaterials/FunctorErgunDragCoefficients.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# FunctorErgunDragCoefficients | ||
|
||
!syntax description /Materials/FunctorErgunDragCoefficients | ||
|
||
This class implements the Darcy and Forchheimer coefficients for the Ergun drag | ||
force model which is discussed in detail in | ||
[PINSFVMomentumFriction.md#friction_example]. We also give details on the | ||
definition of Darcy and Forchheimer coefficients there. | ||
|
||
To summarize, this class implements the Darcy coefficient as | ||
|
||
\begin{equation} | ||
\frac{150}{D_h^2} | ||
\end{equation} | ||
|
||
where $D_h$ is the hydraulic diameter defined as $\frac{\epsilon d_p}{1 - \epsilon}$ | ||
where $d_p$ is the diameter of the pebbles in the bed. The Forchheimer | ||
coefficient is given as | ||
|
||
\begin{equation} | ||
\frac{2 \cdot 1.75}{D_h} | ||
\end{equation} | ||
|
||
where we have made the $2(1.75)$ multiplication explicit, instead of writing | ||
$3.5$, to make the 1.75 factor from the | ||
[Ergun wikipedia page](https://en.wikipedia.org/wiki/Ergun_equation) more | ||
recognizable. | ||
|
||
!syntax parameters /Materials/FunctorErgunDragCoefficients | ||
|
||
!syntax inputs /Materials/FunctorErgunDragCoefficients | ||
|
||
!syntax children /Materials/FunctorErgunDragCoefficients |
23 changes: 23 additions & 0 deletions
23
modules/navier_stokes/doc/content/source/functormaterials/FunctorKappaFluid.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# FunctorKappaFluid | ||
|
||
!syntax description /Materials/FunctorKappaFluid | ||
|
||
## Description | ||
|
||
Most macroscale models neglect thermal dispersion [!cite](suikkanen,y_li), in which case $\kappa_f$ is given as | ||
|
||
\begin{equation} | ||
\label{eq-KappaFluid} | ||
\kappa_f=\epsilon k_f\ . | ||
\end{equation} | ||
|
||
Neglecting thermal dispersion is expected to be a reasonable approximation for high Reynolds numbers [!cite](gunn1987_htc,littman), | ||
but for low Reynolds numbers more sophisticated models should be used [!cite](becker). | ||
Because thermal dispersion acts to increase the diffusive effects, neglecting thermal dispersion is | ||
(thermally) conservative in the sense that peak temperatures are usually higher [!cite](becker). | ||
|
||
!syntax parameters /Materials/FunctorKappaFluid | ||
|
||
!syntax inputs /Materials/FunctorKappaFluid | ||
|
||
!syntax children /Materials/FunctorKappaFluid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
modules/navier_stokes/include/functormaterials/FunctorDragCoefficients.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
#include "FunctorMaterial.h" | ||
|
||
/** | ||
* Abstract base class material providing the drag coefficients for linear and quadratic friction | ||
* models. The expression of the coefficients is highly dependent on the formulation of the kernel. | ||
* The reader should consult the PINSFVMomentumFrictionKernel documentation for details | ||
*/ | ||
class FunctorDragCoefficients : public FunctorMaterial | ||
{ | ||
public: | ||
FunctorDragCoefficients(const InputParameters & parameters); | ||
|
||
static InputParameters validParams(); | ||
}; |
29 changes: 29 additions & 0 deletions
29
modules/navier_stokes/include/functormaterials/FunctorEffectiveFluidThermalConductivity.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
#include "FunctorMaterial.h" | ||
/** | ||
* This is a base class material to calculate the effective thermal | ||
* conductivity of the fluid phase. Unlike for the solid effective thermal | ||
* conductivity, a factor of porosity is removed such that all parameters in the | ||
* fluid effective thermal conductivity calculation can be expressed as porosity | ||
* multiplying some parameter as $\kappa_f=\epsilon K$, where this material | ||
* actually computes $K$. This is performed such that the correct spatial | ||
* derivative of $\kappa_f$ can be performed, since the porosity is in general a | ||
* function of space, and spatial derivatives of materials cannot be computed. | ||
*/ | ||
class FunctorEffectiveFluidThermalConductivity : public FunctorMaterial | ||
{ | ||
public: | ||
FunctorEffectiveFluidThermalConductivity(const InputParameters & parameters); | ||
|
||
static InputParameters validParams(); | ||
}; |
Oops, something went wrong.