1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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::dynamicAlphaContactAngleFvPatchScalarField
29 A dynamic alphaContactAngle scalar boundary condition
30 (alphaContactAngleFvPatchScalarField)
33 dynamicAlphaContactAngleFvPatchScalarField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef dynamicAlphaContactAngleFvPatchScalarField_H
38 #define dynamicAlphaContactAngleFvPatchScalarField_H
40 #include "alphaContactAngleFvPatchScalarField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class dynamicAlphaContactAngleFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class dynamicAlphaContactAngleFvPatchScalarField
53 public alphaContactAngleFvPatchScalarField
57 //- Equilibrium contact angle
60 //- Dynamic contact angle velocity scale
63 //- Limiting advancing contact angle
66 //- Limiting receeding contact angle
72 //- Runtime type information
73 TypeName("dynamicAlphaContactAngle");
78 //- Construct from patch and internal field
79 dynamicAlphaContactAngleFvPatchScalarField
82 const DimensionedField<scalar, volMesh>&
85 //- Construct from patch, internal field and dictionary
86 dynamicAlphaContactAngleFvPatchScalarField
89 const DimensionedField<scalar, volMesh>&,
93 //- Construct by mapping given
94 // dynamicAlphaContactAngleFvPatchScalarField
96 dynamicAlphaContactAngleFvPatchScalarField
98 const dynamicAlphaContactAngleFvPatchScalarField&,
100 const DimensionedField<scalar, volMesh>&,
101 const fvPatchFieldMapper&
104 //- Construct as copy
105 dynamicAlphaContactAngleFvPatchScalarField
107 const dynamicAlphaContactAngleFvPatchScalarField&
110 //- Construct and return a clone
111 virtual tmp<fvPatchScalarField> clone() const
113 return tmp<fvPatchScalarField>
115 new dynamicAlphaContactAngleFvPatchScalarField(*this)
119 //- Construct as copy setting internal field reference
120 dynamicAlphaContactAngleFvPatchScalarField
122 const dynamicAlphaContactAngleFvPatchScalarField&,
123 const DimensionedField<scalar, volMesh>&
126 //- Construct and return a clone setting internal field reference
127 virtual tmp<fvPatchScalarField> clone
129 const DimensionedField<scalar, volMesh>& iF
132 return tmp<fvPatchScalarField>
134 new dynamicAlphaContactAngleFvPatchScalarField(*this, iF)
141 //- Evaluate and return dynamic contact-angle
142 virtual tmp<scalarField> theta
144 const fvPatchVectorField& Up,
145 const fvsPatchVectorField& nHat
149 virtual void write(Ostream&) const;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 // ************************************************************************* //