1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::totalTemperatureFvPatchScalarField
29 Foam::totalTemperatureFvPatchScalarField
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();
186 virtual void write(Ostream&) const;
190 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192 } // End namespace Foam
194 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
198 // ************************************************************************* //