ENH: Removed unused code

This commit is contained in:
andy
2013-08-06 11:09:25 +01:00
parent d77ba5a9c1
commit 9838d69a96
2 changed files with 7 additions and 28 deletions

View File

@ -83,9 +83,6 @@ public:
//- Vaporisation temperature [K] //- Vaporisation temperature [K]
scalar Tvap_; scalar Tvap_;
//- Boiling point [K]
scalar Tbp_;
public: public:
@ -122,8 +119,7 @@ public:
const scalar Pr, const scalar Pr,
const scalar pMin, const scalar pMin,
const Switch& constantVolume, const Switch& constantVolume,
const scalar Tvap, const scalar Tvap
const scalar Tbp
); );
@ -137,9 +133,6 @@ public:
//- Return const access to the vaporisation temperature //- Return const access to the vaporisation temperature
inline scalar Tvap() const; inline scalar Tvap() const;
//- Return const access to the boiling point
inline scalar Tbp() const;
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -32,8 +32,7 @@ Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties()
ParcelType::constantProperties(), ParcelType::constantProperties(),
pMin_(0.0), pMin_(0.0),
constantVolume_(false), constantVolume_(false),
Tvap_(0.0), Tvap_(0.0)
Tbp_(0.0)
{} {}
@ -46,8 +45,7 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
ParcelType::constantProperties(cp), ParcelType::constantProperties(cp),
pMin_(cp.pMin_), pMin_(cp.pMin_),
constantVolume_(cp.constantVolume_), constantVolume_(cp.constantVolume_),
Tvap_(cp.Tvap_), Tvap_(cp.Tvap_)
Tbp_(cp.Tbp_)
{} {}
@ -61,8 +59,7 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
ParcelType::constantProperties(parentDict, readFields), ParcelType::constantProperties(parentDict, readFields),
pMin_(1000.0), pMin_(1000.0),
constantVolume_(false), constantVolume_(false),
Tvap_(0.0), Tvap_(0.0)
Tbp_(0.0)
{ {
if (readFields) if (readFields)
{ {
@ -73,7 +70,6 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
this->dict().lookup("constantVolume") >> constantVolume_; this->dict().lookup("constantVolume") >> constantVolume_;
this->dict().lookup("Tvap") >> Tvap_; this->dict().lookup("Tvap") >> Tvap_;
this->dict().lookup("Tbp") >> Tbp_;
} }
} }
@ -96,8 +92,7 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
const scalar Pr, const scalar Pr,
const scalar pMin, const scalar pMin,
const Switch& constantVolume, const Switch& constantVolume,
const scalar Tvap, const scalar Tvap
const scalar Tbp
) )
: :
ParcelType::constantProperties ParcelType::constantProperties
@ -118,8 +113,7 @@ inline Foam::ReactingParcel<ParcelType>::constantProperties::constantProperties
), ),
pMin_(pMin), pMin_(pMin),
constantVolume_(constantVolume), constantVolume_(constantVolume),
Tvap_(Tvap), Tvap_(Tvap)
Tbp_(Tbp)
{} {}
@ -212,14 +206,6 @@ Foam::ReactingParcel<ParcelType>::constantProperties::Tvap() const
} }
template<class ParcelType>
inline Foam::scalar
Foam::ReactingParcel<ParcelType>::constantProperties::Tbp() const
{
return Tbp_;
}
// * * * * * * * * * * ThermoParcel Member Functions * * * * * * * * * * * * // // * * * * * * * * * * ThermoParcel Member Functions * * * * * * * * * * * * //
template<class ParcelType> template<class ParcelType>