multiphaseExternalTemperatureFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::multiphaseExternalTemperatureFvPatchScalarField
26 
27 Description
28  Mixed boundary condition for the phase temperature of a phase in an
29  Euler-Euler multiphase simulation, to be used for heat-transfer with another
30  region in a CHT case. Optional thin wall material layer resistances can be
31  specified through thicknessLayers and kappaLayers entries.
32 
33 See also
34  Foam::externalTemperatureFvPatchScalarField
35 
36 SourceFiles
37  multiphaseExternalTemperatureFvPatchScalarField.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef multiphaseExternalTemperatureFvPatchScalarField_H
42 #define multiphaseExternalTemperatureFvPatchScalarField_H
43 
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class multiphaseExternalTemperatureFvPatchScalarField Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
58 {
59 
60 protected:
61 
62  //- Get the patch kappa, sum kappa*Tc/delta, kappa/delta and
63  // reference temperature for all phases except the phase being solved
64  // and also the current phase-average wall T and phase heat-flux
65  // obtained by partitioning the sum heat-flux provided
66  virtual void getKappa
67  (
69  scalarField& sumKappaTByDelta,
70  scalarField& sumKappaByDelta,
71  scalarField& Tref,
72  scalarField& Tw,
73  scalarField& sumq,
74  scalarField& qByKappa
75  ) const;
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("multiphaseExternalTemperature");
82 
83 
84  // Constructors
85 
86  //- Construct from patch, internal field and dictionary
88  (
89  const fvPatch&,
91  const dictionary&
92  );
93 
94  //- Construct by mapping given
95  // multiphaseExternalTemperatureFvPatchScalarField
96  // onto a new patch
98  (
100  const fvPatch&,
102  const fieldMapper&
103  );
104 
105  //- Disallow copy without setting internal field reference
107  (
109  ) = delete;
110 
111  //- Copy constructor setting internal field reference
113  (
116  );
117 
118  //- Construct and return a clone setting internal field reference
120  (
122  ) const
123  {
125  (
127  );
128  }
129 };
130 
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 } // End namespace Foam
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
This boundary condition applies a heat flux condition to temperature on an external wall....
Abstract base class for field mapping.
Definition: fieldMapper.H:48
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
Mixed boundary condition for the phase temperature of a phase in an Euler-Euler multiphase simulation...
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
TypeName("multiphaseExternalTemperature")
Runtime type information.
virtual void getKappa(scalarField &kappa, scalarField &sumKappaTByDelta, scalarField &sumKappaByDelta, scalarField &Tref, scalarField &Tw, scalarField &sumq, scalarField &qByKappa) const
Get the patch kappa, sum kappa*Tc/delta, kappa/delta and.
multiphaseExternalTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for managing temporary objects.
Definition: tmp.H:55
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Namespace for OpenFOAM.