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

alphaContactAngleFvPatchScalarField.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::alphaContactAngleFvPatchScalarField
00027 
00028 Description
00029     Abstract base class for alphaContactAngle boundary conditions.
00030 
00031     Derived classes must implement the theta() fuction which returns the
00032     wall contact angle field.
00033 
00034 SourceFiles
00035     alphaContactAngleFvPatchScalarField.C
00036 
00037 \*---------------------------------------------------------------------------*/
00038 
00039 #ifndef alphaContactAngleFvPatchScalarField_H
00040 #define alphaContactAngleFvPatchScalarField_H
00041 
00042 #include "zeroGradientFvPatchFields.H"
00043 #include "fvsPatchFields.H"
00044 
00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00046 
00047 namespace Foam
00048 {
00049 
00050 /*---------------------------------------------------------------------------*\
00051                    Class alphaContactAngleFvPatch Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class alphaContactAngleFvPatchScalarField
00055 :
00056     public zeroGradientFvPatchScalarField
00057 {
00058 
00059 public:
00060 
00061     //- Runtime type information
00062     TypeName("alphaContactAngle");
00063 
00064 
00065     // Constructors
00066 
00067         //- Construct from patch and internal field
00068         alphaContactAngleFvPatchScalarField
00069         (
00070             const fvPatch&,
00071             const DimensionedField<scalar, volMesh>&
00072         );
00073 
00074         //- Construct from patch, internal field and dictionary
00075         alphaContactAngleFvPatchScalarField
00076         (
00077             const fvPatch&,
00078             const DimensionedField<scalar, volMesh>&,
00079             const dictionary&
00080         );
00081 
00082         //- Construct by mapping given alphaContactAngleFvPatchScalarField
00083         //  onto a new patch
00084         alphaContactAngleFvPatchScalarField
00085         (
00086             const alphaContactAngleFvPatchScalarField&,
00087             const fvPatch&,
00088             const DimensionedField<scalar, volMesh>&,
00089             const fvPatchFieldMapper&
00090         );
00091 
00092         //- Construct as copy
00093         alphaContactAngleFvPatchScalarField
00094         (
00095             const alphaContactAngleFvPatchScalarField&
00096         );
00097 
00098         //- Construct as copy setting internal field reference
00099         alphaContactAngleFvPatchScalarField
00100         (
00101             const alphaContactAngleFvPatchScalarField&,
00102             const DimensionedField<scalar, volMesh>&
00103         );
00104 
00105 
00106     // Member functions
00107 
00108         //- Return the contact angle
00109         virtual tmp<scalarField> theta
00110         (
00111             const fvPatchVectorField& Up,
00112             const fvsPatchVectorField& nHat
00113         ) const = 0;
00114 };
00115 
00116 
00117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00118 
00119 } // End namespace Foam
00120 
00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00122 
00123 #endif
00124 
00125 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd