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