OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

dynamicAlphaContactAngleFvPatchScalarField.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::dynamicAlphaContactAngleFvPatchScalarField
00027 
00028 Description
00029     A dynamic alphaContactAngle scalar boundary condition
00030     (alphaContactAngleFvPatchScalarField)
00031 
00032 SourceFiles
00033     dynamicAlphaContactAngleFvPatchScalarField.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef dynamicAlphaContactAngleFvPatchScalarField_H
00038 #define dynamicAlphaContactAngleFvPatchScalarField_H
00039 
00040 #include "alphaContactAngleFvPatchScalarField.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                            Class dynamicAlphaContactAngleFvPatch Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class dynamicAlphaContactAngleFvPatchScalarField
00052 :
00053     public alphaContactAngleFvPatchScalarField
00054 {
00055     // Private data
00056 
00057         //- Equilibrium contact angle
00058         scalar theta0_;
00059 
00060         //- Dynamic contact angle velocity scale
00061         scalar uTheta_;
00062 
00063         //- Limiting advancing contact angle
00064         scalar thetaA_;
00065 
00066         //- Limiting receeding contact angle
00067         scalar thetaR_;
00068 
00069 
00070 public:
00071 
00072     //- Runtime type information
00073     TypeName("dynamicAlphaContactAngle");
00074 
00075 
00076     // Constructors
00077 
00078         //- Construct from patch and internal field
00079         dynamicAlphaContactAngleFvPatchScalarField
00080         (
00081             const fvPatch&,
00082             const DimensionedField<scalar, volMesh>&
00083         );
00084 
00085         //- Construct from patch, internal field and dictionary
00086         dynamicAlphaContactAngleFvPatchScalarField
00087         (
00088             const fvPatch&,
00089             const DimensionedField<scalar, volMesh>&,
00090             const dictionary&
00091         );
00092 
00093         //- Construct by mapping given
00094         //  dynamicAlphaContactAngleFvPatchScalarField
00095         //  onto a new patch
00096         dynamicAlphaContactAngleFvPatchScalarField
00097         (
00098             const dynamicAlphaContactAngleFvPatchScalarField&,
00099             const fvPatch&,
00100             const DimensionedField<scalar, volMesh>&,
00101             const fvPatchFieldMapper&
00102         );
00103 
00104         //- Construct as copy
00105         dynamicAlphaContactAngleFvPatchScalarField
00106         (
00107             const dynamicAlphaContactAngleFvPatchScalarField&
00108         );
00109 
00110         //- Construct and return a clone
00111         virtual tmp<fvPatchScalarField> clone() const
00112         {
00113             return tmp<fvPatchScalarField>
00114             (
00115                 new dynamicAlphaContactAngleFvPatchScalarField(*this)
00116             );
00117         }
00118 
00119         //- Construct as copy setting internal field reference
00120         dynamicAlphaContactAngleFvPatchScalarField
00121         (
00122             const dynamicAlphaContactAngleFvPatchScalarField&,
00123             const DimensionedField<scalar, volMesh>&
00124         );
00125 
00126         //- Construct and return a clone setting internal field reference
00127         virtual tmp<fvPatchScalarField> clone
00128         (
00129             const DimensionedField<scalar, volMesh>& iF
00130         ) const
00131         {
00132             return tmp<fvPatchScalarField>
00133             (
00134                 new dynamicAlphaContactAngleFvPatchScalarField(*this, iF)
00135             );
00136         }
00137 
00138 
00139     // Member functions
00140 
00141         //- Evaluate and return dynamic contact-angle
00142         virtual tmp<scalarField> theta
00143         (
00144             const fvPatchVectorField& Up,
00145             const fvsPatchVectorField& nHat
00146         ) const;
00147 
00148         //- Write
00149         virtual void write(Ostream&) const;
00150 };
00151 
00152 
00153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00154 
00155 } // End namespace Foam
00156 
00157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00158 
00159 #endif
00160 
00161 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd