Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
sph
include
shammodels
sph
modules
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
"
20
#include "
shamrock/solvergraph/Field.hpp
"
21
#include "
shamrock/solvergraph/Indexes.hpp
"
22
#include "
shamrock/solvergraph/PatchDataLayerRefs.hpp
"
23
#include "
shamsolvergraph/node/INode.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
33
namespace
shammodels::sph::modules
{
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
45
void
_impl_evaluate_internal
();
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
Field.hpp
INode.hpp
Indexes.hpp
PatchDataLayerRefs.hpp
Defines the PatchDataLayerRefs class for managing distributed references to patch data layers.
shammodels::sph::modules::SinkParticlesEvictAccretedParticles::_impl_evaluate_internal
void _impl_evaluate_internal()
evaluate the node
Definition
SinkParticlesEvictAccretedParticles.cpp:28
shammodels::sph::modules::SinkParticlesEvictAccretedParticles::_impl_get_label
virtual std::string _impl_get_label() const
get the label of the node
Definition
SinkParticlesEvictAccretedParticles.hpp:47
shammodels::sph::modules::SinkParticlesEvictAccretedParticles::_impl_get_tex
virtual std::string _impl_get_tex() const
get the tex of the node
Definition
SinkParticlesEvictAccretedParticles.cpp:85
shamrock::solvergraph::INode
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition
INode.hpp:31
shammodels::sph::modules
namespace for the sph model modules
Definition
AnalysisAngularMomentum.hpp:28
vec.hpp
Generated on
for Shamrock by
1.15.0