coupledMultiphaseTemperatureFvPatchScalarField.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) 2022-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::coupledMultiphaseTemperatureFvPatchScalarField
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::coupledTemperatureFvPatchScalarField
35 
36 SourceFiles
37  coupledMultiphaseTemperatureFvPatchScalarField.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef coupledMultiphaseTemperatureFvPatchScalarField_H
42 #define coupledMultiphaseTemperatureFvPatchScalarField_H
43 
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class coupledMultiphaseTemperatureFvPatchScalarField Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
58 {
59 
60 protected:
61 
62  //- Get the patch kappa, sum kappa*Tc/delta and kappa/delta for all phases
63  // except the phase being solved and also the phase heat-flux obtained by
64  // partitioning the sum heat-flux provided
65  virtual void getThis
66  (
68  tmp<scalarField>& sumKappaTByDelta,
69  tmp<scalarField>& sumKappaByDelta,
70  scalarField& sumq,
71  tmp<scalarField>& qByKappa
72  ) const;
73 
74  //- Get the neighbour patch sum kappa*Tc/delta and kappa/delta
75  // for all phases and the heat-flux correction
76  virtual void getNbr
77  (
78  tmp<scalarField>& sumKappaTByDeltaNbr,
79  tmp<scalarField>& sumKappaByDeltaNbr,
80  tmp<scalarField>& qNbr
81  ) const;
82 
83  //- Get the neighbour patch wall temperature and heat-flux
84  // when wall thermal resistance is specified
85  virtual void getNbr
86  (
87  tmp<scalarField>& TwNbr,
88  tmp<scalarField>& qNbr
89  ) const;
90 
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("coupledMultiphaseTemperature");
96 
97 
98  // Constructors
99 
100  //- Construct from patch, internal field and dictionary
102  (
103  const fvPatch&,
105  const dictionary&
106  );
107 
108  //- Construct by mapping given
109  // coupledMultiphaseTemperatureFvPatchScalarField
110  // onto a new patch
112  (
114  const fvPatch&,
116  const fvPatchFieldMapper&
117  );
118 
119  //- Disallow copy without setting internal field reference
121  (
123  ) = delete;
124 
125  //- Copy constructor setting internal field reference
127  (
130  );
131 
132  //- Construct and return a clone setting internal field reference
134  (
136  ) const
137  {
139  (
141  );
142  }
143 };
144 
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 } // End namespace Foam
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 #endif
153 
154 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Mixed boundary condition for the phase temperature of a phase in an Euler-Euler multiphase simulation...
virtual void getNbr(tmp< scalarField > &sumKappaTByDeltaNbr, tmp< scalarField > &sumKappaByDeltaNbr, tmp< scalarField > &qNbr) const
Get the neighbour patch sum kappa*Tc/delta and kappa/delta.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
coupledMultiphaseTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void getThis(tmp< scalarField > &kappa, tmp< scalarField > &sumKappaTByDelta, tmp< scalarField > &sumKappaByDelta, scalarField &sumq, tmp< scalarField > &qByKappa) const
Get the patch kappa, sum kappa*Tc/delta and kappa/delta for all phases.
TypeName("coupledMultiphaseTemperature")
Runtime type information.
Mixed boundary condition for temperature, to be used for heat-transfer with another region in a CHT c...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Foam::fvPatchFieldMapper.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
A class for managing temporary objects.
Definition: tmp.H:55
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Namespace for OpenFOAM.