![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shambase/fortran_io.hpp"#include "shambindings/pybindaliases.hpp"#include "shambindings/pytypealias.hpp"#include "shammodels/sph/io/Phantom2Shamrock.hpp"#include "shammodels/sph/io/PhantomDump.hpp"#include <memory>Go to the source code of this file.
Typedefs | |
| using | T = shammodels::sph::PhantomDump |
Functions | |
| file | write_to_file (fname) |
| def ("read_header_float", [](T &self, std::string s) { return self.read_header_float< f64 >(s);}) .def("read_header_int" | |
| def ("print_state", &shammodels::sph::PhantomDump::print_state) | |
| m | def ("load_phantom_dump", [](std::string fname) { shambase::FortranIOFile phfile=shambase::load_fortran_file(fname);return shammodels::sph::PhantomDump::from_file(phfile);}) |
| m | def ("compare_phantom_dumps", [](shammodels::sph::PhantomDump &dump_1, shammodels::sph::PhantomDump &dump_2) { return shammodels::sph::compare_phantom_dumps(dump_1, dump_2);}) |
Variables | |
| ON_PYTHON_INIT | |
| T & | self |
| T std::string | fname |
| T std::string | s |
Definition in file pyPhantomDump.cpp.
| using T = shammodels::sph::PhantomDump |
Definition at line 26 of file pyPhantomDump.cpp.
| T std::string fname |
Definition at line 32 of file pyPhantomDump.cpp.
| ON_PYTHON_INIT |
Definition at line 23 of file pyPhantomDump.cpp.
| T std::string s |
Definition at line 43 of file pyPhantomDump.cpp.
| std::shared_ptr< shammodels::sph::modules::ISPHSetupNode > & self |
Definition at line 32 of file pyPhantomDump.cpp.