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

VariableHardSphere.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 Class
00024     Foam::VariableHardSphere
00025 
00026 Description
00027     Variable Hard Sphere BinaryCollision Model
00028 
00029 \*---------------------------------------------------------------------------*/
00030 
00031 #ifndef VariableHardSphere_H
00032 #define VariableHardSphere_H
00033 
00034 #include <dsmc/BinaryCollisionModel.H>
00035 
00036 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00037 
00038 namespace Foam
00039 {
00040 /*---------------------------------------------------------------------------*\
00041                       Class VariableHardSphere Declaration
00042 \*---------------------------------------------------------------------------*/
00043 
00044 template<class CloudType>
00045 class VariableHardSphere
00046 :
00047     public BinaryCollisionModel<CloudType>
00048 {
00049     // Private data
00050 
00051         //- Reference temperature
00052         const scalar Tref_;
00053 
00054 
00055 public:
00056 
00057     //- Runtime type information
00058     TypeName("VariableHardSphere");
00059 
00060 
00061     // Constructors
00062 
00063         //- Construct from dictionary
00064         VariableHardSphere
00065         (
00066             const dictionary& dict,
00067             CloudType& cloud
00068         );
00069 
00070 
00071     // Destructor
00072     virtual ~VariableHardSphere();
00073 
00074 
00075     // Member Functions
00076 
00077         //- Return the collision cross section * relative velocity product
00078         virtual scalar sigmaTcR
00079         (
00080             label typeIdP,
00081             label typeIdQ,
00082             const vector& UP,
00083             const vector& UQ
00084         ) const;
00085 
00086         //- Apply collision
00087         virtual void collide
00088         (
00089             label typeIdP,
00090             label typeIdQ,
00091             vector& UP,
00092             vector& UQ,
00093             scalar& EiP,
00094             scalar& EiQ
00095         );
00096 };
00097 
00098 
00099 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00100 
00101 } // End namespace Foam
00102 
00103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00104 
00105 #ifdef NoRepository
00106 #   include "VariableHardSphere.C"
00107 #endif
00108 
00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00110 
00111 #endif
00112 
00113 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines