1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::totalTemperatureFvPatchScalarField
28 Total temperature boundary condition. The snGrad is set to zero to stop
32 totalTemperatureFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef totalTemperatureFvPatchScalarField_H
37 #define totalTemperatureFvPatchScalarField_H
39 #include "fixedValueFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class totalTemperatureFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
50 class totalTemperatureFvPatchScalarField
52 public fixedValueFvPatchScalarField
56 //- Name of the velocity field
59 //- Name of the flux transporting the field
62 //- Name of the compressibility field used to calculate the wave speed
65 //- Heat capacity ratio
74 //- Runtime type information
75 TypeName("totalTemperature");
80 //- Construct from patch and internal field
81 totalTemperatureFvPatchScalarField
84 const DimensionedField<scalar, volMesh>&
87 //- Construct from patch, internal field and dictionary
88 totalTemperatureFvPatchScalarField
91 const DimensionedField<scalar, volMesh>&,
95 //- Construct by mapping given totalTemperatureFvPatchScalarField
97 totalTemperatureFvPatchScalarField
99 const totalTemperatureFvPatchScalarField&,
101 const DimensionedField<scalar, volMesh>&,
102 const fvPatchFieldMapper&
105 //- Construct as copy
106 totalTemperatureFvPatchScalarField
108 const totalTemperatureFvPatchScalarField&
111 //- Construct and return a clone
112 virtual tmp<fvPatchScalarField> clone() const
114 return tmp<fvPatchScalarField>
116 new totalTemperatureFvPatchScalarField(*this)
120 //- Construct as copy setting internal field reference
121 totalTemperatureFvPatchScalarField
123 const totalTemperatureFvPatchScalarField&,
124 const DimensionedField<scalar, volMesh>&
127 //- Construct and return a clone setting internal field reference
128 virtual tmp<fvPatchScalarField> clone
130 const DimensionedField<scalar, volMesh>& iF
133 return tmp<fvPatchScalarField>
135 new totalTemperatureFvPatchScalarField(*this, iF)
144 //- Return the name of the velocity field
145 const word& UName() const
150 //- Return the total pressure
151 const scalarField& T0() const
156 //- Return reference to the total pressure to allow adjustment
165 //- Map (and resize as needed) from self given a mapping object
168 const fvPatchFieldMapper&
171 //- Reverse map the given fvPatchField onto this fvPatchField
174 const fvPatchScalarField&,
179 // Evaluation functions
181 //- Update the coefficients associated with the patch field
182 virtual void updateCoeffs();
184 //- Return patch-normal gradient: set to zero
185 virtual tmp<scalarField> snGrad() const;
187 //- Return the matrix diagonal coefficients corresponding to the
188 // evaluation of the gradient of this patchField
189 // Removed gradient contribution
190 virtual tmp<scalarField> gradientInternalCoeffs() const;
192 //- Return the matrix source coefficients corresponding to the
193 // evaluation of the gradient of this patchField
194 virtual tmp<scalarField> gradientBoundaryCoeffs() const;
198 virtual void write(Ostream&) const;
202 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
204 } // End namespace Foam
206 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
210 // ************************************************************************* //