1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::totalTemperatureFvPatchScalarField
28 Foam::totalTemperatureFvPatchScalarField
31 totalTemperatureFvPatchScalarField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef totalTemperatureFvPatchScalarField_H
36 #define totalTemperatureFvPatchScalarField_H
38 #include "fixedValueFvPatchFields.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class totalTemperatureFvPatch Declaration
47 \*---------------------------------------------------------------------------*/
49 class totalTemperatureFvPatchScalarField
51 public fixedValueFvPatchScalarField
55 //- Name of the velocity field
58 //- Name of the flux transporting the field
61 //- Name of the compressibility field used to calculate the wave speed
64 //- Heat capacity ratio
73 //- Runtime type information
74 TypeName("totalTemperature");
79 //- Construct from patch and internal field
80 totalTemperatureFvPatchScalarField
83 const DimensionedField<scalar, volMesh>&
86 //- Construct from patch, internal field and dictionary
87 totalTemperatureFvPatchScalarField
90 const DimensionedField<scalar, volMesh>&,
94 //- Construct by mapping given totalTemperatureFvPatchScalarField
96 totalTemperatureFvPatchScalarField
98 const totalTemperatureFvPatchScalarField&,
100 const DimensionedField<scalar, volMesh>&,
101 const fvPatchFieldMapper&
104 //- Construct as copy
105 totalTemperatureFvPatchScalarField
107 const totalTemperatureFvPatchScalarField&
110 //- Construct and return a clone
111 virtual tmp<fvPatchScalarField> clone() const
113 return tmp<fvPatchScalarField>
115 new totalTemperatureFvPatchScalarField(*this)
119 //- Construct as copy setting internal field reference
120 totalTemperatureFvPatchScalarField
122 const totalTemperatureFvPatchScalarField&,
123 const DimensionedField<scalar, volMesh>&
126 //- Construct and return a clone setting internal field reference
127 virtual tmp<fvPatchScalarField> clone
129 const DimensionedField<scalar, volMesh>& iF
132 return tmp<fvPatchScalarField>
134 new totalTemperatureFvPatchScalarField(*this, iF)
143 //- Return the total pressure
144 const scalarField& T0() const
149 //- Return reference to the total pressure to allow adjustment
158 //- Map (and resize as needed) from self given a mapping object
161 const fvPatchFieldMapper&
164 //- Reverse map the given fvPatchField onto this fvPatchField
167 const fvPatchScalarField&,
172 // Evaluation functions
174 //- Update the coefficients associated with the patch field
175 virtual void updateCoeffs();
179 virtual void write(Ostream&) const;
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 } // End namespace Foam
187 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
191 // ************************************************************************* //