diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c4142d09c..3b8436346d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ### Changed (changing behavior/API/variables/...) ### Infrastructure (changes irrelevant to downstream codes) +- [[PR402]](https://github.com/lanl/singularity-eos/pull/402) Added stiff gas to python interface ### Removed (removing behavior/API/varaibles/...) diff --git a/python/module.cpp b/python/module.cpp index 2b89795552..f9c70f32a2 100644 --- a/python/module.cpp +++ b/python/module.cpp @@ -32,6 +32,10 @@ PYBIND11_MODULE(singularity_eos, m) { py::arg("gm1"), py::arg("Cv") ); + eos_class(m, "StiffGas") + .def(py::init()) + .def(py::init(), py::arg("gm1"), py::arg("Cv"), py::arg("Pinf"), py::arg("q")); + eos_class(m, "Gruneisen") .def(py::init()) .def( diff --git a/test/python_bindings.py b/test/python_bindings.py index 951e90523e..8f4be98716 100644 --- a/test/python_bindings.py +++ b/test/python_bindings.py @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# © 2021-2023. Triad National Security, LLC. All rights reserved. This +# © 2021-2024. Triad National Security, LLC. All rights reserved. This # program was produced under U.S. Government contract 89233218CNA000001 # for Los Alamos National Laboratory (LANL), which is operated by Triad # National Security, LLC for the U.S. Department of Energy/National @@ -67,6 +67,9 @@ def testConstants(self): def testIdealGas(self): eos = singularity_eos.IdealGas(1,1) + def testStiffGas(self): + eos = singularity_eos.StiffGas(1,1,1,1) + def testShiftedIdealGas(self): eos = singularity_eos.Shifted(singularity_eos.IdealGas(1,1),1)