Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
ramses
include
shammodels
ramses
modules
ApplyExtForceDustTrapezoidal.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
"
21
#include "
shamrock/solvergraph/IFieldSpan.hpp
"
22
#include "
shamrock/solvergraph/Indexes.hpp
"
23
#include "
shamrock/solvergraph/ScalarEdge.hpp
"
24
#include "
shamsolvergraph/node/INode.hpp
"
25
26
#define NODE_EDGES(X_RO, X_RW) \
27
/* ------------------- inputs ------------------- */
\
28
X_RO(shamrock::solvergraph::ScalarEdge<Tscal>, dt) \
29
X_RO(shamrock::solvergraph::Indexes<u32>, sizes) \
30
X_RO(shamrock::solvergraph::IFieldSpan<Tscal>, spans_rho_dust) \
31
X_RO(shamrock::solvergraph::IFieldSpan<Tscal>, spans_dt_rho_dust) \
32
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_a_ext_n) \
33
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_a_ext_np1) \
34
\
35
/* ------------------- outputs ------------------- */
\
36
X_RW(shamrock::solvergraph::IFieldSpan<Tvec>, spans_rhov_dust)
37
38
namespace
shammodels::basegodunov::modules
{
39
49
template
<
class
Tvec>
50
class
ApplyExtForceDustTrapezoidal :
public
shamrock::solvergraph::INode
{
51
using
Tscal = shambase::VecComponent<Tvec>;
52
53
u32
block_size;
54
u32
ndust;
55
56
public
:
57
ApplyExtForceDustTrapezoidal(
u32
block_size,
u32
ndust)
58
: block_size(block_size), ndust(ndust) {}
59
60
EXPAND_NODE_EDGES(NODE_EDGES)
61
62
void
_impl_evaluate_internal
();
63
64
inline
virtual
std::string
_impl_get_label
()
const
{
65
return
"ApplyExtForceDustTrapezoidal"
;
66
}
67
68
virtual
std::string
_impl_get_tex
()
const
;
69
};
70
71
}
// namespace shammodels::basegodunov::modules
72
73
#undef NODE_EDGES
IFieldSpan.hpp
INode.hpp
Indexes.hpp
ScalarEdge.hpp
u32
std::uint32_t u32
32 bit unsigned integer
Definition
aliases_int.hpp:27
shammodels::basegodunov::modules::ApplyExtForceDustTrapezoidal::_impl_get_tex
virtual std::string _impl_get_tex() const
get the tex of the node
Definition
ApplyExtForceDustTrapezoidal.cpp:74
shammodels::basegodunov::modules::ApplyExtForceDustTrapezoidal::_impl_get_label
virtual std::string _impl_get_label() const
get the label of the node
Definition
ApplyExtForceDustTrapezoidal.hpp:64
shammodels::basegodunov::modules::ApplyExtForceDustTrapezoidal::_impl_evaluate_internal
void _impl_evaluate_internal()
evaluate the node
Definition
ApplyExtForceDustTrapezoidal.cpp:27
shamrock::solvergraph::INode
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition
INode.hpp:31
shammodels::basegodunov::modules
namespace for the basegodunov model modules
Definition
AMRCellInfos.hpp:20
vec.hpp
Generated on
for Shamrock by
1.15.0