35#define FIND_GHOST_INTERFACES_EDGES_IN(X_RO) \
36 X_RO(shamrock::solvergraph::ScalarEdge<shammath::AABB<Tvec>>, sim_box) \
37 X_RO(shamrock::solvergraph::SerialPatchTreeRefEdge<Tvec>, patch_tree) \
38 X_RO(shamrock::solvergraph::PatchtreeFieldEdge<Tscal>, interact_radius_tree) \
39 X_RO(shamrock::solvergraph::ScalarsEdge<Tscal>, interact_radius) \
40 X_RO(shamrock::solvergraph::ScalarsEdge<shammath::CoordRange<Tvec>>, local_patch_boxes)
42#define FIND_GHOST_INTERFACES_EDGES_OUT(X_RW) \
43 X_RW(shamrock::solvergraph::DDSharedScalar<InterfaceBuildInfos>, interface_infos)
62 using Tscal = shambase::VecComponent<Tvec>;
66#define NODE_EDGES(X_RO, X_RW) \
67 FIND_GHOST_INTERFACES_EDGES_IN(X_RO) \
68 FIND_GHOST_INTERFACES_EDGES_OUT(X_RW)
75 using Tscal =
typename FindGhostInterfacesTypes<Tvec>::Tscal;
76 using InterfaceBuildInfos =
typename FindGhostInterfacesTypes<Tvec>::InterfaceBuildInfos;
79 FindGhostInterfacesFree() =
default;
81 EXPAND_NODE_EDGES(NODE_EDGES)
85 inline virtual std::string
_impl_get_label()
const {
return "FindGhostInterfacesFree"; };
96 using Tscal =
typename FindGhostInterfacesTypes<Tvec>::Tscal;
97 using InterfaceBuildInfos =
typename FindGhostInterfacesTypes<Tvec>::InterfaceBuildInfos;
100 FindGhostInterfacesPeriodic() =
default;
102 EXPAND_NODE_EDGES(NODE_EDGES)
107 return "FindGhostInterfacesPeriodic";
115#define NODE_EDGES(X_RO, X_RW) \
116 FIND_GHOST_INTERFACES_EDGES_IN(X_RO) \
117 X_RO(shamrock::solvergraph::IDataEdge<Tscal>, shear_value) \
118 FIND_GHOST_INTERFACES_EDGES_OUT(X_RW)
128 using Tscal =
typename FindGhostInterfacesTypes<Tvec>::Tscal;
129 using InterfaceBuildInfos =
typename FindGhostInterfacesTypes<Tvec>::InterfaceBuildInfos;
136 FindGhostInterfacesShearingPeriodic(i32_3 shear_base, i32_3 shear_dir, Tscal shear_speed)
137 : shear_base(shear_base), shear_dir(shear_dir), shear_speed(shear_speed) {}
139 EXPAND_NODE_EDGES(NODE_EDGES)
144 return "FindGhostInterfacesShearingPeriodic";
154#undef FIND_GHOST_INTERFACES_EDGES_IN
155#undef FIND_GHOST_INTERFACES_EDGES_OUT
Solvergraph edge holding a field defined on the nodes of the serial patch tree.
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
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
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
Inode is node between data edges, takes multiple inputs, multiple outputs.
namespace for the sph model modules
Types shared by the ghost interface finders.