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::inletOutletTotalTemperatureFvPatchScalarField
29 Foam::inletOutletTotalTemperatureFvPatchScalarField
32 inletOutletTotalTemperatureFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef inletOutletTotalTemperatureFvPatchScalarField_H
37 #define inletOutletTotalTemperatureFvPatchScalarField_H
39 #include "mixedFvPatchFields.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class inletOutletTotalTemperatureFvPatchField Declaration
48 \*---------------------------------------------------------------------------*/
50 class inletOutletTotalTemperatureFvPatchScalarField
52 public mixedFvPatchScalarField
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("inletOutletTotalTemperature");
80 //- Construct from patch and internal field
81 inletOutletTotalTemperatureFvPatchScalarField
84 const DimensionedField<scalar, volMesh>&
87 //- Construct from patch, internal field and dictionary
88 inletOutletTotalTemperatureFvPatchScalarField
91 const DimensionedField<scalar, volMesh>&,
95 //- Construct by mapping given
96 // inletOutletTotalTemperatureFvPatchScalarField onto a new patch
97 inletOutletTotalTemperatureFvPatchScalarField
99 const inletOutletTotalTemperatureFvPatchScalarField&,
101 const DimensionedField<scalar, volMesh>&,
102 const fvPatchFieldMapper&
105 //- Construct as copy
106 inletOutletTotalTemperatureFvPatchScalarField
108 const inletOutletTotalTemperatureFvPatchScalarField&
111 //- Construct and return a clone
112 virtual tmp<fvPatchScalarField> clone() const
114 return tmp<fvPatchScalarField>
116 new inletOutletTotalTemperatureFvPatchScalarField(*this)
120 //- Construct as copy setting internal field reference
121 inletOutletTotalTemperatureFvPatchScalarField
123 const inletOutletTotalTemperatureFvPatchScalarField&,
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 inletOutletTotalTemperatureFvPatchScalarField(*this, iF)
144 //- Return the total pressure
145 const scalarField& T0() const
150 //- Return reference to the total pressure to allow adjustment
159 //- Map (and resize as needed) from self given a mapping object
162 const fvPatchFieldMapper&
165 //- Reverse map the given fvPatchField onto this fvPatchField
168 const fvPatchScalarField&,
173 // Evaluation functions
175 //- Update the coefficients associated with the patch field
176 virtual void updateCoeffs();
180 virtual void write(Ostream&) const;
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 } // End namespace Foam
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192 // ************************************************************************* //