26#define NODE_EDGES(X_RO, X_RW) \
27 X_RO(shamrock::solvergraph::Indexes<u32>, part_counts) \
28 X_RO(shammodels::sph::solvergraph::NeighCache, neigh_cache) \
29 X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, xyz) \
30 X_RO(shamrock::solvergraph::IFieldSpan<Tscal>, hpart) \
31 X_RW(shamrock::solvergraph::IFieldSpan<Tscal>, omega)
35 template<
class Tvec,
template<
class>
class SPHKernel>
38 using Tscal = shambase::VecComponent<Tvec>;
40 static constexpr Tscal kernel_radius = SPHKernel<Tscal>::Rkern;
44 NodeComputeOmega(Tscal part_mass) : part_mass(part_mass) {}
46 EXPAND_NODE_EDGES(NODE_EDGES)
59#define NODE_EDGES(X_RO, X_RW) \
60 X_RO(shamrock::solvergraph::Indexes<u32>, part_counts) \
61 X_RO(shamrock::solvergraph::IFieldSpan<u32>, mask) \
62 X_RW(shamrock::solvergraph::IFieldSpan<T>, field_to_set)
72 SetWhenMask(T val_to_set) : val_to_set(val_to_set) {}
74 EXPAND_NODE_EDGES(NODE_EDGES)
virtual std::string _impl_get_tex() const
get the tex of the node
void _impl_evaluate_internal()
evaluate the node
virtual std::string _impl_get_label() const
get the label of the node
virtual std::string _impl_get_label() const
get the label of the node
void _impl_evaluate_internal()
evaluate the node
virtual std::string _impl_get_tex() const
get the tex of the node
Inode is node between data edges, takes multiple inputs, multiple outputs.
namespace for the sph model modules