1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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 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::pressureDirectedInletVelocityFvPatchVectorField
29 Foam::pressureDirectedInletOutletVelocityFvPatchVectorField
32 pressureDirectedInletVelocityFvPatchVectorField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef pressureDirectedInletVelocityFvPatchVectorField_H
37 #define pressureDirectedInletVelocityFvPatchVectorField_H
39 #include "fvPatchFields.H"
40 #include "fixedValueFvPatchFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class pressureDirectedInletVelocityFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class pressureDirectedInletVelocityFvPatchVectorField
53 public fixedValueFvPatchVectorField
57 vectorField inletDir_;
62 //- Runtime type information
63 TypeName("pressureDirectedInletVelocity");
68 //- Construct from patch and internal field
69 pressureDirectedInletVelocityFvPatchVectorField
72 const DimensionedField<vector, volMesh>&
75 //- Construct from patch, internal field and dictionary
76 pressureDirectedInletVelocityFvPatchVectorField
79 const DimensionedField<vector, volMesh>&,
83 //- Construct by mapping given
84 // pressureDirectedInletVelocityFvPatchVectorField
86 pressureDirectedInletVelocityFvPatchVectorField
88 const pressureDirectedInletVelocityFvPatchVectorField&,
90 const DimensionedField<vector, volMesh>&,
91 const fvPatchFieldMapper&
95 pressureDirectedInletVelocityFvPatchVectorField
97 const pressureDirectedInletVelocityFvPatchVectorField&
100 //- Construct and return a clone
101 virtual tmp<fvPatchVectorField> clone() const
103 return tmp<fvPatchVectorField>
105 new pressureDirectedInletVelocityFvPatchVectorField(*this)
109 //- Construct as copy setting internal field reference
110 pressureDirectedInletVelocityFvPatchVectorField
112 const pressureDirectedInletVelocityFvPatchVectorField&,
113 const DimensionedField<vector, volMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<fvPatchVectorField> clone
119 const DimensionedField<vector, volMesh>& iF
122 return tmp<fvPatchVectorField>
124 new pressureDirectedInletVelocityFvPatchVectorField
138 //- Map (and resize as needed) from self given a mapping object
141 const fvPatchFieldMapper&
144 //- Reverse map the given fvPatchField onto this fvPatchField
147 const fvPatchVectorField&,
152 //- Update the coefficients associated with the patch field
153 virtual void updateCoeffs();
156 virtual void write(Ostream&) const;
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 } // End namespace Foam
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 // ************************************************************************* //