1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::filmHeightInletVelocityFvPatchVectorField
28 Velocity inlet boundary condition for patches where the film height is
29 specified. The inflow velocity is obtained from the flux with a direction
30 normal to the patch faces.
33 filmHeightInletVelocityFvPatchVectorField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef filmHeightInletVelocityFvPatchVectorField_H
38 #define filmHeightInletVelocityFvPatchVectorField_H
40 #include "fvPatchFields.H"
41 #include "fixedValueFvPatchFields.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class filmHeightInletVelocityFvPatchVectorField Declaration
50 \*---------------------------------------------------------------------------*/
52 class filmHeightInletVelocityFvPatchVectorField
54 public fixedValueFvPatchVectorField
58 //- Name of flux field
61 //- Name of density field
64 //- Name of film height field
70 //- Runtime type information
71 TypeName("filmHeightInletVelocity");
76 //- Construct from patch and internal field
77 filmHeightInletVelocityFvPatchVectorField
80 const DimensionedField<vector, volMesh>&
83 //- Construct from patch, internal field and dictionary
84 filmHeightInletVelocityFvPatchVectorField
87 const DimensionedField<vector, volMesh>&,
91 //- Construct by mapping given filmHeightInletVelocityFvPatchVectorField
93 filmHeightInletVelocityFvPatchVectorField
95 const filmHeightInletVelocityFvPatchVectorField&,
97 const DimensionedField<vector, volMesh>&,
98 const fvPatchFieldMapper&
101 //- Construct as copy
102 filmHeightInletVelocityFvPatchVectorField
104 const filmHeightInletVelocityFvPatchVectorField&
107 //- Construct and return a clone
108 virtual tmp<fvPatchVectorField> clone() const
110 return tmp<fvPatchVectorField>
112 new filmHeightInletVelocityFvPatchVectorField(*this)
116 //- Construct as copy setting internal field reference
117 filmHeightInletVelocityFvPatchVectorField
119 const filmHeightInletVelocityFvPatchVectorField&,
120 const DimensionedField<vector, volMesh>&
123 //- Construct and return a clone setting internal field reference
124 virtual tmp<fvPatchVectorField> clone
126 const DimensionedField<vector, volMesh>& iF
129 return tmp<fvPatchVectorField>
131 new filmHeightInletVelocityFvPatchVectorField(*this, iF)
140 //- Return the name of phi
141 const word& phiName() const
146 //- Return reference to the name of phi to allow adjustment
152 //- Return the name of rho
153 const word& rhoName() const
158 //- Return reference to the name of rho to allow adjustment
164 //- Return the name of deltaf
165 const word& deltafName() const
170 //- Return reference to the name of df to allow adjustment
177 //- Update the coefficients associated with the patch field
178 virtual void updateCoeffs();
181 virtual void write(Ostream&) const;
186 virtual void operator=(const fvPatchField<vector>& pvf);
190 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192 } // End namespace Foam
194 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
198 // ************************************************************************* //