slurry.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2014-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "slurry.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33 namespace mixtureViscosityModels
34 {
35  defineTypeNameAndDebug(slurry, 0);
36 
38  (
39  mixtureViscosityModel,
40  slurry,
41  dictionary
42  );
43 }
44 }
45 
46 
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 
50 (
51  const word& name,
52  const dictionary& viscosityProperties,
53  const volVectorField& U,
54  const surfaceScalarField& phi,
55  const word modelName
56 )
57 :
58  mixtureViscosityModel(name, viscosityProperties, U, phi),
59  alpha_
60  (
61  U.mesh().lookupObject<volScalarField>
62  (
63  IOobject::groupName
64  (
65  viscosityProperties.lookupOrDefault<word>("alpha", "alpha"),
66  viscosityProperties.dictName()
67  )
68  )
69  )
70 {}
71 
72 
73 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
74 
77 {
78  return
79  (
80  muc*(1.0 + 2.5*alpha_ + 10.05*sqr(alpha_) + 0.00273*exp(16.6*alpha_))
81  );
82 }
83 
84 
86 (
87  const dictionary& viscosityProperties
88 )
89 {
90  return true;
91 }
92 
93 
94 // ************************************************************************* //
surfaceScalarField & phi
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
dynamicFvMesh & mesh
dimensionedScalar exp(const dimensionedScalar &ds)
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
const word dictName("particleTrackDict")
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
U
Definition: pEqn.H:72
slurry(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi, const word modelName=typeName)
Construct from components.
A class for managing temporary objects.
Definition: PtrList.H:53
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const volScalarField & alpha_
Plastic phase fraction.
Definition: plastic.H:76
Namespace for OpenFOAM.