Spiegler.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) 2018 OpenCFD Ltd
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 "Spiegler.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 namespace wallBoilingModels
37 {
38 namespace LeidenfrostModels
39 {
42  (
44  Spiegler,
46  );
47 }
48 }
49 }
50 
51 
52 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
53 
55 (
56  const dictionary& dict
57 )
58 :
60  Tcrit_(dict.lookupOrDefault<scalar>("Tcrit", 374))
61 {}
62 
63 
64 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
65 
67 {}
68 
69 
70 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
71 
74 (
75  const phaseModel& liquid,
76  const phaseModel& vapor,
77  const label patchi,
78  const scalarField& Tl,
79  const scalarField& Tsatw,
80  const scalarField& L
81 ) const
82 {
83  return tmp<scalarField>
84  (
85  new scalarField
86  (
87  liquid.thermo().p().boundaryField()[patchi].size(),
88  27*Tcrit_/32
89  )
90  );
91 }
92 
93 
95 (
96  Ostream& os
97 ) const
98 {
100  os.writeKeyword("Tcrit") << Tcrit_ << token::END_STATEMENT << nl;
101 }
102 
103 // ************************************************************************* //
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:57
Foam::wallBoilingModels::LeidenfrostModel
Base class for nucleation site density models.
Definition: LeidenfrostModel.H:57
L
const vector L(dict.get< vector >("L"))
Foam::basicThermo::p
virtual volScalarField & p()
Pressure [Pa].
Definition: basicThermo.C:512
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::wallBoilingModels::LeidenfrostModels::Spiegler::write
virtual void write(Ostream &os) const
Definition: Spiegler.C:95
Foam::wallBoilingModels::LeidenfrostModels::defineTypeNameAndDebug
defineTypeNameAndDebug(Spiegler, 0)
Foam::wallBoilingModels::LeidenfrostModel::write
virtual void write(Ostream &os) const
Definition: LeidenfrostModel.C:56
Foam::phaseModel::thermo
virtual const rhoThermo & thermo() const =0
Return the thermophysical model.
wallBoilingModels
Critical heat flux (CHF) correlation.
Foam::wallBoilingModels::LeidenfrostModels::Spiegler::Spiegler
Spiegler(const dictionary &dict)
Construct from a dictionary.
Definition: Spiegler.C:55
Foam::wallBoilingModels::LeidenfrostModels::Spiegler::~Spiegler
virtual ~Spiegler()
Destructor.
Definition: Spiegler.C:66
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:62
Foam::Field< scalar >
Foam::token::END_STATEMENT
End entry [isseparator].
Definition: token.H:116
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:121
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::Ostream::writeKeyword
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
Definition: Ostream.C:57
uniformDimensionedFields.H
Foam::wallBoilingModels::LeidenfrostModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(LeidenfrostModel, Spiegler, dictionary)
Foam::nl
constexpr char nl
Definition: Ostream.H:372
Foam::wallBoilingModels::LeidenfrostModels::Spiegler::TLeid
virtual tmp< scalarField > TLeid(const phaseModel &liquid, const phaseModel &vapor, const label patchi, const scalarField &Tl, const scalarField &Tsatw, const scalarField &L) const
Calculate and return the nucleation-site density.
Definition: Spiegler.C:74
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Spiegler.H
Foam::GeometricField::boundaryField
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Definition: GeometricFieldI.H:62
Foam::wallBoilingModels::LeidenfrostModels::Spiegler
Definition: Spiegler.H:61