1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-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 Foam::constantAlphaContactAngleFvPatchScalarField
28 A constant alphaContactAngle scalar boundary condition
29 (alphaContactAngleFvPatchScalarField)
32 constantAlphaContactAngleFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef constantAlphaContactAngleFvPatchScalarField_H
37 #define constantAlphaContactAngleFvPatchScalarField_H
39 #include "alphaContactAngleFvPatchScalarField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class constantAlphaContactAngleFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
50 class constantAlphaContactAngleFvPatchScalarField
52 public alphaContactAngleFvPatchScalarField
56 //- Equilibrium contact angle
62 //- Runtime type information
63 TypeName("constantAlphaContactAngle");
68 //- Construct from patch and internal field
69 constantAlphaContactAngleFvPatchScalarField
72 const DimensionedField<scalar, volMesh>&
75 //- Construct from patch, internal field and dictionary
76 constantAlphaContactAngleFvPatchScalarField
79 const DimensionedField<scalar, volMesh>&,
83 //- Construct by mapping given
84 // constantAlphaContactAngleFvPatchScalarField
86 constantAlphaContactAngleFvPatchScalarField
88 const constantAlphaContactAngleFvPatchScalarField&,
90 const DimensionedField<scalar, volMesh>&,
91 const fvPatchFieldMapper&
95 constantAlphaContactAngleFvPatchScalarField
97 const constantAlphaContactAngleFvPatchScalarField&
100 //- Construct and return a clone
101 virtual tmp<fvPatchScalarField> clone() const
103 return tmp<fvPatchScalarField>
105 new constantAlphaContactAngleFvPatchScalarField(*this)
109 //- Construct as copy setting internal field reference
110 constantAlphaContactAngleFvPatchScalarField
112 const constantAlphaContactAngleFvPatchScalarField&,
113 const DimensionedField<scalar, volMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<fvPatchScalarField> clone
119 const DimensionedField<scalar, volMesh>& iF
122 return tmp<fvPatchScalarField>
124 new constantAlphaContactAngleFvPatchScalarField(*this, iF)
131 //- Return the equilibrium contact-angle
132 virtual tmp<scalarField> theta
134 const fvPatchVectorField& Up,
135 const fvsPatchVectorField& nHat
139 virtual void write(Ostream&) const;
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 } // End namespace Foam
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 // ************************************************************************* //