OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

gradientRhoFvPatchScalarField.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #ifndef gradientRhoFvPatchScalarFields_H
00028 #define gradientRhoFvPatchScalarFields_H
00029 
00030 #include "fvPatchFields.H"
00031 #include "fixedGradientFvPatchFields.H"
00032 
00033 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00034 
00035 namespace Foam
00036 {
00037 
00038 /*---------------------------------------------------------------------------*\
00039                            Class gradientRhoFvPatch Declaration
00040 \*---------------------------------------------------------------------------*/
00041 
00042 class gradientRhoFvPatchScalarField
00043 :
00044     public fixedGradientFvPatchScalarField
00045 {
00046 
00047 public:
00048 
00049     //- Runtime type information
00050     TypeName("gradientRho");
00051 
00052 
00053     // Constructors
00054 
00055         //- Construct from patch and internal field
00056         gradientRhoFvPatchScalarField
00057         (
00058             const fvPatch&,
00059             const DimensionedField<scalar, volMesh>&
00060         );
00061 
00062         //- Construct from patch, internal field and dictionary
00063         gradientRhoFvPatchScalarField
00064         (
00065             const fvPatch&,
00066             const DimensionedField<scalar, volMesh>&,
00067             const dictionary&
00068         );
00069 
00070         //- Construct by mapping given gradientRhoFvPatchScalarField onto
00071         //  a new patch
00072         gradientRhoFvPatchScalarField
00073         (
00074             const gradientRhoFvPatchScalarField&,
00075             const fvPatch&,
00076             const DimensionedField<scalar, volMesh>&,
00077             const fvPatchFieldMapper&
00078         );
00079 
00080         //- Construct as copy
00081         gradientRhoFvPatchScalarField
00082         (
00083             const gradientRhoFvPatchScalarField&x
00084         );
00085 
00086         //- Construct and return a clone
00087         virtual tmp<fvPatchScalarField> clone() const
00088         {
00089             return tmp<fvPatchScalarField>
00090             (
00091                 new gradientRhoFvPatchScalarField(*this)
00092             );
00093         }
00094 
00095         //- Construct as copy setting internal field reference
00096         gradientRhoFvPatchScalarField
00097         (
00098             const gradientRhoFvPatchScalarField&,
00099             const DimensionedField<scalar, volMesh>&
00100         );
00101 
00102         //- Construct and return a clone setting internal field reference
00103         virtual tmp<fvPatchScalarField> clone
00104         (
00105             const DimensionedField<scalar, volMesh>& iF
00106         ) const
00107         {
00108             return tmp<fvPatchScalarField>
00109             (
00110                 new gradientRhoFvPatchScalarField(*this, iF)
00111             );
00112         }
00113 
00114 
00115     // Member functions
00116 
00117         //- Update the coefficients associated with the patch field
00118         virtual void updateCoeffs();
00119 
00120         //- Write
00121         virtual void write(Ostream&) const;
00122 };
00123 
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 } // End namespace Foam
00128 
00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00130 
00131 #endif
00132 
00133 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd