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

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