FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

LESdelta.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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::LESdelta
00026 
00027 Description
00028     Abstract base class for LES deltas
00029 
00030 SourceFiles
00031     LESdelta.C
00032     newDelta.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef LESdelta_H
00037 #define LESdelta_H
00038 
00039 #include <finiteVolume/volFields.H>
00040 #include <OpenFOAM/typeInfo.H>
00041 #include <OpenFOAM/autoPtr.H>
00042 #include <OpenFOAM/runTimeSelectionTables.H>
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 class fvMesh;
00050 
00051 /*---------------------------------------------------------------------------*\
00052                           Class LESdelta Declaration
00053 \*---------------------------------------------------------------------------*/
00054 
00055 class LESdelta
00056 {
00057 
00058 protected:
00059 
00060     // Protected data
00061 
00062         const fvMesh& mesh_;
00063 
00064         volScalarField delta_;
00065 
00066 
00067 private:
00068 
00069     // Private Member Functions
00070 
00071         // Disallow default bitwise copy construct and assignment
00072         LESdelta(const LESdelta&);
00073         void operator=(const LESdelta&);
00074 
00075 
00076 public:
00077 
00078     //- Runtime type information
00079     TypeName("LESdelta");
00080 
00081 
00082     // Declare run-time constructor selection table
00083 
00084         declareRunTimeSelectionTable
00085         (
00086             autoPtr,
00087             LESdelta,
00088             dictionary,
00089             (
00090                 const word& name,
00091                 const fvMesh& mesh,
00092                 const dictionary& LESdeltaDict
00093             ),
00094             (name, mesh, LESdeltaDict)
00095         );
00096 
00097 
00098     // Constructors
00099 
00100         //- Construct from name and mesh
00101         LESdelta(const word& name, const fvMesh&);
00102 
00103 
00104     // Selectors
00105 
00106         //- Return a reference to the selected LES delta
00107         static autoPtr<LESdelta> New
00108         (
00109             const word& name,
00110             const fvMesh&,
00111             const dictionary&
00112         );
00113 
00114 
00115     //- Destructor
00116     virtual ~LESdelta()
00117     {}
00118 
00119 
00120     // Member Functions
00121 
00122         //- Return mesh reference
00123         const fvMesh& mesh() const
00124         {
00125             return mesh_;
00126         }
00127 
00128         //- Read the LESdelta dictionary
00129         virtual void read(const dictionary&) = 0;
00130 
00131         // Correct values
00132         virtual void correct() = 0;
00133 
00134 
00135     // Member Operators
00136 
00137         virtual operator const volScalarField&() const
00138         {
00139             return delta_;
00140         }
00141 };
00142 
00143 
00144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00145 
00146 } // End namespace Foam
00147 
00148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00149 
00150 #endif
00151 
00152 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines