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

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