mixedEnergyFvPatchScalarField.H
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) 2011-2017 OpenFOAM Foundation
9  Copyright (C) 2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::mixedEnergyFvPatchScalarField
29 
30 Group
31  grpThermoBoundaryConditions
32 
33 Description
34  This boundary condition provides a mixed condition for internal energy
35 
36 See also
37  Foam::mixedFvPatchField
38 
39 SourceFiles
40  mixedEnergyFvPatchScalarField.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef mixedEnergyFvPatchScalarField_H
45 #define mixedEnergyFvPatchScalarField_H
46 
47 #include "mixedFvPatchFields.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class mixedEnergyFvPatchScalarField Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public mixedFvPatchScalarField
61 {
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("mixedEnergy");
67 
68 
69  // Constructors
70 
71  //- Construct from patch and internal field
73  (
74  const fvPatch&,
76  );
77 
78  //- Construct from patch, internal field and dictionary
80  (
81  const fvPatch&,
83  const dictionary&
84  );
85 
86  //- Construct by mapping given mixedEnergyFvPatchScalarField
87  // onto a new patch
89  (
91  const fvPatch&,
93  const fvPatchFieldMapper&
94  );
95 
96  //- Construct as copy
98  (
100  );
101 
102  //- Construct as copy setting internal field reference
104  (
107  );
108 
109  //- Return a clone
110  virtual tmp<fvPatchField<scalar>> clone() const
111  {
112  return fvPatchField<scalar>::Clone(*this);
113  }
114 
115  //- Clone with an internal field reference
117  (
119  ) const
120  {
121  return fvPatchField<scalar>::Clone(*this, iF);
122  }
123 
124 
125  // Member functions
126 
127  // Access
128 
129  //- Allow manipulation of the boundary values
130  virtual bool fixesValue() const
131  {
132  return false;
133  }
134 
135 
136  // Evaluation functions
137 
138  //- Update the coefficients associated with the patch field
139  virtual void updateCoeffs();
140 
141  //- Manipulate matrix
142  virtual void manipulateMatrix
143  (
145  const label iMatrix,
146  const direction cmpt
147  );
148 };
149 
150 
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 
153 } // End namespace Foam
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 #endif
158 
159 // ************************************************************************* //
uint8_t direction
Definition: direction.H:46
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:70
mixedEnergyFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
Definition: fvPatchField.H:597
TypeName("mixedEnergy")
Runtime type information.
A FieldMapper for finite-volume patch fields.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
Definition: fvPatchField.H:64
virtual bool fixesValue() const
Allow manipulation of the boundary values.
virtual void manipulateMatrix(fvMatrix< scalar > &m, const label iMatrix, const direction cmpt)
Manipulate matrix.
This boundary condition provides a mixed condition for internal energy.
virtual tmp< fvPatchField< scalar > > clone() const
Return a clone.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.