ENH: Updated formatting for thermo sub-dictionary outputs

This commit is contained in:
andy
2011-07-18 17:56:24 +01:00
parent be5a9ad737
commit dd57817902
10 changed files with 12 additions and 11 deletions

View File

@ -73,7 +73,7 @@ void icoPolynomial<PolySize>::write(Ostream& os) const
rhoCoeffs_/this->W()
);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -53,7 +53,7 @@ void Foam::incompressible::write(Ostream& os) const
dictionary dict("equationOfState");
dict.add("rho", rho_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -66,7 +66,7 @@ void Foam::specie::write(Ostream& os) const
dictionary dict("specie");
dict.add("nMoles", nMoles_);
dict.add("molWeight", molWeight_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -58,7 +58,7 @@ void Foam::eConstThermo<EquationOfState>::write(Ostream& os) const
dictionary dict("thermodynamics");
dict.add("Cv", Cv_);
dict.add("Hf", Hf_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -58,7 +58,7 @@ void Foam::hConstThermo<equationOfState>::write(Ostream& os) const
dictionary dict("thermodynamics");
dict.add("Cp", Cp_);
dict.add("Hf", Hf_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -108,7 +108,7 @@ void Foam::hPolynomialThermo<EquationOfState, PolySize>::write
word("CpCoeffs<" + Foam::name(PolySize) + '>'),
CpCoeffs_/this->W()
);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -108,7 +108,7 @@ void Foam::janafThermo<EquationOfState>::write(Ostream& os) const
dict.add("Tcommon", Tcommon_);
dict.add("highCpCoeffs", highCpCoeffs_);
dict.add("lowCpCoeffs", lowCpCoeffs_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
}

View File

@ -61,7 +61,7 @@ void Foam::constTransport<Thermo>::constTransport::write(Ostream& os) const
dictionary dict("transport");
dict.add("mu", mu_);
dict.add("Pr", 1.0/rPr_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
os << decrIndent << token::END_BLOCK << nl;
}

View File

@ -88,7 +88,7 @@ void Foam::polynomialTransport<Thermo, PolySize>::write(Ostream& os) const
word("kappaCoeffs<" + Foam::name(PolySize) + '>'),
kappaCoeffs_/this->W()
);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
os << decrIndent << token::END_BLOCK << nl;
}

View File

@ -61,7 +61,7 @@ void Foam::sutherlandTransport<Thermo>::write(Ostream& os) const
dictionary dict("transport");
dict.add("As", As_);
dict.add("Ts", Ts_);
os << dict.dictName() << nl << dict;
os << indent << dict.dictName() << dict;
os << decrIndent << token::END_BLOCK << nl;
}
@ -71,7 +71,8 @@ void Foam::sutherlandTransport<Thermo>::write(Ostream& os) const
template<class Thermo>
Foam::Ostream& Foam::operator<<
(
Ostream& os, const sutherlandTransport<Thermo>& st
Ostream& os,
const sutherlandTransport<Thermo>& st
)
{
os << static_cast<const Thermo&>(st) << tab << st.As_ << tab << st.Ts_;