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

MRFZones.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::MRFZones
00026 
00027 Description
00028     Container class for a set of MRFZones with the MRFZone member functions
00029     implemented to loop over the functions for each MRFZone.
00030 
00031 SourceFiles
00032     MRFZones.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef MRFZones_H
00037 #define MRFZones_H
00038 
00039 #include "MRFZone.H"
00040 #include <OpenFOAM/IOPtrList.H>
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                            Class MRFZones Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class MRFZones
00052 :
00053     public IOPtrList<MRFZone>
00054 {
00055 
00056     // Private Member Functions
00057 
00058         //- Disallow default bitwise copy construct
00059         MRFZones(const MRFZones&);
00060 
00061         //- Disallow default bitwise assignment
00062         void operator=(const MRFZones&);
00063 
00064 
00065 public:
00066 
00067     // Constructors
00068 
00069         //- Construct from fvMesh
00070         MRFZones(const fvMesh& mesh);
00071 
00072 
00073     // Member Functions
00074 
00075         //- Add the Coriolis force contribution to the momentum equation
00076         void addCoriolis(fvVectorMatrix& UEqn) const;
00077 
00078         //- Add the Coriolis force contribution to the momentum equation
00079         void addCoriolis(const volScalarField& rho, fvVectorMatrix& UEqn) const;
00080 
00081         //- Make the given absolute velocity relative within the MRF region
00082         void relativeVelocity(volVectorField& U) const;
00083 
00084         //- Make the given relative velocity absolute within the MRF region
00085         void absoluteVelocity(volVectorField& U) const;
00086 
00087         //- Make the given absolute flux relative within the MRF region
00088         void relativeFlux(surfaceScalarField& phi) const;
00089 
00090         //- Make the given absolute mass-flux relative within the MRF region
00091         void relativeFlux
00092         (
00093             const surfaceScalarField& rho,
00094             surfaceScalarField& phi
00095         ) const;
00096 
00097         //- Make the given relative flux absolute within the MRF region
00098         void absoluteFlux(surfaceScalarField& phi) const;
00099 
00100         //- Make the given relative mass-flux absolute within the MRF region
00101         void absoluteFlux
00102         (
00103             const surfaceScalarField& rho,
00104             surfaceScalarField& phi
00105         ) const;
00106 
00107         //- Correct the boundary velocity for the roation of the MRF region
00108         void correctBoundaryVelocity(volVectorField& U) const;
00109 };
00110 
00111 
00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00113 
00114 } // End namespace Foam
00115 
00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00117 
00118 #endif
00119 
00120 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines