1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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 adjointOutletVelocityFvPatchVectorField
30 adjointOutletVelocityFvPatchVectorField.C
32 \*---------------------------------------------------------------------------*/
34 #ifndef adjointOutletVelocityFvPatchVectorField_H
35 #define adjointOutletVelocityFvPatchVectorField_H
37 #include "fixedValueFvPatchFields.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 /*---------------------------------------------------------------------------*\
45 Class adjointOutletVelocityFvPatch Declaration
46 \*---------------------------------------------------------------------------*/
48 class adjointOutletVelocityFvPatchVectorField
50 public fixedValueFvPatchVectorField
55 //- Runtime type information
56 TypeName("adjointOutletVelocity");
61 //- Construct from patch and internal field
62 adjointOutletVelocityFvPatchVectorField
65 const DimensionedField<vector, volMesh>&
68 //- Construct from patch, internal field and dictionary
69 adjointOutletVelocityFvPatchVectorField
72 const DimensionedField<vector, volMesh>&,
76 //- Construct by mapping given adjointOutletVelocityFvPatchVectorField
78 adjointOutletVelocityFvPatchVectorField
80 const adjointOutletVelocityFvPatchVectorField&,
82 const DimensionedField<vector, volMesh>&,
83 const fvPatchFieldMapper&
86 //- Construct and return a clone
87 virtual tmp<fvPatchVectorField> clone() const
89 return tmp<fvPatchVectorField>
91 new adjointOutletVelocityFvPatchVectorField(*this)
95 //- Construct as copy setting internal field reference
96 adjointOutletVelocityFvPatchVectorField
98 const adjointOutletVelocityFvPatchVectorField&,
99 const DimensionedField<vector, volMesh>&
102 //- Construct and return a clone setting internal field reference
103 virtual tmp<fvPatchVectorField> clone
105 const DimensionedField<vector, volMesh>& iF
108 return tmp<fvPatchVectorField>
110 new adjointOutletVelocityFvPatchVectorField(*this, iF)
117 //- Update the coefficients associated with the patch field
118 virtual void updateCoeffs();
121 virtual void write(Ostream&) const;
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 } // End namespace Foam
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 // ************************************************************************* //