Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions
pyGSPHModel.cpp File Reference

Python bindings for the GSPH (Godunov SPH) model. More...

#include "shambase/exception.hpp"
#include "shambase/memory.hpp"
#include "shambindings/pybindaliases.hpp"
#include "shambindings/pytypealias.hpp"
#include "shamcomm/worldInfo.hpp"
#include "shammath/sphkernels.hpp"
#include "shammodels/common/shamrock_json_to_py_json.hpp"
#include "shammodels/gsph/Model.hpp"
#include "shamrock/scheduler/PatchScheduler.hpp"
#include <pybind11/cast.h>
#include <pybind11/numpy.h>
#include <memory>
+ Include dependency graph for pyGSPHModel.cpp:

Go to the source code of this file.

Functions

template<class Tvec , template< class > class SPHKernel>
void add_gsph_instance (py::module &m, std::string name_config, std::string name_model)
 
 Register_pymod (pygsphmodel)
 

Detailed Description

Python bindings for the GSPH (Godunov SPH) model.

Author
Guo Yansong (guo.y.nosp@m.anso.nosp@m.ng.ng.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om)
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Yona Lapeyre (yona..nosp@m.lape.nosp@m.yre@e.nosp@m.ns-l.nosp@m.yon.f.nosp@m.r) –no git blame–

This provides Python interface for GSPH simulations using Riemann solvers.

References:

Definition in file pyGSPHModel.cpp.

Function Documentation

◆ add_gsph_instance()

template<class Tvec , template< class > class SPHKernel>
void add_gsph_instance ( py::module &  m,
std::string  name_config,
std::string  name_model 
)

Definition at line 40 of file pyGSPHModel.cpp.

◆ Register_pymod()

Register_pymod ( pygsphmodel  )

Definition at line 308 of file pyGSPHModel.cpp.