1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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 adjointOutletPressureFvPatchScalarField
30 adjointOutletPressureFvPatchScalarField.C
32 \*---------------------------------------------------------------------------*/
34 #ifndef adjointOutletPressureFvPatchScalarField_H
35 #define adjointOutletPressureFvPatchScalarField_H
37 #include "fixedValueFvPatchFields.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 /*---------------------------------------------------------------------------*\
45 Class adjointOutletPressureFvPatch Declaration
46 \*---------------------------------------------------------------------------*/
48 class adjointOutletPressureFvPatchScalarField
50 public fixedValueFvPatchScalarField
55 //- Runtime type information
56 TypeName("adjointOutletPressure");
61 //- Construct from patch and internal field
62 adjointOutletPressureFvPatchScalarField
65 const DimensionedField<scalar, volMesh>&
68 //- Construct from patch, internal field and dictionary
69 adjointOutletPressureFvPatchScalarField
72 const DimensionedField<scalar, volMesh>&,
76 //- Construct by mapping given adjointOutletPressureFvPatchScalarField
78 adjointOutletPressureFvPatchScalarField
80 const adjointOutletPressureFvPatchScalarField&,
82 const DimensionedField<scalar, volMesh>&,
83 const fvPatchFieldMapper&
86 //- Construct and return a clone
87 virtual tmp<fvPatchScalarField> clone() const
89 return tmp<fvPatchScalarField>
91 new adjointOutletPressureFvPatchScalarField(*this)
95 //- Construct as copy setting internal field reference
96 adjointOutletPressureFvPatchScalarField
98 const adjointOutletPressureFvPatchScalarField&,
99 const DimensionedField<scalar, volMesh>&
102 //- Construct and return a clone setting internal field reference
103 virtual tmp<fvPatchScalarField> clone
105 const DimensionedField<scalar, volMesh>& iF
108 return tmp<fvPatchScalarField>
110 new adjointOutletPressureFvPatchScalarField(*this, iF)
117 // Evaluation functions
119 //- Update the coefficients associated with the patch field
120 virtual void updateCoeffs();
124 virtual void write(Ostream&) const;
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 } // End namespace Foam
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 // ************************************************************************* //