1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 Foam::LarsenBorgnakkeVariableHardSphere
27 Variable Hard Sphere BinaryCollision Model with Larsen Borgnakke internal
28 energy redistribution. Based on the INELRS subroutine in Bird's DSMC0R.FOR
30 \*---------------------------------------------------------------------------*/
32 #ifndef LarsenBorgnakkeVariableHardSphere_H
33 #define LarsenBorgnakkeVariableHardSphere_H
35 #include "BinaryCollisionModel.H"
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 /*---------------------------------------------------------------------------*\
42 Class LarsenBorgnakkeVariableHardSphere Declaration
43 \*---------------------------------------------------------------------------*/
45 template<class CloudType>
46 class LarsenBorgnakkeVariableHardSphere
48 public BinaryCollisionModel<CloudType>
52 //- Reference temperature
55 //- Relaxation collision number
56 const scalar relaxationCollisionNumber_;
59 // Private Member Functions
61 //- Calculate the energy ratio for distribution to internal degrees of
72 //- Runtime type information
73 TypeName("LarsenBorgnakkeVariableHardSphere");
78 //- Construct from dictionary
79 LarsenBorgnakkeVariableHardSphere
81 const dictionary& dict,
87 virtual ~LarsenBorgnakkeVariableHardSphere();
92 //- Flag to indicate whether model activates collision model
93 virtual bool active() const;
95 //- Return the collision cross section * relative velocity product
96 virtual scalar sigmaTcR
98 const typename CloudType::parcelType& pP,
99 const typename CloudType::parcelType& pQ
105 typename CloudType::parcelType& pP,
106 typename CloudType::parcelType& pQ
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 # include "LarsenBorgnakkeVariableHardSphere.C"
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 // ************************************************************************* //