1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 \*---------------------------------------------------------------------------*/
27 #include "mathematicalConstants.H"
29 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31 template <class ParcelType>
32 inline Foam::DsmcParcel<ParcelType>::constantProperties::constantProperties()
39 template <class ParcelType>
40 inline Foam::DsmcParcel<ParcelType>::constantProperties::constantProperties
42 const dictionary& dict
45 mass_(readScalar(dict.lookup("mass"))),
46 d_(readScalar(dict.lookup("diameter"))),
47 internalDegreesOfFreedom_
49 readScalar(dict.lookup("internalDegreesOfFreedom"))
51 omega_(readScalar(dict.lookup("omega")))
55 template <class ParcelType>
56 inline Foam::DsmcParcel<ParcelType>::trackData::trackData
58 DsmcCloud<ParcelType>& cloud
61 Particle<ParcelType>::trackData(cloud),
66 template <class ParcelType>
67 inline Foam::DsmcParcel<ParcelType>::DsmcParcel
69 DsmcCloud<ParcelType>& owner,
70 const vector& position,
77 Particle<ParcelType>(owner, position, celli),
84 // * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
86 template <class ParcelType>
88 Foam::DsmcParcel<ParcelType>::constantProperties::mass() const
94 template <class ParcelType>
96 Foam::DsmcParcel<ParcelType>::constantProperties::d() const
102 template <class ParcelType>
104 Foam::DsmcParcel<ParcelType>::constantProperties::sigmaT() const
106 return mathematicalConstant::pi*d_*d_;
110 template <class ParcelType>
112 Foam::DsmcParcel<ParcelType>::constantProperties::internalDegreesOfFreedom()
115 return internalDegreesOfFreedom_;
119 template <class ParcelType>
121 Foam::DsmcParcel<ParcelType>::constantProperties::omega() const
127 // * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
129 template <class ParcelType>
130 inline Foam::DsmcCloud<ParcelType>&
131 Foam::DsmcParcel<ParcelType>::trackData::cloud()
137 // * * * * * * * * * * DsmcParcel Member Functions * * * * * * * * * * //
139 template <class ParcelType>
140 inline Foam::label Foam::DsmcParcel<ParcelType>::typeId() const
146 template <class ParcelType>
147 inline const Foam::vector& Foam::DsmcParcel<ParcelType>::U() const
153 template <class ParcelType>
154 inline Foam::scalar Foam::DsmcParcel<ParcelType>::Ei() const
160 template <class ParcelType>
161 inline Foam::vector& Foam::DsmcParcel<ParcelType>::U()
167 template <class ParcelType>
168 inline Foam::scalar& Foam::DsmcParcel<ParcelType>::Ei()
174 // ************************************************************************* //