Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
TransportStep.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#include "shambackends/vec.hpp"
22
24
25 template<class Tvec, class TgridVec>
27 public:
28 using Tscal = shambase::VecComponent<Tvec>;
29 using Tgridscal = shambase::VecComponent<TgridVec>;
31
34
35 ShamrockCtx &context;
36 Config &solver_config;
37 Storage &storage;
38
39 TransportStep(ShamrockCtx &context, Config &solver_config, Storage &storage)
40 : context(context), solver_config(solver_config), storage(storage) {}
41
53
54 void compute_limiter();
55
56 void compute_face_centered_moments(Tscal dt);
57
58 void exchange_face_centered_gz();
59
60 void compute_flux();
61
62 void compute_stencil_flux();
63
64 void update_Q(Tscal dt);
65
66 void compute_new_qte();
67
68 private:
69 inline PatchScheduler &scheduler() { return shambase::get_check_ref(context.sched); }
70 };
71
72} // namespace shammodels::zeus::modules
std::uint32_t u32
32 bit unsigned integer
The MPI scheduler.
void compute_cell_centered_momentas()
Compute face momentas ( eq 48 49)
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...
Definition memory.hpp:110
namespace for the zeus model modules
Definition AMRTree.hpp:23