feat(eos): work translating runtime eos code

most (though not all) of the runtime eos code is now present in the new version. What remains is the templated try_evaluate method along with both the templated and non tempalted try_partial_derivative methods.
This commit is contained in:
2026-09-15 15:45:17 -04:00
parent d1f59d6d70
commit 7b4f30d945
8 changed files with 506 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include "serif/dimensions/runtime/runtime.hpp"
namespace serif::dimensions::runtime {
constexpr ThermodynamicQuantityID::ThermodynamicQuantityID(const std::string_view name) noexcept : m_name(name) {}
[[nodiscard]] constexpr std::string_view ThermodynamicQuantityID::name() const noexcept {
return m_name;
}
[[nodiscard]] constexpr bool RuntimeRelationDescriptor::hasPartialDerivative(const std::size_t inputIndex) const noexcept {
return inputIndex < inputQuantities.size() && (partialDerivativeMask & (std::uint64_t{1} << inputIndex)) != 0;
}
}