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 Foam::alphaFixedPressureFvPatchScalarField
28 A fixed-pressure alphaContactAngle boundary
31 alphaFixedPressureFvPatchScalarField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef alphaFixedPressureFvPatchScalarField_H
36 #define alphaFixedPressureFvPatchScalarField_H
38 #include "fixedValueFvPatchFields.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class alphaFixedPressureFvPatch Declaration
47 \*---------------------------------------------------------------------------*/
49 class alphaFixedPressureFvPatchScalarField
51 public fixedValueFvPatchScalarField
61 //- Runtime type information
62 TypeName("alphaFixedPressure");
67 //- Construct from patch and internal field
68 alphaFixedPressureFvPatchScalarField
71 const DimensionedField<scalar, volMesh>&
74 //- Construct from patch, internal field and dictionary
75 alphaFixedPressureFvPatchScalarField
78 const DimensionedField<scalar, volMesh>&,
82 //- Construct by mapping given alphaFixedPressureFvPatchScalarField
84 alphaFixedPressureFvPatchScalarField
86 const alphaFixedPressureFvPatchScalarField&,
88 const DimensionedField<scalar, volMesh>&,
89 const fvPatchFieldMapper&
93 alphaFixedPressureFvPatchScalarField
95 const alphaFixedPressureFvPatchScalarField&
98 //- Construct and return a clone
99 virtual tmp<fvPatchScalarField> clone() const
101 return tmp<fvPatchScalarField>
103 new alphaFixedPressureFvPatchScalarField(*this)
107 //- Construct as copy setting internal field reference
108 alphaFixedPressureFvPatchScalarField
110 const alphaFixedPressureFvPatchScalarField&,
111 const DimensionedField<scalar, volMesh>&
114 //- Construct and return a clone setting internal field reference
115 virtual tmp<fvPatchScalarField> clone
117 const DimensionedField<scalar, volMesh>& iF
120 return tmp<fvPatchScalarField>
122 new alphaFixedPressureFvPatchScalarField(*this, iF)
131 //- Return the alphaFixed pressure
132 const scalarField& p() const
137 //- Return reference to the alphaFixed pressure to allow adjustment
146 //- Map (and resize as needed) from self given a mapping object
149 const fvPatchFieldMapper&
152 //- Reverse map the given fvPatchField onto this fvPatchField
155 const fvPatchScalarField&,
160 // Evaluation functions
162 //- Update the coefficients associated with the patch field
163 virtual void updateCoeffs();
167 virtual void write(Ostream&) const;
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 } // End namespace Foam
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 // ************************************************************************* //