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

inviscidWallPFvPatchScalarField.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 inviscidWallPFvPatchScalarFields_H
00028 #define inviscidWallPFvPatchScalarFields_H
00029 
00030 #include "fvPatchFields.H"
00031 #include "fixedGradientFvPatchFields.H"
00032 
00033 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00034 
00035 namespace Foam
00036 {
00037 
00038 /*---------------------------------------------------------------------------*\
00039                            Class inviscidWallPFvPatch Declaration
00040 \*---------------------------------------------------------------------------*/
00041 
00042 class inviscidWallPFvPatchScalarField
00043 :
00044     public fixedGradientFvPatchScalarField
00045 {
00046 
00047 public:
00048 
00049     // Private data
00050 
00051     scalar fluxFraction_;
00052 
00053     //- Runtime type information
00054     TypeName("inviscidWallP");
00055 
00056 
00057     // Constructors
00058 
00059         //- Construct from patch and internal field
00060         inviscidWallPFvPatchScalarField
00061         (
00062             const fvPatch&,
00063             const DimensionedField<scalar, volMesh>&
00064         );
00065 
00066         //- Construct from patch, internal field and dictionary
00067         inviscidWallPFvPatchScalarField
00068         (
00069             const fvPatch&,
00070             const DimensionedField<scalar, volMesh>&,
00071             const dictionary&
00072         );
00073 
00074         //- Construct by mapping given inviscidWallPFvPatchScalarField onto
00075         //  a new patch
00076         inviscidWallPFvPatchScalarField
00077         (
00078             const inviscidWallPFvPatchScalarField&,
00079             const fvPatch&,
00080             const DimensionedField<scalar, volMesh>&,
00081             const fvPatchFieldMapper&
00082         );
00083 
00084         //- Construct as copy
00085         inviscidWallPFvPatchScalarField
00086         (
00087             const inviscidWallPFvPatchScalarField&
00088         );
00089 
00090         //- Construct and return a clone
00091         virtual tmp<fvPatchScalarField> clone() const
00092         {
00093             return tmp<fvPatchScalarField>
00094             (
00095                 new inviscidWallPFvPatchScalarField(*this)
00096             );
00097         }
00098 
00099         //- Construct as copy setting internal field reference
00100         inviscidWallPFvPatchScalarField
00101         (
00102             const inviscidWallPFvPatchScalarField&,
00103             const DimensionedField<scalar, volMesh>&
00104         );
00105 
00106         //- Construct and return a clone setting internal field reference
00107         virtual tmp<fvPatchScalarField> clone
00108         (
00109             const DimensionedField<scalar, volMesh>& iF
00110         ) const
00111         {
00112             return tmp<fvPatchScalarField>
00113             (
00114                 new inviscidWallPFvPatchScalarField(*this, iF)
00115             );
00116         }
00117 
00118 
00119     // Member functions
00120 
00121         //- Update the coefficients associated with the patch field
00122         virtual void updateCoeffs();
00123 
00124         //- Write
00125         virtual void write(Ostream&) const;
00126 };
00127 
00128 
00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00130 
00131 } // End namespace Foam
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 #endif
00136 
00137 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd