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

granularPressureModel.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::granularPressureModel
00027 
00028 SourceFiles
00029     granularPressureModel.C
00030 
00031 \*---------------------------------------------------------------------------*/
00032 
00033 #ifndef granularPressureModel_H
00034 #define granularPressureModel_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 granularPressureModel Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 class granularPressureModel
00051 {
00052     // Private member functions
00053 
00054         //- Disallow default bitwise copy construct
00055         granularPressureModel(const granularPressureModel&);
00056 
00057         //- Disallow default bitwise assignment
00058         void operator=(const granularPressureModel&);
00059 
00060 
00061 protected:
00062 
00063     // Protected data
00064 
00065         const dictionary& dict_;
00066 
00067 
00068 public:
00069 
00070     //- Runtime type information
00071     TypeName("granularPressureModel");
00072 
00073     // Declare runtime constructor selection table
00074     declareRunTimeSelectionTable
00075     (
00076         autoPtr,
00077         granularPressureModel,
00078         dictionary,
00079         (
00080             const dictionary& dict
00081         ),
00082         (dict)
00083     );
00084 
00085 
00086     // Constructors
00087 
00088         //- Construct from components
00089         granularPressureModel(const dictionary& dict);
00090 
00091 
00092     // Selectors
00093 
00094         static autoPtr<granularPressureModel> New
00095         (
00096             const dictionary& dict
00097         );
00098 
00099 
00100     //- Destructor
00101     virtual ~granularPressureModel();
00102 
00103 
00104     // Member Functions
00105 
00106         //- Granular pressure coefficient
00107         virtual tmp<volScalarField> granularPressureCoeff
00108         (
00109             const volScalarField& alpha,
00110             const volScalarField& g0,
00111             const dimensionedScalar& rhoa,
00112             const dimensionedScalar& e
00113         ) const = 0;
00114 
00115         //- Derivative of the granular pressure coefficient
00116         virtual tmp<volScalarField> granularPressureCoeffPrime
00117         (
00118             const volScalarField& alpha,
00119             const volScalarField& g0,
00120             const volScalarField& g0prime,
00121             const dimensionedScalar& rhoa,
00122             const dimensionedScalar& e
00123         ) const = 0;
00124 };
00125 
00126 
00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00128 
00129 } // End namespace Foam
00130 
00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00132 
00133 #endif
00134 
00135 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd