Loading...
Searching...
No Matches
alphatPhaseChangeWallFunctionFvPatchScalarField.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) 2015-2018 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
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
29#include "fvPatchFieldMapper.H"
30#include "volFields.H"
32
33// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34
35namespace Foam
36{
37namespace compressible
38{
40// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
41
43
44// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
45
48(
49 const fvPatch& p,
51)
53 fixedValueFvPatchScalarField(p, iF),
54 dmdt_(p.size(), Zero),
55 mDotL_(p.size(), Zero)
56{}
57
58
61(
62 const fvPatch& p,
64 const dictionary& dict
65)
67 fixedValueFvPatchScalarField(p, iF, dict),
68 dmdt_("dmdt", dict, p.size(), IOobjectOption::LAZY_READ),
69 mDotL_("mDotL", dict, p.size(), IOobjectOption::LAZY_READ)
70{}
71
72
75(
77 const fvPatch& p,
79 const fvPatchFieldMapper& mapper
80)
82 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
83 dmdt_(ptf.dmdt_, mapper),
84 mDotL_(ptf.mDotL_, mapper)
85{}
86
87
90(
92)
94 fixedValueFvPatchScalarField(awfpsf),
95 dmdt_(awfpsf.dmdt_),
96 mDotL_(awfpsf.mDotL_)
97{}
98
99
102(
105)
106:
107 fixedValueFvPatchScalarField(awfpsf, iF),
108 dmdt_(awfpsf.dmdt_),
109 mDotL_(awfpsf.mDotL_)
110{}
111
112
113// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
114
116write(Ostream& os) const
117{
119 dmdt_.writeEntry("dmdt", os);
120 mDotL_.writeEntry("mDotL", os);
122}
123
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127} // End namespace compressible
128} // End namespace Foam
129
130// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Definition Field.C:754
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
Abstract base-class for all alphatWallFunctions supporting phase-change.
alphatPhaseChangeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition fvPatch.H:71
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition className.H:142
volScalarField & p
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
dictionary dict