34 std::shared_ptr<::Galilei> m_galilei;
37 m_galilei = std::make_shared<::Galilei>();
41 system.galilei = m_galilei;
47 if (
name ==
"kill_particle_motion") {
49 m_galilei->kill_particle_motion(
get_system(), rotation);
51 if (
name ==
"kill_particle_forces") {
53 m_galilei->kill_particle_forces(
get_system(), torque);
55 if (
name ==
"galilei_transform") {
58 if (
name ==
"system_CMS") {
59 return m_galilei->calc_system_cms_position(
get_system()).as_vector();
61 if (
name ==
"system_CMS_velocity") {
62 return m_galilei->calc_system_cms_velocity(
get_system()).as_vector();
Bind parameters in the script interface.
Variant do_call_method(std::string const &name, VariantMap const ¶ms) override
void do_construct(VariantMap const &) override
void on_bind_system(::System::System &system) override
std::string_view name() const
auto const & get_system() const
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
std::unordered_map< std::string, Variant > VariantMap
static SteepestDescentParameters params
Currently active steepest descent instance.
Recursive variant implementation.