29 class SinkParticlesUpdate {
31 using Tscal = shambase::VecComponent<Tvec>;
32 static constexpr u32 dim = shambase::VectorProperties<Tvec>::dimension;
33 using Kernel = SPHKernel<Tscal>;
39 Config &solver_config;
44 SinkParticlesUpdate(
ShamrockCtx &context, Config &solver_config, Storage &storage)
45 : context(context), solver_config(solver_config), storage(storage) {}
47 void accrete_particles(Tscal dt);
48 void predictor_step(Tscal dt);
49 void compute_sph_forces();
50 void compute_ext_forces();
51 void corrector_step(Tscal dt);
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...