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

basicThermoParcel.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::basicThermoParcel
00026 
00027 Description
00028 
00029 
00030 SourceFiles
00031     basicThermoParcel.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef basicThermoParcel_H
00036 #define basicThermoParcel_H
00037 
00038 #include <lagrangianIntermediate/ThermoParcel.H>
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                       Class basicThermoParcel Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 class basicThermoParcel
00050 :
00051     public ThermoParcel<basicThermoParcel>
00052 {
00053 
00054 public:
00055 
00056     //- Runtime type information
00057     TypeName("basicThermoParcel");
00058 
00059     // Constructors
00060 
00061        //- Construct from owner, position, and cloud owner
00062        //  Other properties initialised as null
00063        basicThermoParcel
00064        (
00065             ThermoCloud<basicThermoParcel>& owner,
00066             const vector position,
00067             const label cellI
00068        );
00069 
00070        //- Construct from components
00071        basicThermoParcel
00072        (
00073             ThermoCloud<basicThermoParcel>& owner,
00074             const vector position,
00075             const label cellI,
00076             const label typeId,
00077             const scalar nParticle0,
00078             const scalar d0,
00079             const vector U0,
00080             const constantProperties& constProps
00081         );
00082 
00083         //- Construct from Istream
00084         basicThermoParcel
00085         (
00086             const Cloud<basicThermoParcel>& c,
00087             Istream& is,
00088             bool readFields = true
00089         );
00090 
00091         //- Construct as a copy
00092         basicThermoParcel(const basicThermoParcel& p);
00093 
00094         //- Construct and return a clone
00095         autoPtr<basicThermoParcel> clone() const
00096         {
00097             return
00098                 autoPtr<basicThermoParcel>
00099                 (
00100                     new basicThermoParcel(*this)
00101                 );
00102         }
00103 
00104 
00105     //- Destructor
00106     virtual ~basicThermoParcel();
00107 };
00108 
00109 
00110 template<>
00111 inline bool contiguous<basicThermoParcel>()
00112 {
00113     return true;
00114 }
00115 
00116 
00117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00118 
00119 } // End namespace Foam
00120 
00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00122 
00123 #endif
00124 
00125 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines