mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated formatting for thermo sub-dictionary outputs
This commit is contained in:
@ -73,7 +73,7 @@ void icoPolynomial<PolySize>::write(Ostream& os) const
|
||||
rhoCoeffs_/this->W()
|
||||
);
|
||||
|
||||
os << dict.dictName() << nl << dict;
|
||||
os << indent << dict.dictName() << dict;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user