1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
28 template<class ParcelType>
29 inline Foam::ThermoParcel<ParcelType>::constantProperties::constantProperties
31 const dictionary& parentDict
34 KinematicParcel<ParcelType>::constantProperties(parentDict),
35 T0_(dimensionedScalar(this->dict().lookup("T0")).value()),
36 TMin_(dimensionedScalar(this->dict().lookup("TMin")).value()),
37 cp0_(dimensionedScalar(this->dict().lookup("cp0")).value()),
38 epsilon0_(dimensionedScalar(this->dict().lookup("epsilon0")).value()),
39 f0_(dimensionedScalar(this->dict().lookup("f0")).value()),
40 Pr_(dimensionedScalar(this->dict().lookup("Pr")).value())
44 template<class ParcelType>
45 inline Foam::ThermoParcel<ParcelType>::trackData::trackData
47 ThermoCloud<ParcelType>& cloud,
48 const constantProperties& constProps,
49 const interpolation<scalar>& rhoInterp,
50 const interpolation<vector>& UInterp,
51 const interpolation<scalar>& muInterp,
52 const interpolation<scalar>& TInterp,
53 const interpolation<scalar>& cpInterp,
57 KinematicParcel<ParcelType>::trackData
67 constProps_(constProps),
73 template<class ParcelType>
74 inline Foam::ThermoParcel<ParcelType>::ThermoParcel
76 ThermoCloud<ParcelType>& owner,
77 const vector& position,
81 KinematicParcel<ParcelType>(owner, position, cellI),
89 template<class ParcelType>
90 inline Foam::ThermoParcel<ParcelType>::ThermoParcel
92 ThermoCloud<ParcelType>& owner,
93 const vector& position,
96 const scalar nParticle0,
99 const constantProperties& constProps
102 KinematicParcel<ParcelType>
114 cp_(constProps.cp0()),
120 // * * * * * * * * * constantProperties Member Functions * * * * * * * * * * //
122 template <class ParcelType>
124 Foam::ThermoParcel<ParcelType>::constantProperties::T0() const
130 template <class ParcelType>
132 Foam::ThermoParcel<ParcelType>::constantProperties::TMin() const
138 template <class ParcelType>
140 Foam::ThermoParcel<ParcelType>::constantProperties::cp0() const
146 template <class ParcelType>
148 Foam::ThermoParcel<ParcelType>::constantProperties::epsilon0() const
154 template <class ParcelType>
156 Foam::ThermoParcel<ParcelType>::constantProperties::f0() const
162 template <class ParcelType>
164 Foam::ThermoParcel<ParcelType>::constantProperties::Pr() const
170 // * * * * * * * * * * * trackData Member Functions * * * * * * * * * * * * //
172 template<class ParcelType>
173 inline Foam::ThermoCloud<ParcelType>&
174 Foam::ThermoParcel<ParcelType>::trackData::cloud()
180 template <class ParcelType>
181 inline const typename Foam::ThermoParcel<ParcelType>::constantProperties&
182 Foam::ThermoParcel<ParcelType>::trackData::constProps() const
188 template<class ParcelType>
189 inline const Foam::interpolation<Foam::scalar>&
190 Foam::ThermoParcel<ParcelType>::trackData::TInterp() const
196 template<class ParcelType>
197 inline const Foam::interpolation<Foam::scalar>&
198 Foam::ThermoParcel<ParcelType>::trackData::cpInterp() const
204 // * * * * * * * * * * ThermoParcel Member Functions * * * * * * * * * * * * //
206 template<class ParcelType>
207 inline Foam::scalar Foam::ThermoParcel<ParcelType>::T() const
213 template<class ParcelType>
214 inline Foam::scalar Foam::ThermoParcel<ParcelType>::cp() const
220 template<class ParcelType>
221 inline Foam::scalar& Foam::ThermoParcel<ParcelType>::T()
227 template<class ParcelType>
228 inline Foam::scalar& Foam::ThermoParcel<ParcelType>::cp()
234 // ************************************************************************* //