Burns.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) 2014-2018 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 "Burns.H"
29 #include "phasePair.H"
30 #include "phaseCompressibleTurbulenceModel.H"
32 
33 #include "dragModel.H"
34 
35 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
36 
37 namespace Foam
38 {
39 namespace turbulentDispersionModels
40 {
43  (
45  Burns,
47  );
48 }
49 }
50 
51 
52 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
53 
55 (
56  const dictionary& dict,
57  const phasePair& pair
58 )
59 :
61  sigma_("sigma", dimless, dict),
62  residualAlpha_
63  (
64  "residualAlpha",
65  dimless,
66  pair_.dispersed().residualAlpha().value(),
67  dict
68  )
69 {}
70 
71 
72 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
73 
75 {}
76 
77 
78 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
79 
82 {
83  const fvMesh& mesh(pair_.phase1().mesh());
84  const dragModel& drag =
85  mesh.lookupObject<dragModel>
86  (
87  IOobject::groupName(dragModel::typeName, pair_.name())
88  );
89 
90  return
91  0.75
92  *drag.CdRe()
93  *pair_.continuous().nu()
94  *continuousTurbulence().nut()
95  /(
96  sigma_
97  *sqr(pair_.dispersed().d())
98  )
99  *pair_.continuous().rho()
100  *pair_.dispersed()
101  *(
102  1.0/max(pair_.dispersed(), residualAlpha_)
103  + 1.0/max(pair_.continuous(), residualAlpha_)
104  );
105 }
106 
107 
108 // ************************************************************************* //
drag
Info<< "Reading strained laminar flame speed field Su\n"<< endl;volScalarField Su(IOobject("Su", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field betav\n"<< endl;volScalarField betav(IOobject("betav", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Lobs\n"<< endl;volScalarField Lobs(IOobject("Lobs", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field CT\n"<< endl;volSymmTensorField CT(IOobject("CT", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Nv\n"<< endl;volScalarField Nv(IOobject("Nv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field nsv\n"<< endl;volSymmTensorField nsv(IOobject("nsv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);IOdictionary PDRProperties(IOobject("PDRProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));autoPtr< PDRDragModel > drag
Definition: createFields.H:165
Foam::phasePair
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Definition: phasePair.H:53
Foam::turbulentDispersionModel
Definition: turbulentDispersionModel.H:56
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Burns.H
Foam::turbulentDispersionModels::Burns
Turbulent dispersion model of Burns et al.
Definition: Burns.H:71
Foam::turbulentDispersionModels::Burns::Burns
Burns(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
Definition: Burns.C:55
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::turbulentDispersionModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(turbulentDispersionModel, Burns, dictionary)
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::turbulentDispersionModels::Burns::D
virtual tmp< volScalarField > D() const
Turbulent diffusivity.
Definition: Burns.C:81
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::turbulentDispersionModels::Burns::~Burns
virtual ~Burns()
Destructor.
Definition: Burns.C:74
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:51
Foam::turbulentDispersionModels::defineTypeNameAndDebug
defineTypeNameAndDebug(Burns, 0)
Foam::dragModel
Definition: dragModel.H:51
Foam::IOobject::groupName
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Foam::dimless
const dimensionSet dimless
Dimensionless.
Definition: dimensionSets.C:189