Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
ramses
include
shammodels
ramses
modules
EulerTimeDerivativeGasBarotropic.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 "
shamsolvergraph/node/INode.hpp
"
24
25
#define NODE_EDGES(X_RO, X_RW) \
26
/* ------------------- inputs ------------------- */
\
27
X_RO(shamrock::solvergraph::Indexes<u32>, sizes) \
28
X_RO(shamrock::solvergraph::IFieldSpan<Tscal>, spans_rho) \
29
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_vel) \
30
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_grad_rho) \
31
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_dx_v) \
32
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_dy_v) \
33
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_dz_v) \
34
X_RO(shamrock::solvergraph::IFieldSpan<Tvec>, spans_grad_P) \
35
\
36
/* ------------------- outputs ------------------- */
\
37
X_RW(shamrock::solvergraph::IFieldSpan<Tscal>, spans_dt_rho) \
38
X_RW(shamrock::solvergraph::IFieldSpan<Tvec>, spans_dt_vel)
39
40
namespace
shammodels::basegodunov::modules
{
41
50
template
<
class
Tvec>
51
class
NodeEulerTimeDerivativeGasBarotropic :
public
shamrock::solvergraph::INode
{
52
using
Tscal = shambase::VecComponent<Tvec>;
53
54
u32
block_size;
55
56
public
:
57
NodeEulerTimeDerivativeGasBarotropic(
u32
block_size) : block_size(block_size) {}
58
59
EXPAND_NODE_EDGES(NODE_EDGES)
60
61
void
_impl_evaluate_internal
();
62
63
inline
virtual
std::string
_impl_get_label
()
const
{
64
return
"EulerTimeDerivativeGasBarotropic"
;
65
};
66
67
virtual
std::string
_impl_get_tex
()
const
;
68
};
69
70
}
// namespace shammodels::basegodunov::modules
71
72
#undef NODE_EDGES
IFieldSpan.hpp
INode.hpp
Indexes.hpp
u32
std::uint32_t u32
32 bit unsigned integer
Definition
aliases_int.hpp:27
shammodels::basegodunov::modules::NodeEulerTimeDerivativeGasBarotropic::_impl_get_tex
virtual std::string _impl_get_tex() const
get the tex of the node
Definition
EulerTimeDerivativeGasBarotropic.cpp:125
shammodels::basegodunov::modules::NodeEulerTimeDerivativeGasBarotropic::_impl_evaluate_internal
void _impl_evaluate_internal()
evaluate the node
Definition
EulerTimeDerivativeGasBarotropic.cpp:96
shammodels::basegodunov::modules::NodeEulerTimeDerivativeGasBarotropic::_impl_get_label
virtual std::string _impl_get_label() const
get the label of the node
Definition
EulerTimeDerivativeGasBarotropic.hpp:63
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