Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
AddForcePaczynskiWiita.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
19
20#include "shambackends/vec.hpp"
25
26#define NODE_EDGES(X_RO, X_RW) \
27 /* ------------------- inputs ------------------- */ \
28 X_RO(shamrock::solvergraph::IDataEdge<Tscal>, constant_G) \
29 X_RO(shamrock::solvergraph::IDataEdge<Tscal>, constant_c) \
30 X_RO(shamrock::solvergraph::IDataEdge<Tscal>, central_mass) \
31 X_RO(shamrock::solvergraph::IDataEdge<Tvec>, central_pos) \
32 X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_positions) \
33 X_RO(shamrock::solvergraph::Indexes<u32>, sizes) \
34 \
35 /* ------------------- outputs ------------------- */ \
36 X_RW(shamrock::solvergraph::IFieldSpan<Tvec>, spans_accel_ext)
37
38namespace shammodels::common::modules {
39
40 template<class Tvec>
41 class AddForcePaczynskiWiita : public shamrock::solvergraph::INode {
42
43 using Tscal = shambase::VecComponent<Tvec>;
44
45 public:
46 AddForcePaczynskiWiita() = default;
47
48 EXPAND_NODE_EDGES(NODE_EDGES)
49
51
52 inline virtual std::string _impl_get_label() const { return "AddForcePaczynskiWiita"; }
53
54 virtual std::string _impl_get_tex() const;
55 };
56
57} // namespace shammodels::common::modules
58
59#undef NODE_EDGES
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
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:31