1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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::timeVaryingGammaContactAngleFvPatchScalarField
29 A time-varying gammaContactAngle scalar boundary condition
30 (gammaContactAngleFvPatchScalarField)
33 timeVaryingGammaContactAngleFvPatchScalarField.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef timeVaryingGammaContactAngleFvPatchScalarField_H
38 #define timeVaryingGammaContactAngleFvPatchScalarField_H
40 #include "gammaContactAngleFvPatchScalarField.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class timeVaryingGammaContactAngleFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class timeVaryingGammaContactAngleFvPatchScalarField
53 public gammaContactAngleFvPatchScalarField
57 // Equilibrium contact angle control parameters
66 //- Runtime type information
67 TypeName("timeVaryingGammaContactAngle");
72 //- Construct from patch and internal field
73 timeVaryingGammaContactAngleFvPatchScalarField
76 const DimensionedField<scalar, volMesh>&
79 //- Construct from patch, internal field and dictionary
80 timeVaryingGammaContactAngleFvPatchScalarField
83 const DimensionedField<scalar, volMesh>&,
87 //- Construct by mapping given timeVaryingGammaContactAngleFvPatchScalarField
89 timeVaryingGammaContactAngleFvPatchScalarField
91 const timeVaryingGammaContactAngleFvPatchScalarField&,
93 const DimensionedField<scalar, volMesh>&,
94 const fvPatchFieldMapper&
97 //- Construct and return a clone
98 virtual tmp<fvPatchScalarField> clone() const
100 return tmp<fvPatchScalarField>
102 new timeVaryingGammaContactAngleFvPatchScalarField(*this)
106 //- Construct as copy setting internal field reference
107 timeVaryingGammaContactAngleFvPatchScalarField
109 const timeVaryingGammaContactAngleFvPatchScalarField&,
110 const DimensionedField<scalar, volMesh>&
113 //- Construct and return a clone setting internal field reference
114 virtual tmp<fvPatchScalarField> clone
116 const DimensionedField<scalar, volMesh>& iF
119 return tmp<fvPatchScalarField>
121 new timeVaryingGammaContactAngleFvPatchScalarField(*this, iF)
128 //- Evaluate and return the time-varying equilibrium contact-angle
129 virtual tmp<scalarField> theta
131 const fvPatchVectorField& Up,
132 const fvsPatchVectorField& nHat
136 virtual void write(Ostream&) const;
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 } // End namespace Foam
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 // ************************************************************************* //