25namespace shammodels::common::modules {
30 using Tscal = shambase::VecComponent<Tvec>;
44 inline void set_edges(
52 {constant_G, central_mass, central_pos, spans_positions, sizes});
56 inline Edges get_edges() {
58 get_ro_edge<shamrock::solvergraph::IDataEdge<Tscal>>(0),
60 get_ro_edge<shamrock::solvergraph::IDataEdge<Tvec>>(2),
62 get_ro_edge<shamrock::solvergraph::Indexes<u32>>(4),
69 return "AddForceCentralGravPotential";
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
Interface for a solver graph edge representing a field as spans.
Inode is node between data edges, takes multiple inputs, multiple outputs.
T & get_rw_edge(int slot)
Get a read write edge and cast it to the type T.
void __internal_set_rw_edges(std::vector< std::shared_ptr< IEdge > > new_rw_edges)
Set the read write edges.
void __internal_set_ro_edges(std::vector< std::shared_ptr< IEdge > > new_ro_edges)
Set the read only edges.
const T & get_ro_edge(int slot)
Get a read only edge and cast it to the type T.