1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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 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
25 \*---------------------------------------------------------------------------*/
27 #ifndef inviscidWallPFvPatchScalarFields_H
28 #define inviscidWallPFvPatchScalarFields_H
30 #include "fvPatchFields.H"
31 #include "fixedGradientFvPatchFields.H"
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 /*---------------------------------------------------------------------------*\
39 Class inviscidWallPFvPatch Declaration
40 \*---------------------------------------------------------------------------*/
42 class inviscidWallPFvPatchScalarField
44 public fixedGradientFvPatchScalarField
53 //- Runtime type information
54 TypeName("inviscidWallP");
59 //- Construct from patch and internal field
60 inviscidWallPFvPatchScalarField
63 const DimensionedField<scalar, volMesh>&
66 //- Construct from patch, internal field and dictionary
67 inviscidWallPFvPatchScalarField
70 const DimensionedField<scalar, volMesh>&,
74 //- Construct by mapping given inviscidWallPFvPatchScalarField onto
76 inviscidWallPFvPatchScalarField
78 const inviscidWallPFvPatchScalarField&,
80 const DimensionedField<scalar, volMesh>&,
81 const fvPatchFieldMapper&
85 inviscidWallPFvPatchScalarField
87 const inviscidWallPFvPatchScalarField&
90 //- Construct and return a clone
91 virtual tmp<fvPatchScalarField> clone() const
93 return tmp<fvPatchScalarField>
95 new inviscidWallPFvPatchScalarField(*this)
99 //- Construct as copy setting internal field reference
100 inviscidWallPFvPatchScalarField
102 const inviscidWallPFvPatchScalarField&,
103 const DimensionedField<scalar, volMesh>&
106 //- Construct and return a clone setting internal field reference
107 virtual tmp<fvPatchScalarField> clone
109 const DimensionedField<scalar, volMesh>& iF
112 return tmp<fvPatchScalarField>
114 new inviscidWallPFvPatchScalarField(*this, iF)
121 //- Update the coefficients associated with the patch field
122 virtual void updateCoeffs();
125 virtual void write(Ostream&) const;
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace Foam
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 // ************************************************************************* //