37 namespace kineticTheoryModels
39 namespace frictionalStressModels
45 frictionalStressModel,
46 JohnsonJacksonSchaeffer,
63 coeffDict_(
dict.optionalSubDict(typeName +
"Coeffs")),
65 eta_(
"eta",
dimless, coeffDict_),
67 phi_(
"phi",
dimless, coeffDict_),
68 alphaDeltaMin_(
"alphaDeltaMin",
dimless, coeffDict_)
95 Fr_*
pow(
max(
alpha - alphaMinFriction, scalar(0)), eta_)
113 eta_*
pow(
max(
alpha - alphaMinFriction, scalar(0)), eta_ - 1)
115 + p_*
pow(
max(
alpha - alphaMinFriction, scalar(0)), eta_)
137 "JohnsonJacksonSchaeffer:nu",
150 0.5*pf[celli]*
sin(phi_.value())
172 mag(
U.boundaryField()[patchi].snGrad())
189 coeffDict_ <<= dict_.optionalSubDict(typeName +
"Coeffs");
191 Fr_.read(coeffDict_);
192 eta_.read(coeffDict_);
195 phi_.read(coeffDict_);
198 alphaDeltaMin_.read(coeffDict_);
Cmpt invariantII(const SymmTensor< Cmpt > &st)
Return the 2nd invariant of a SymmTensor.
const Type & value() const noexcept
Return const reference to value.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Unit conversion functions.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionSet dimless
Dimensionless.
addToRunTimeSelectionTable(frictionalStressModel, JohnsonJackson, dictionary)
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
dimensionedScalar alphaMax("alphaMax", dimless/dimTime, laminarTransport)
defineTypeNameAndDebug(JohnsonJackson, 0)
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
const Mesh & mesh() const noexcept
Return mesh.
dimensionedScalar sin(const dimensionedScalar &ds)
virtual ~JohnsonJacksonSchaeffer()
Destructor.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
const polyBoundaryMesh & patches
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
void correctBoundaryConditions()
Correct boundary field.
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
const dimensionedScalar & D
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
JohnsonJacksonSchaeffer(const dictionary &dict)
Construct from components.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.