Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
SinkParticlesEvictAccretedParticles.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
18
19#include "shambackends/vec.hpp"
24
25#define NODE_EDGES(X_RO, X_RW) \
26 /* ------------------- (sink) accretion table ------------------- */ \
27 X_RO(shamrock::solvergraph::Indexes<u32>, part_counts) \
28 X_RO(shamrock::solvergraph::Field<u32>, sink_accretion_table) \
29 \
30 /* ------------------- Patchdatas ------------------- */ \
31 X_RW(shamrock::solvergraph::PatchDataLayerRefs, pdats)
32
34
35 template<class Tvec>
36 class SinkParticlesEvictAccretedParticles : public shamrock::solvergraph::INode {
37
38 using Tscal = shambase::VecComponent<Tvec>;
39
40 public:
41 SinkParticlesEvictAccretedParticles() = default;
42
43 EXPAND_NODE_EDGES(NODE_EDGES)
44
46
47 inline virtual std::string _impl_get_label() const {
48 return "SinkParticlesEvictAccretedParticles";
49 }
50
51 virtual std::string _impl_get_tex() const;
52 };
53
54} // namespace shammodels::sph::modules
55
56#undef NODE_EDGES
Defines the PatchDataLayerRefs class for managing distributed references to patch data layers.
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:31
namespace for the sph model modules