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

fixedInternalValueFvPatchField.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 Class
00026     Foam::fixedInternalValueFvPatchField
00027 
00028 Description
00029     Boundary condition providing mechanism to set boundary (cell) values
00030     directly into a matrix, i.e. to set a constraint condition. Default
00031     behaviour is to act as a zero gradient condition.
00032 
00033 SourceFiles
00034     fixedInternalValueFvPatchField.C
00035 
00036 \*---------------------------------------------------------------------------*/
00037 
00038 #ifndef fixedInternalValueFvPatchField_H
00039 #define fixedInternalValueFvPatchField_H
00040 
00041 #include "zeroGradientFvPatchField.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049               Class fixedInternalValueFvPatchField Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 template<class Type>
00053 class fixedInternalValueFvPatchField
00054 :
00055     public zeroGradientFvPatchField<Type>
00056 {
00057 
00058 public:
00059 
00060     //- Runtime type information
00061     TypeName("fixedInternalValue");
00062 
00063 
00064     // Constructors
00065 
00066         //- Construct from patch and internal field
00067         fixedInternalValueFvPatchField
00068         (
00069             const fvPatch&,
00070             const DimensionedField<Type, volMesh>&
00071         );
00072 
00073         //- Construct from patch, internal field and dictionary
00074         fixedInternalValueFvPatchField
00075         (
00076             const fvPatch&,
00077             const DimensionedField<Type, volMesh>&,
00078             const dictionary&
00079         );
00080 
00081         //- Construct by mapping the given fixedInternalValueFvPatchField<Type>
00082         //  onto a new patch
00083         fixedInternalValueFvPatchField
00084         (
00085             const fixedInternalValueFvPatchField<Type>&,
00086             const fvPatch&,
00087             const DimensionedField<Type, volMesh>&,
00088             const fvPatchFieldMapper&
00089         );
00090 
00091         //- Construct as copy
00092         fixedInternalValueFvPatchField
00093         (
00094             const fixedInternalValueFvPatchField<Type>&
00095         );
00096 
00097         //- Construct and return a clone
00098         virtual tmp<fvPatchField<Type> > clone() const
00099         {
00100             return tmp<fvPatchField<Type> >
00101             (
00102                 new fixedInternalValueFvPatchField<Type>(*this)
00103             );
00104         }
00105 
00106         //- Construct as copy setting internal field reference
00107         fixedInternalValueFvPatchField
00108         (
00109             const fixedInternalValueFvPatchField<Type>&,
00110             const DimensionedField<Type, volMesh>&
00111         );
00112 
00113         //- Construct and return a clone setting internal field reference
00114         virtual tmp<fvPatchField<Type> > clone
00115         (
00116             const DimensionedField<Type, volMesh>& iF
00117         ) const
00118         {
00119             return tmp<fvPatchField<Type> >
00120             (
00121                 new fixedInternalValueFvPatchField<Type>(*this, iF)
00122             );
00123         }
00124 
00125 
00126     // Member functions
00127 
00128         // Evaluation functions
00129 
00130             //-Manipulate a matrix
00131             virtual void manipulateMatrix(fvMatrix<Type>& matrix);
00132 };
00133 
00134 
00135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00136 
00137 } // End namespace Foam
00138 
00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00140 
00141 #ifdef NoRepository
00142 #   include "fixedInternalValueFvPatchField.C"
00143 #endif
00144 
00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00146 
00147 #endif
00148 
00149 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd