Go to the documentation of this file.
29 #include "JohnsonJacksonSchaefferFrictionalStress.H"
37 namespace kineticTheoryModels
39 namespace frictionalStressModels
45 frictionalStressModel,
46 JohnsonJacksonSchaeffer,
59 const dictionary&
dict
62 frictionalStressModel(
dict),
63 coeffDict_(
dict.optionalSubDict(typeName +
"Coeffs")),
64 Fr_(
"Fr", dimensionSet(1, -1, -2, 0, 0), coeffDict_),
65 eta_(
"eta",
dimless, coeffDict_),
67 phi_(
"phi",
dimless, coeffDict_),
68 alphaDeltaMin_(
"alphaDeltaMin",
dimless, coeffDict_)
87 const phaseModel& phase,
95 Fr_*
pow(
max(
alpha - alphaMinFriction, scalar(0)), eta_)
104 const phaseModel& phase,
113 eta_*
pow(
max(
alpha - alphaMinFriction, scalar(0)), eta_ - 1.0)
115 + p_*
pow(
max(
alpha - alphaMinFriction, scalar(0)), eta_)
124 const phaseModel& phase,
133 tmp<volScalarField> tnu
139 "JohnsonJacksonSchaeffer:nu",
140 phase.mesh().time().timeName(),
158 0.5*pf[celli]*
sin(phi_.value())
169 volScalarField::Boundary& nufBf = nuf.boundaryFieldRef();
173 if (!
patches[patchi].coupled())
177 pf.boundaryField()[patchi]*
sin(phi_.value())
179 mag(
U.boundaryField()[patchi].snGrad())
187 nuf.correctBoundaryConditions();
196 coeffDict_ <<= dict_.optionalSubDict(typeName +
"Coeffs");
198 Fr_.read(coeffDict_);
199 eta_.read(coeffDict_);
202 phi_.read(coeffDict_);
205 alphaDeltaMin_.read(coeffDict_);
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dimensionedScalar sin(const dimensionedScalar &ds)
Unit conversion functions.
const Type & value() const
Return const reference to value.
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
virtual ~JohnsonJacksonSchaeffer()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
PtrList< fvPatch > fvPatchList
container classes for fvPatch
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar alphaMax("alphaMax", dimless/dimTime, laminarTransport)
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Macros for easy insertion into run-time selection tables.
Cmpt invariantII(const SymmTensor< Cmpt > &st)
Return the 2nd invariant of a SymmTensor.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar & D
const polyBoundaryMesh & patches
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
addToRunTimeSelectionTable(frictionalStressModel, JohnsonJackson, dictionary)
JohnsonJacksonSchaeffer(const dictionary &dict)
Construct from components.
defineTypeNameAndDebug(JohnsonJackson, 0)