STYLE: updated local class data to use underscores

This commit is contained in:
andy
2010-10-12 17:25:17 +01:00
parent efe68b6ce6
commit 47c270c7c0
3 changed files with 21 additions and 21 deletions

View File

@ -37,8 +37,8 @@ template<class thermo>
sutherlandTransport<thermo>::sutherlandTransport(Istream& is) sutherlandTransport<thermo>::sutherlandTransport(Istream& is)
: :
thermo(is), thermo(is),
As(readScalar(is)), As_(readScalar(is)),
Ts(readScalar(is)) Ts_(readScalar(is))
{ {
is.check("sutherlandTransport<thermo>::sutherlandTransport(Istream&)"); is.check("sutherlandTransport<thermo>::sutherlandTransport(Istream&)");
} }
@ -48,8 +48,8 @@ template<class thermo>
sutherlandTransport<thermo>::sutherlandTransport(const dictionary& dict) sutherlandTransport<thermo>::sutherlandTransport(const dictionary& dict)
: :
thermo(dict), thermo(dict),
As(readScalar(dict.lookup("As"))), As_(readScalar(dict.lookup("As"))),
Ts(readScalar(dict.lookup("Ts"))) Ts_(readScalar(dict.lookup("Ts")))
{} {}
@ -58,7 +58,7 @@ sutherlandTransport<thermo>::sutherlandTransport(const dictionary& dict)
template<class thermo> template<class thermo>
Ostream& operator<<(Ostream& os, const sutherlandTransport<thermo>& st) Ostream& operator<<(Ostream& os, const sutherlandTransport<thermo>& st)
{ {
os << static_cast<const thermo&>(st) << tab << st.As << tab << st.Ts; os << static_cast<const thermo&>(st) << tab << st.As_ << tab << st.Ts_;
os.check os.check
( (

View File

@ -101,7 +101,7 @@ class sutherlandTransport
// Private data // Private data
// Sutherland's coefficients // Sutherland's coefficients
scalar As, Ts; scalar As_, Ts_;
// Private Member Functions // Private Member Functions

View File

@ -43,9 +43,9 @@ inline void sutherlandTransport<thermo>::calcCoeffs
scalar mu1rootT2 = mu1*sqrt(T2); scalar mu1rootT2 = mu1*sqrt(T2);
scalar mu2rootT1 = mu2*rootT1; scalar mu2rootT1 = mu2*rootT1;
Ts = (mu2rootT1 - mu1rootT2)/(mu1rootT2/T1 - mu2rootT1/T2); Ts_ = (mu2rootT1 - mu1rootT2)/(mu1rootT2/T1 - mu2rootT1/T2);
As = mu1*(1.0 + Ts/T1)/rootT1; As_ = mu1*(1.0 + Ts_/T1)/rootT1;
} }
@ -60,8 +60,8 @@ inline sutherlandTransport<thermo>::sutherlandTransport
) )
: :
thermo(t), thermo(t),
As(as), As_(as),
Ts(ts) Ts_(ts)
{} {}
@ -87,8 +87,8 @@ inline sutherlandTransport<thermo>::sutherlandTransport
) )
: :
thermo(name, st), thermo(name, st),
As(st.As), As_(st.As_),
Ts(st.Ts) Ts_(st.Ts_)
{} {}
@ -135,7 +135,7 @@ inline autoPtr<sutherlandTransport<thermo> > sutherlandTransport<thermo>::New
template<class thermo> template<class thermo>
inline scalar sutherlandTransport<thermo>::mu(const scalar T) const inline scalar sutherlandTransport<thermo>::mu(const scalar T) const
{ {
return As*::sqrt(T)/(1.0 + Ts/T); return As_*::sqrt(T)/(1.0 + Ts_/T);
} }
@ -172,8 +172,8 @@ inline sutherlandTransport<thermo>& sutherlandTransport<thermo>::operator=
{ {
thermo::operator=(st); thermo::operator=(st);
As = st.As; As_ = st.As_;
Ts = st.Ts; Ts_ = st.Ts_;
return *this; return *this;
} }
@ -199,8 +199,8 @@ inline sutherlandTransport<thermo> operator+
return sutherlandTransport<thermo> return sutherlandTransport<thermo>
( (
t, t,
molr1*st1.As + molr2*st2.As, molr1*st1.As_ + molr2*st2.As_,
molr1*st1.Ts + molr2*st2.Ts molr1*st1.Ts_ + molr2*st2.Ts_
); );
} }
@ -223,8 +223,8 @@ inline sutherlandTransport<thermo> operator-
return sutherlandTransport<thermo> return sutherlandTransport<thermo>
( (
t, t,
molr1*st1.As - molr2*st2.As, molr1*st1.As_ - molr2*st2.As_,
molr1*st1.Ts - molr2*st2.Ts molr1*st1.Ts_ - molr2*st2.Ts_
); );
} }
@ -239,8 +239,8 @@ inline sutherlandTransport<thermo> operator*
return sutherlandTransport<thermo> return sutherlandTransport<thermo>
( (
s*static_cast<const thermo&>(st), s*static_cast<const thermo&>(st),
st.As, st.As_,
st.Ts st.Ts_
); );
} }