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-2021 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 
54 Foam::wallBoilingModels::LeidenfrostModels::Spiegler::Spiegler
55 (
56  const dictionary& dict
57 )
58 :
60  Tcrit_(dict.getOrDefault<scalar>("Tcrit", 374))
61 {}
62 
63 
64 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
65 
68 (
69  const phaseModel& liquid,
70  const phaseModel& vapor,
71  const label patchi,
72  const scalarField& Tl,
73  const scalarField& Tsatw,
74  const scalarField& L
75 ) const
76 {
78  (
79  liquid.thermo().p().boundaryField()[patchi].size(),
80  scalar(27)*Tcrit_/scalar(32)
81  );
82 }
83 
84 
86 (
87  Ostream& os
88 ) const
89 {
91  os.writeEntry("Tcrit", Tcrit_);
92 }
93 
94 
95 // ************************************************************************* //
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:54
Foam::wallBoilingModels::LeidenfrostModel
Base class for Leidenfrost-effect models.
Definition: LeidenfrostModel.H:56
L
const vector L(dict.get< vector >("L"))
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::wallBoilingModels::LeidenfrostModels::Spiegler::write
virtual void write(Ostream &os) const
Write.
Definition: Spiegler.C:86
Foam::wallBoilingModels::LeidenfrostModels::defineTypeNameAndDebug
defineTypeNameAndDebug(Spiegler, 0)
Foam::liquid
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Definition: liquid.H:54
Foam::Field< scalar >
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
os
OBJstream os(runTime.globalPath()/outputName)
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
uniformDimensionedFields.H
Foam::wallBoilingModels::LeidenfrostModels::addToRunTimeSelectionTable
addToRunTimeSelectionTable(LeidenfrostModel, Spiegler, dictionary)
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 Leidenfrost temperature.
Definition: Spiegler.C:68
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Definition: foamVtkOutputTemplates.C:36
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Spiegler.H
Foam::wallBoilingModels::LeidenfrostModels::Spiegler
A model for Leidenfrost effects based on Spiegler et al. (1963) for boiling flows.
Definition: Spiegler.H:102