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 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
28 template<class ParcelType>
29 inline const typename ParcelType::constantProperties&
30 Foam::ReactingCloud<ParcelType>::constProps() const
36 template<class ParcelType>
37 inline const Foam::multiComponentMixture<typename ParcelType::thermoType>&
38 Foam::ReactingCloud<ParcelType>::mcCarrierThermo() const
40 return mcCarrierThermo_;
44 template<class ParcelType>
45 inline Foam::multiComponentMixture<typename ParcelType::thermoType>&
46 Foam::ReactingCloud<ParcelType>::mcCarrierThermo()
48 return mcCarrierThermo_;
52 template<class ParcelType>
53 inline const Foam::CompositionModel<Foam::ReactingCloud<ParcelType> >&
54 Foam::ReactingCloud<ParcelType>::composition() const
56 return compositionModel_;
60 template<class ParcelType>
61 inline const Foam::PhaseChangeModel<Foam::ReactingCloud<ParcelType> >&
62 Foam::ReactingCloud<ParcelType>::phaseChange() const
64 return phaseChangeModel_;
68 template<class ParcelType>
69 inline Foam::DimensionedField<Foam::scalar, Foam::volMesh>&
70 Foam::ReactingCloud<ParcelType>::rhoTrans(const label i)
76 template<class ParcelType>
77 inline Foam::PtrList<Foam::DimensionedField<Foam::scalar, Foam::volMesh> >&
78 Foam::ReactingCloud<ParcelType>::rhoTrans()
84 template<class ParcelType>
85 inline Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh> >
86 Foam::ReactingCloud<ParcelType>::Srho(const label i) const
88 return rhoTrans_[i]/(this->db().time().deltaT()*this->mesh().V());
92 template<class ParcelType>
93 inline Foam::tmp<Foam::DimensionedField<Foam::scalar, Foam::volMesh> >
94 Foam::ReactingCloud<ParcelType>::Srho() const
96 tmp<DimensionedField<scalar, volMesh> > trhoTrans
98 new DimensionedField<scalar, volMesh>
102 this->name() + "rhoTrans",
103 this->db().time().timeName(),
110 dimensionedScalar("zero", rhoTrans_[0].dimensions(), 0.0)
114 scalarField& sourceField = trhoTrans().field();
115 forAll (rhoTrans_, i)
117 sourceField += rhoTrans_[i];
120 return trhoTrans/(this->db().time().deltaT()*this->mesh().V());
124 // ************************************************************************* //