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-2026 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 
86 public:
87 
88  //- Runtime type information
89  TypeName("multiphaseCoupledTemperature");
90 
91 
92  // Constructors
93 
94  //- Construct from patch, internal field and dictionary
96  (
97  const fvPatch&,
99  const dictionary&
100  );
101 
102  //- Construct by mapping given
103  // multiphaseCoupledTemperatureFvPatchScalarField
104  // onto a new patch
106  (
108  const fvPatch&,
110  const fieldMapper&
111  );
112 
113  //- Disallow copy without setting internal field reference
115  (
117  ) = delete;
118 
119  //- Copy constructor setting internal field reference
121  (
124  );
125 
126  //- Construct and return a clone setting internal field reference
128  (
130  ) const
131  {
133  (
135  );
136  }
137 
138 
139  // Member Operators
140 
141  //- Inherit assignment
142  using coupledTemperatureFvPatchScalarField::operator=;
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 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:58
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.
multiphaseCoupledTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
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.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, fvMesh > &iF) const
Construct and return a clone setting internal field reference.
A class for managing temporary objects.
Definition: tmp.H:55
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Namespace for OpenFOAM.