|
|
|
LarsenBorgnakkeVariableHardSphere.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::LarsenBorgnakkeVariableHardSphere 00026 00027 Description 00028 Variable Hard Sphere BinaryCollision Model with Larsen Borgnakke internal 00029 energy redistribution. Based on the INELRS subroutine in Bird's DSMC0R.FOR 00030 00031 \*---------------------------------------------------------------------------*/ 00032 00033 #ifndef LarsenBorgnakkeVariableHardSphere_H 00034 #define LarsenBorgnakkeVariableHardSphere_H 00035 00036 #include "BinaryCollisionModel.H" 00037 00038 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00039 00040 namespace Foam 00041 { 00042 /*---------------------------------------------------------------------------*\ 00043 Class LarsenBorgnakkeVariableHardSphere Declaration 00044 \*---------------------------------------------------------------------------*/ 00045 00046 template<class CloudType> 00047 class LarsenBorgnakkeVariableHardSphere 00048 : 00049 public BinaryCollisionModel<CloudType> 00050 { 00051 // Private data 00052 00053 //- Reference temperature 00054 const scalar Tref_; 00055 00056 //- Relaxation collision number 00057 const scalar relaxationCollisionNumber_; 00058 00059 00060 // Private Member Functions 00061 00062 //- Calculate the energy ratio for distribution to internal degrees of 00063 // freedom 00064 scalar energyRatio 00065 ( 00066 scalar ChiA, 00067 scalar ChiB 00068 ); 00069 00070 00071 public: 00072 00073 //- Runtime type information 00074 TypeName("LarsenBorgnakkeVariableHardSphere"); 00075 00076 00077 // Constructors 00078 00079 //- Construct from dictionary 00080 LarsenBorgnakkeVariableHardSphere 00081 ( 00082 const dictionary& dict, 00083 CloudType& cloud 00084 ); 00085 00086 00087 // Destructor 00088 virtual ~LarsenBorgnakkeVariableHardSphere(); 00089 00090 00091 // Member Functions 00092 00093 //- Return the collision cross section * relative velocity product 00094 virtual scalar sigmaTcR 00095 ( 00096 label typeIdP, 00097 label typeIdQ, 00098 const vector& UP, 00099 const vector& UQ 00100 ) const; 00101 00102 //- Apply collision 00103 virtual void collide 00104 ( 00105 label typeIdP, 00106 label typeIdQ, 00107 vector& UP, 00108 vector& UQ, 00109 scalar& EiP, 00110 scalar& EiQ 00111 ); 00112 }; 00113 00114 00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00116 00117 } // End namespace Foam 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 #ifdef NoRepository 00122 # include "LarsenBorgnakkeVariableHardSphere.C" 00123 #endif 00124 00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00126 00127 #endif 00128 00129 // ************************************************************************* // |