1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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
26 Foam::fixedInternalValueFvPatchField
29 Boundary condition providing mechanism to set boundary (cell) values
30 directly into a matrix, i.e. to set a constraint condition. Default
31 behaviour is to act as a zero gradient condition.
34 fixedInternalValueFvPatchField.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef fixedInternalValueFvPatchField_H
39 #define fixedInternalValueFvPatchField_H
41 #include "zeroGradientFvPatchField.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class fixedInternalValueFvPatchField Declaration
50 \*---------------------------------------------------------------------------*/
53 class fixedInternalValueFvPatchField
55 public zeroGradientFvPatchField<Type>
60 //- Runtime type information
61 TypeName("fixedInternalValue");
66 //- Construct from patch and internal field
67 fixedInternalValueFvPatchField
70 const DimensionedField<Type, volMesh>&
73 //- Construct from patch, internal field and dictionary
74 fixedInternalValueFvPatchField
77 const DimensionedField<Type, volMesh>&,
81 //- Construct by mapping the given fixedInternalValueFvPatchField<Type>
83 fixedInternalValueFvPatchField
85 const fixedInternalValueFvPatchField<Type>&,
87 const DimensionedField<Type, volMesh>&,
88 const fvPatchFieldMapper&
92 fixedInternalValueFvPatchField
94 const fixedInternalValueFvPatchField<Type>&
97 //- Construct and return a clone
98 virtual tmp<fvPatchField<Type> > clone() const
100 return tmp<fvPatchField<Type> >
102 new fixedInternalValueFvPatchField<Type>(*this)
106 //- Construct as copy setting internal field reference
107 fixedInternalValueFvPatchField
109 const fixedInternalValueFvPatchField<Type>&,
110 const DimensionedField<Type, volMesh>&
113 //- Construct and return a clone setting internal field reference
114 virtual tmp<fvPatchField<Type> > clone
116 const DimensionedField<Type, volMesh>& iF
119 return tmp<fvPatchField<Type> >
121 new fixedInternalValueFvPatchField<Type>(*this, iF)
128 // Evaluation functions
130 //-Manipulate a matrix
131 virtual void manipulateMatrix(fvMatrix<Type>& matrix);
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 } // End namespace Foam
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 # include "fixedInternalValueFvPatchField.C"
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //