isotropic.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2013-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "isotropic.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 namespace TimeScaleModels
36 {
37  defineTypeNameAndDebug(isotropic, 0);
38 
40  (
41  TimeScaleModel,
42  isotropic,
43  dictionary
44  );
45 }
46 }
47 
48 
49 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
50 
52 (
53  const dictionary& dict
54 )
55 :
57 {}
58 
59 
61 (
62  const isotropic& hc
63 )
64 :
65  TimeScaleModel(hc)
66 {}
67 
68 
69 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
70 
72 {}
73 
74 
75 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
76 
79 (
81  const FieldField<Field, scalar>& r32,
82  const FieldField<Field, scalar>& uSqr,
84 ) const
85 {
86  static const scalar a =
87  8.0*sqrt(2.0)/(5.0*constant::mathematical::pi)
88  *0.25*(3.0 - e_)*(1.0 + e_);
89 
90  return a*f*alphaPacked_/max(alphaPacked_ - alpha, SMALL);
91 }
92 
93 
94 // ************************************************************************* //
Foam::TimeScaleModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(TimeScaleModel, equilibrium, dictionary)
Foam::TimeScaleModels::isotropic::oneByTau
tmp< FieldField< Field, scalar > > oneByTau(const FieldField< Field, scalar > &alpha, const FieldField< Field, scalar > &r32, const FieldField< Field, scalar > &uSqr, const FieldField< Field, scalar > &f) const
Member Functions.
Definition: isotropic.C:79
Foam::FieldField
A field of fields is a PtrList of fields with reference counting.
Definition: FieldField.H:53
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
Foam::TimeScaleModels::isotropic::~isotropic
virtual ~isotropic()
Destructor.
Definition: isotropic.C:71
Foam::TimeScaleModels::isotropic
Model for the time scale over which the velocity field of a dispersed phase tends towards an isotropi...
Definition: isotropic.H:64
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:47
Foam::TimeScaleModels::isotropic::isotropic
isotropic(const dictionary &dict)
Constructors.
Definition: isotropic.C:52
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
isotropic.H
Foam::TimeScaleModels::defineTypeNameAndDebug
defineTypeNameAndDebug(equilibrium, 0)
Foam::constant::mathematical::pi
constexpr scalar pi(M_PI)
Foam::TimeScaleModel
Base class for time scale models.
Definition: TimeScaleModel.H:57
f
labelList f(nPoints)
Foam::sqrt
dimensionedScalar sqrt(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:144