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

frictionalStressModel.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::frictionalStressModel
00027 
00028 SourceFiles
00029     frictionalStressModel.C
00030 
00031 \*---------------------------------------------------------------------------*/
00032 
00033 #ifndef frictionalStressModel_H
00034 #define frictionalStressModel_H
00035 
00036 #include "dictionary.H"
00037 #include "volFields.H"
00038 #include "dimensionedTypes.H"
00039 #include "runTimeSelectionTables.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                            Class frictionalStressModel Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 class frictionalStressModel
00051 {
00052     // Private member functions
00053 
00054         //- Disallow default bitwise copy construct
00055         frictionalStressModel(const frictionalStressModel&);
00056 
00057         //- Disallow default bitwise assignment
00058         void operator=(const frictionalStressModel&);
00059 
00060 
00061 protected:
00062 
00063     // Protected data
00064 
00065         const dictionary& dict_;
00066 
00067 
00068 public:
00069 
00070     //- Runtime type information
00071     TypeName("frictionalStressModel");
00072 
00073     // Declare runtime constructor selection table
00074     declareRunTimeSelectionTable
00075     (
00076         autoPtr,
00077         frictionalStressModel,
00078         dictionary,
00079         (
00080             const dictionary& dict
00081         ),
00082         (dict)
00083     );
00084 
00085 
00086     // Constructors
00087 
00088         //- Construct from components
00089         frictionalStressModel(const dictionary& dict);
00090 
00091 
00092     // Selectors
00093 
00094         static autoPtr<frictionalStressModel> New
00095         (
00096             const dictionary& dict
00097         );
00098 
00099 
00100     //- Destructor
00101     virtual ~frictionalStressModel();
00102 
00103 
00104     // Member Functions
00105 
00106         virtual tmp<volScalarField> frictionalPressure
00107         (
00108             const volScalarField& alpha,
00109             const dimensionedScalar& alphaMinFriction,
00110             const dimensionedScalar& alphaMax,
00111             const dimensionedScalar& Fr,
00112             const dimensionedScalar& eta,
00113             const dimensionedScalar& p
00114         ) const = 0;
00115 
00116         virtual tmp<volScalarField> frictionalPressurePrime
00117         (
00118             const volScalarField& alphaf,
00119             const dimensionedScalar& alphaMinFriction,
00120             const dimensionedScalar& alphaMax,
00121             const dimensionedScalar& Fr,
00122             const dimensionedScalar& eta,
00123             const dimensionedScalar& p
00124         ) const = 0;
00125 
00126         virtual tmp<volScalarField> muf
00127         (
00128             const volScalarField& alpha,
00129             const dimensionedScalar& alphaMax,
00130             const volScalarField& pf,
00131             const volTensorField& D,
00132             const dimensionedScalar& phi
00133         ) const = 0;
00134 };
00135 
00136 
00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00138 
00139 } // End namespace Foam
00140 
00141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00142 
00143 #endif
00144 
00145 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd