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

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