Hotfix: traslation bug fixes
[foam-extend-3.2.git] / src / transportModels / interfaceProperties / alphaContactAngle / dynamicAlphaContactAngle / dynamicAlphaContactAngleFvPatchScalarField.H
blob1c0dacd4aeb567280844050b89690a2b35879042
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend 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 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::dynamicAlphaContactAngleFvPatchScalarField
27 Description
28     A dynamic alphaContactAngle scalar boundary condition
29     (alphaContactAngleFvPatchScalarField)
31 SourceFiles
32     dynamicAlphaContactAngleFvPatchScalarField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef dynamicAlphaContactAngleFvPatchScalarField_H
37 #define dynamicAlphaContactAngleFvPatchScalarField_H
39 #include "alphaContactAngleFvPatchScalarField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 /*---------------------------------------------------------------------------*\
47                            Class dynamicAlphaContactAngleFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
50 class dynamicAlphaContactAngleFvPatchScalarField
52     public alphaContactAngleFvPatchScalarField
54     // Private data
56         //- Equilibrium contact angle
57         scalar theta0_;
59         //- Dynamic contact angle velocity scale
60         scalar uTheta_;
62         //- Limiting advancing contact angle
63         scalar thetaA_;
65         //- Limiting receeding contact angle
66         scalar thetaR_;
69 public:
71     //- Runtime type information
72     TypeName("dynamicAlphaContactAngle");
75     // Constructors
77         //- Construct from patch and internal field
78         dynamicAlphaContactAngleFvPatchScalarField
79         (
80             const fvPatch&,
81             const DimensionedField<scalar, volMesh>&
82         );
84         //- Construct from patch, internal field and dictionary
85         dynamicAlphaContactAngleFvPatchScalarField
86         (
87             const fvPatch&,
88             const DimensionedField<scalar, volMesh>&,
89             const dictionary&
90         );
92         //- Construct by mapping given
93         //  dynamicAlphaContactAngleFvPatchScalarField
94         //  onto a new patch
95         dynamicAlphaContactAngleFvPatchScalarField
96         (
97             const dynamicAlphaContactAngleFvPatchScalarField&,
98             const fvPatch&,
99             const DimensionedField<scalar, volMesh>&,
100             const fvPatchFieldMapper&
101         );
103         //- Construct as copy
104         dynamicAlphaContactAngleFvPatchScalarField
105         (
106             const dynamicAlphaContactAngleFvPatchScalarField&
107         );
109         //- Construct and return a clone
110         virtual tmp<fvPatchScalarField> clone() const
111         {
112             return tmp<fvPatchScalarField>
113             (
114                 new dynamicAlphaContactAngleFvPatchScalarField(*this)
115             );
116         }
118         //- Construct as copy setting internal field reference
119         dynamicAlphaContactAngleFvPatchScalarField
120         (
121             const dynamicAlphaContactAngleFvPatchScalarField&,
122             const DimensionedField<scalar, volMesh>&
123         );
125         //- Construct and return a clone setting internal field reference
126         virtual tmp<fvPatchScalarField> clone
127         (
128             const DimensionedField<scalar, volMesh>& iF
129         ) const
130         {
131             return tmp<fvPatchScalarField>
132             (
133                 new dynamicAlphaContactAngleFvPatchScalarField(*this, iF)
134             );
135         }
138     // Member functions
140         //- Evaluate and return dynamic contact-angle
141         virtual tmp<scalarField> theta
142         (
143             const fvPatchVectorField& Up,
144             const fvsPatchVectorField& nHat
145         ) const;
147         //- Write
148         virtual void write(Ostream&) const;
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 } // End namespace Foam
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 #endif
160 // ************************************************************************* //