Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
pyPhantomDump.cpp File Reference
Include dependency graph for pyPhantomDump.cpp:

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)
def ("load_phantom_dump", [](std::string fname) { shambase::FortranIOFile phfile=shambase::load_fortran_file(fname);return shammodels::sph::PhantomDump::from_file(phfile);})
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

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file pyPhantomDump.cpp.

Typedef Documentation

◆ T

Definition at line 26 of file pyPhantomDump.cpp.

Variable Documentation

◆ fname

T std::string fname
Initial value:
{
auto file = self.gen_file()

Definition at line 32 of file pyPhantomDump.cpp.

◆ ON_PYTHON_INIT

ON_PYTHON_INIT
Initial value:
{
auto &m = root_module

Definition at line 23 of file pyPhantomDump.cpp.

◆ s

T std::string s
Initial value:
{
return self.read_header_int<i64>(s)
std::int64_t i64
64 bit integer

Definition at line 43 of file pyPhantomDump.cpp.

◆ self

std::shared_ptr< shammodels::sph::modules::ISPHSetupNode > & self
Initial value:
{
return self->get_dot()

Definition at line 32 of file pyPhantomDump.cpp.