Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
modifiers.hpp File Reference
#include "shambase/exception.hpp"
#include "shamrock/scheduler/PatchScheduler.hpp"
#include "shamtree/kernels/geometry_utils.hpp"
#include <stdexcept>
#include <tuple>
#include <vector>
Include dependency graph for modifiers.hpp:

Go to the source code of this file.

Functions

template<class T, class vec>
void generic::setup::modifiers::set_value_in_box (PatchScheduler &sched, T val, std::string name, std::tuple< vec, vec > box)
template<class T, class vec>
void generic::setup::modifiers::set_value_in_sphere (PatchScheduler &sched, T val, std::string name, vec center, shambase::VecComponent< vec > radius)
template<class flt>
void generic::setup::modifiers::pertub_eigenmode_wave (PatchScheduler &sched, std::tuple< flt, flt > ampls, sycl::vec< flt, 3 > k, flt phase)
template<class T>
generic::setup::modifiers::get_sum (PatchScheduler &sched, std::string name)

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 modifiers.hpp.

Function Documentation

◆ get_sum()

template<class T>
T generic::setup::modifiers::get_sum ( PatchScheduler & sched,
std::string name )
inline

Definition at line 141 of file modifiers.hpp.

◆ pertub_eigenmode_wave()

template<class flt>
void generic::setup::modifiers::pertub_eigenmode_wave ( PatchScheduler & sched,
std::tuple< flt, flt > ampls,
sycl::vec< flt, 3 > k,
flt phase )
inline

Definition at line 99 of file modifiers.hpp.

◆ set_value_in_box()

template<class T, class vec>
void generic::setup::modifiers::set_value_in_box ( PatchScheduler & sched,
T val,
std::string name,
std::tuple< vec, vec > box )
inline

Definition at line 31 of file modifiers.hpp.

◆ set_value_in_sphere()

template<class T, class vec>
void generic::setup::modifiers::set_value_in_sphere ( PatchScheduler & sched,
T val,
std::string name,
vec center,
shambase::VecComponent< vec > radius )
inline

Definition at line 61 of file modifiers.hpp.