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

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