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

dsmcFields.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) 2009-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::dsmcFields
00026 
00027 Description
00028     Calculate intensive fields:
00029     - UMean
00030     - translationalT
00031     - internalT
00032     - overallT
00033     from averaged extensive fields from a DSMC calculation.
00034 
00035 SourceFiles
00036     dsmcFields.C
00037     IOdsmcFields.H
00038 
00039 \*---------------------------------------------------------------------------*/
00040 
00041 #ifndef dsmcFields_H
00042 #define dsmcFields_H
00043 
00044 #include <OpenFOAM/pointFieldFwd.H>
00045 
00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00047 
00048 namespace Foam
00049 {
00050 
00051 // Forward declaration of classes
00052 class objectRegistry;
00053 class dictionary;
00054 class mapPolyMesh;
00055 
00056 /*---------------------------------------------------------------------------*\
00057                            Class dsmcFields Declaration
00058 \*---------------------------------------------------------------------------*/
00059 
00060 class dsmcFields
00061 {
00062     // Private data
00063 
00064         //- Name of this set of dsmcFields objects
00065         word name_;
00066 
00067         const objectRegistry& obr_;
00068 
00069         //- on/off switch
00070         bool active_;
00071 
00072     // Private Member Functions
00073 
00074         //- Disallow default bitwise copy construct
00075         dsmcFields(const dsmcFields&);
00076 
00077         //- Disallow default bitwise assignment
00078         void operator=(const dsmcFields&);
00079 
00080 
00081 public:
00082 
00083     //- Runtime type information
00084     TypeName("dsmcFields");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct for given objectRegistry and dictionary.
00090         //  Allow the possibility to load fields from files
00091         dsmcFields
00092         (
00093             const word& name,
00094             const objectRegistry&,
00095             const dictionary&,
00096             const bool loadFromFiles = false
00097         );
00098 
00099 
00100     // Destructor
00101 
00102         virtual ~dsmcFields();
00103 
00104 
00105     // Member Functions
00106 
00107         //- Return name of the set of dsmcFields
00108         virtual const word& name() const
00109         {
00110             return name_;
00111         }
00112 
00113         //- Read the dsmcFields data
00114         virtual void read(const dictionary&);
00115 
00116         //- Execute, currently does nothing
00117         virtual void execute();
00118 
00119         //- Execute at the final time-loop, currently does nothing
00120         virtual void end();
00121 
00122         //- Calculate the dsmcFields and write
00123         virtual void write();
00124 
00125         //- Update for changes of mesh
00126         virtual void updateMesh(const mapPolyMesh&)
00127         {}
00128 
00129         //- Update for changes of mesh
00130         virtual void movePoints(const pointField&)
00131         {}
00132 };
00133 
00134 
00135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00136 
00137 } // End namespace Foam
00138 
00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00140 
00141 #endif
00142 
00143 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines