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

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