test(tests/eos): added test for composition module mode

This commit is contained in:
2025-06-17 08:18:06 -04:00
parent 3961c745e3
commit bc548ed311
3 changed files with 23 additions and 6 deletions

View File

@@ -17,8 +17,6 @@ namespace serif::eos {
q.abar = in.composition.getMeanParticleMass(); // Mean atomic mass in g
q.zbar = in.composition.getMeanAtomicNumber(); // Mean atomic number (dimensionless)
std::cout << "(EOS) abar: " << q.abar << ", zbar: " << q.zbar << std::endl;
helmholtz::HELMEOSOutput tempOutput;
tempOutput = helmholtz::get_helm_EOS(q, *std::get<std::unique_ptr<helmholtz::HELMTable>>(m_reader.getTable()));

View File

@@ -54,7 +54,7 @@ namespace serif::eos {
std::string name; ///< Name of the parameter (e.g., "Pressure", "Energy", "Entropy").
friend std::ostream& operator<<(std::ostream& os, const EOSParameter& param) {
os << std::setprecision(3) << "<EOSParameter (" << param.name << "): " << param.total << " (gas: " << param.gas
os << std::setprecision(5) << "<EOSParameter (" << param.name << "): " << param.total << " (gas: " << param.gas
<< ", radiation: " << param.radiation << ") "
<< "d/dRho: " << param.dDensity << ", d/dT: " << param.dTemperature
<< ", d/dAbar: " << param.dMeanAtomicMassNumber