Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sgerberding adding python eos #402

Merged
merged 13 commits into from
Aug 9, 2024
4 changes: 4 additions & 0 deletions python/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ PYBIND11_MODULE(singularity_eos, m) {
py::arg("gm1"), py::arg("Cv")
);

eos_class<StiffGas>(m, "StiffGas")
.def(py::init())
.def(py::init<Real, Real, Real, Real>(), py::arg("gm1"), py::arg("Cv"), py::arg("Pinf"), py::arg("q"));

eos_class<Gruneisen>(m, "Gruneisen")
.def(py::init())
.def(
Expand Down
3 changes: 3 additions & 0 deletions test/python_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading