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

solidParticleCloud.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::solidParticleCloud
00027 
00028 Description
00029     A Cloud of solid particles
00030 
00031 SourceFiles
00032     solidParticleCloudI.H
00033     solidParticleCloud.C
00034     solidParticleCloudIO.C
00035 
00036 \*---------------------------------------------------------------------------*/
00037 
00038 #ifndef solidParticleCloud_H
00039 #define solidParticleCloud_H
00040 
00041 #include "Cloud.H"
00042 #include "solidParticle.H"
00043 #include "IOdictionary.H"
00044 
00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00046 
00047 namespace Foam
00048 {
00049 
00050 // Forward declaration of classes
00051 class fvMesh;
00052 
00053 /*---------------------------------------------------------------------------*\
00054                            Class solidParticleCloud Declaration
00055 \*---------------------------------------------------------------------------*/
00056 
00057 class solidParticleCloud
00058 :
00059     public Cloud<solidParticle>
00060 {
00061     // Private data
00062 
00063         const fvMesh& mesh_;
00064 
00065         IOdictionary particleProperties_;
00066 
00067         scalar rhop_;
00068         scalar e_;
00069         scalar mu_;
00070 
00071 
00072     // Private Member Functions
00073 
00074         //- Disallow default bitwise copy construct
00075         solidParticleCloud(const solidParticleCloud&);
00076 
00077         //- Disallow default bitwise assignment
00078         void operator=(const solidParticleCloud&);
00079 
00080 
00081 public:
00082 
00083     // Constructors
00084 
00085         //- Construct given mesh
00086         solidParticleCloud
00087         (
00088             const fvMesh&,
00089             const word& cloudName = "defaultCloud"
00090         );
00091 
00092 
00093     // Member Functions
00094 
00095         // Access
00096 
00097             inline const fvMesh& mesh() const;
00098 
00099             inline scalar rhop() const;
00100             inline scalar e() const;
00101             inline scalar mu() const;
00102 
00103 
00104         // Edit
00105 
00106             //- Move the particles under the influence of the given
00107             //  gravitational acceleration
00108             void move(const dimensionedVector& g);
00109 
00110 
00111         // Write
00112 
00113             //- Write fields
00114             virtual void writeFields() const;
00115 };
00116 
00117 
00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00119 
00120 } // End namespace Foam
00121 
00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00123 
00124 #include "solidParticleCloudI.H"
00125 
00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00127 
00128 #endif
00129 
00130 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd