Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions
pySPHModel.cpp File Reference
#include "shambase/exception.hpp"
#include "shambase/logs/loglevels.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/sph/Model.hpp"
#include "shammodels/sph/io/PhantomDump.hpp"
#include "shammodels/sph/modules/AnalysisAngularMomentum.hpp"
#include "shammodels/sph/modules/AnalysisBarycenter.hpp"
#include "shammodels/sph/modules/AnalysisDisc.hpp"
#include "shammodels/sph/modules/AnalysisEnergyKinetic.hpp"
#include "shammodels/sph/modules/AnalysisEnergyPotential.hpp"
#include "shammodels/sph/modules/AnalysisSodTube.hpp"
#include "shammodels/sph/modules/AnalysisTotalMomentum.hpp"
#include "shammodels/sph/modules/render/CartesianRender.hpp"
#include "shammodels/sph/modules/render/RenderFieldGetter.hpp"
#include "shamphys/SodTube.hpp"
#include "shamrock/scheduler/PatchScheduler.hpp"
#include <pybind11/cast.h>
#include <pybind11/numpy.h>
#include <pybind11/pytypes.h>
#include <memory>
#include <optional>
#include <random>
#include <utility>
+ Include dependency graph for pySPHModel.cpp:

Go to the source code of this file.

Functions

template<class Tvec , template< class > class SPHKernel>
void add_instance (py::module &m, std::string name_config, std::string name_model)
 
template<class Tvec , template< class > class SPHKernel>
void add_analysisBarycenter_instance (py::module &m, const std::string &name_model)
 
template<class Tvec , template< class > class SPHKernel>
void add_analysisEnergyKinetic_instance (py::module &m, const std::string &name_model)
 
template<class Tvec , template< class > class SPHKernel>
void add_analysisEnergyPotential_instance (py::module &m, const std::string &name_model)
 
template<class Tvec , template< class > class SPHKernel>
void add_analysisTotalMomentum_instance (py::module &m, const std::string &name_model)
 
template<class Tvec , template< class > class SPHKernel>
void add_analysisAngularMomentum_instance (py::module &m, const std::string &name_model)
 
template<class Analysis , typename Tvec , template< class > class SPHKernel>
auto analysis_impl (shammodels::sph::Model< Tvec, SPHKernel > &model) -> Analysis
 
template<template< class, template< class > class > class Analysis>
void register_analysis_impl_for_each_kernel (py::module &msph, const char *name_class)
 
 Register_pymod (pysphmodel)
 

Detailed Description

Author
David Fang (david.nosp@m..fan.nosp@m.g@ikm.nosp@m.ail..nosp@m.com)
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)

Definition in file pySPHModel.cpp.

Function Documentation

◆ add_analysisAngularMomentum_instance()

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

Definition at line 1391 of file pySPHModel.cpp.

◆ add_analysisBarycenter_instance()

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

Definition at line 1325 of file pySPHModel.cpp.

◆ add_analysisEnergyKinetic_instance()

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

Definition at line 1343 of file pySPHModel.cpp.

◆ add_analysisEnergyPotential_instance()

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

Definition at line 1359 of file pySPHModel.cpp.

◆ add_analysisTotalMomentum_instance()

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

Definition at line 1375 of file pySPHModel.cpp.

◆ add_instance()

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

Definition at line 48 of file pySPHModel.cpp.

◆ analysis_impl()

template<class Analysis , typename Tvec , template< class > class SPHKernel>
auto analysis_impl ( shammodels::sph::Model< Tvec, SPHKernel > &  model) -> Analysis

Definition at line 1408 of file pySPHModel.cpp.

◆ register_analysis_impl_for_each_kernel()

template<template< class, template< class > class > class Analysis>
void register_analysis_impl_for_each_kernel ( py::module &  msph,
const char *  name_class 
)

Definition at line 1413 of file pySPHModel.cpp.

◆ Register_pymod()

Register_pymod ( pysphmodel  )

Definition at line 1473 of file pySPHModel.cpp.