multiphaseCoupledTemperatureFvPatchScalarField.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-2025 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::multiphaseCoupledTemperatureFvPatchScalarField
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  multiphaseCoupledTemperatureFvPatchScalarField.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef multiphaseCoupledTemperatureFvPatchScalarField_H
42 #define multiphaseCoupledTemperatureFvPatchScalarField_H
43 
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class multiphaseCoupledTemperatureFvPatchScalarField Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
58 {
59 
60 protected:
61 
62  // Protected Member Functions
63 
64  //- Get the patch kappa, sum kappa*Tc/delta and kappa/delta for all
65  // phases except the phase being solved and also the phase heat-flux
66  // obtained by partitioning the sum heat-flux provided
67  virtual void getThis
68  (
70  tmp<scalarField>& sumKappaTByDelta,
71  tmp<scalarField>& sumKappaByDelta,
72  scalarField& sumq,
73  tmp<scalarField>& qByKappa
74  ) const;
75 
76  //- Get the neighbour patch sum kappa*Tc/delta and kappa/delta
77  // for all phases and the heat-flux correction
78  virtual void getNbr
79  (
80  tmp<scalarField>& sumKappaTByDeltaNbr,
81  tmp<scalarField>& sumKappaByDeltaNbr,
82  tmp<scalarField>& qNbr
83  ) const;
84 
85  //- Get the neighbour patch wall temperature and heat-flux
86  // when wall thermal resistance is specified
87  virtual void getNbr
88  (
89  tmp<scalarField>& TwNbr,
90  tmp<scalarField>& qNbr
91  ) const;
92 
93 
94 public:
95 
96  //- Runtime type information
97  TypeName("multiphaseCoupledTemperature");
98 
99 
100  // Constructors
101 
102  //- Construct from patch, internal field and dictionary
104  (
105  const fvPatch&,
107  const dictionary&
108  );
109 
110  //- Construct by mapping given
111  // multiphaseCoupledTemperatureFvPatchScalarField
112  // onto a new patch
114  (
116  const fvPatch&,
118  const fieldMapper&
119  );
120 
121  //- Disallow copy without setting internal field reference
123  (
125  ) = delete;
126 
127  //- Copy constructor setting internal field reference
129  (
132  );
133 
134  //- Construct and return a clone setting internal field reference
136  (
138  ) const
139  {
141  (
143  );
144  }
145 };
146 
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 } // End namespace Foam
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 #endif
155 
156 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Mixed boundary condition for temperature, to be used for heat-transfer with another region in a CHT c...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
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 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.
TypeName("multiphaseCoupledTemperature")
Runtime type information.
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.
multiphaseCoupledTemperatureFvPatchScalarField(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.