FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::dynamicAlphaContactAngleFvPatchScalarField
00026 
00027 Description
00028     A dynamic alphaContactAngle scalar boundary condition
00029     (alphaContactAngleFvPatchScalarField)
00030 
00031 SourceFiles
00032     dynamicAlphaContactAngleFvPatchScalarField.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef dynamicAlphaContactAngleFvPatchScalarField_H
00037 #define dynamicAlphaContactAngleFvPatchScalarField_H
00038 
00039 #include <twoPhaseInterfaceProperties/alphaContactAngleFvPatchScalarField.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                            Class dynamicAlphaContactAngleFvPatch Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 class dynamicAlphaContactAngleFvPatchScalarField
00051 :
00052     public alphaContactAngleFvPatchScalarField
00053 {
00054     // Private data
00055 
00056         //- Equilibrium contact angle
00057         scalar theta0_;
00058 
00059         //- Dynamic contact angle velocity scale
00060         scalar uTheta_;
00061 
00062         //- Limiting advancing contact angle
00063         scalar thetaA_;
00064 
00065         //- Limiting receeding contact angle
00066         scalar thetaR_;
00067 
00068 
00069 public:
00070 
00071     //- Runtime type information
00072     TypeName("dynamicAlphaContactAngle");
00073 
00074 
00075     // Constructors
00076 
00077         //- Construct from patch and internal field
00078         dynamicAlphaContactAngleFvPatchScalarField
00079         (
00080             const fvPatch&,
00081             const DimensionedField<scalar, volMesh>&
00082         );
00083 
00084         //- Construct from patch, internal field and dictionary
00085         dynamicAlphaContactAngleFvPatchScalarField
00086         (
00087             const fvPatch&,
00088             const DimensionedField<scalar, volMesh>&,
00089             const dictionary&
00090         );
00091 
00092         //- Construct by mapping given
00093         //  dynamicAlphaContactAngleFvPatchScalarField
00094         //  onto a new patch
00095         dynamicAlphaContactAngleFvPatchScalarField
00096         (
00097             const dynamicAlphaContactAngleFvPatchScalarField&,
00098             const fvPatch&,
00099             const DimensionedField<scalar, volMesh>&,
00100             const fvPatchFieldMapper&
00101         );
00102 
00103         //- Construct as copy
00104         dynamicAlphaContactAngleFvPatchScalarField
00105         (
00106             const dynamicAlphaContactAngleFvPatchScalarField&
00107         );
00108 
00109         //- Construct and return a clone
00110         virtual tmp<fvPatchScalarField> clone() const
00111         {
00112             return tmp<fvPatchScalarField>
00113             (
00114                 new dynamicAlphaContactAngleFvPatchScalarField(*this)
00115             );
00116         }
00117 
00118         //- Construct as copy setting internal field reference
00119         dynamicAlphaContactAngleFvPatchScalarField
00120         (
00121             const dynamicAlphaContactAngleFvPatchScalarField&,
00122             const DimensionedField<scalar, volMesh>&
00123         );
00124 
00125         //- Construct and return a clone setting internal field reference
00126         virtual tmp<fvPatchScalarField> clone
00127         (
00128             const DimensionedField<scalar, volMesh>& iF
00129         ) const
00130         {
00131             return tmp<fvPatchScalarField>
00132             (
00133                 new dynamicAlphaContactAngleFvPatchScalarField(*this, iF)
00134             );
00135         }
00136 
00137 
00138     // Member functions
00139 
00140         //- Evaluate and return dynamic contact-angle
00141         virtual tmp<scalarField> theta
00142         (
00143             const fvPatchVectorField& Up,
00144             const fvsPatchVectorField& nHat
00145         ) const;
00146 
00147         //- Write
00148         virtual void write(Ostream&) const;
00149 };
00150 
00151 
00152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00153 
00154 } // End namespace Foam
00155 
00156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00157 
00158 #endif
00159 
00160 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines