initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / compressible / rhopSonicFoam / BCs / rho / fixedRhoFvPatchScalarField.H
blobec452d7c96501326dc6a269c9fac9a3be70b1696
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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 fixedRhoFvPatchScalarField_H
28 #define fixedRhoFvPatchScalarField_H
30 #include "fixedValueFvPatchFields.H"
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 namespace Foam
37 /*---------------------------------------------------------------------------*\
38                            Class fixedRhoFvPatch Declaration
39 \*---------------------------------------------------------------------------*/
41 class fixedRhoFvPatchScalarField
43     public fixedValueFvPatchScalarField
46 public:
48     //- Runtime type information
49     TypeName("fixedRho");
52     // Constructors
54         //- Construct from patch and internal field
55         fixedRhoFvPatchScalarField
56         (
57             const fvPatch&,
58             const DimensionedField<scalar, volMesh>&
59         );
61         //- Construct from patch, internal field and dictionary
62         fixedRhoFvPatchScalarField
63         (
64             const fvPatch&,
65             const DimensionedField<scalar, volMesh>&,
66             const dictionary&
67         );
69         //- Construct by mapping given fixedRhoFvPatchScalarField
70         //  onto a new patch
71         fixedRhoFvPatchScalarField
72         (
73             const fixedRhoFvPatchScalarField&,
74             const fvPatch&,
75             const DimensionedField<scalar, volMesh>&,
76             const fvPatchFieldMapper&
77         );
79         //- Construct as copy
80         fixedRhoFvPatchScalarField
81         (
82             const fixedRhoFvPatchScalarField&
83         );
85         //- Construct and return a clone
86         virtual tmp<fvPatchScalarField> clone() const
87         {
88             return tmp<fvPatchScalarField>
89             (
90                 new fixedRhoFvPatchScalarField(*this)
91             );
92         }
94         //- Construct as copy setting internal field reference
95         fixedRhoFvPatchScalarField
96         (
97             const fixedRhoFvPatchScalarField&,
98             const DimensionedField<scalar, volMesh>&
99         );
101         //- Construct and return a clone setting internal field reference
102         virtual tmp<fvPatchScalarField> clone
103         (
104             const DimensionedField<scalar, volMesh>& iF
105         ) const
106         {
107             return tmp<fvPatchScalarField>
108             (
109                 new fixedRhoFvPatchScalarField(*this, iF)
110             );
111         }
114     // Member functions
116         // Access
118         // Evaluation functions
120             //- Update the coefficients associated with the patch field
121             virtual void updateCoeffs();
123             //- Write
124             virtual void write(Ostream&) const;
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 } // End namespace Foam
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 #endif
136 // ************************************************************************* //