Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
enum_SlopeMode.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 "nlohmann/json.hpp"
21
23
25 enum SlopeMode {
26 None = 0, //< slope is zero (fallback to order 1 reconstruction)
27 VanLeer_f = 1, //< Van Leer flux limiter (Toro form, see slope_function_van_leer_f_form)
28 VanLeer_std = 2, //< Van Leer standard flux limiter (see shammath::van_leer_slope)
29 VanLeer_sym = 3, //< Van Leer symmetric flux limiter (see shammath::van_leer_slope_symetric)
30 Minmod = 4, //< Minmod flux limiter (see shammath::minmod)
31 };
32
35 {{SlopeMode::None, "none"},
36 {SlopeMode::VanLeer_f, "vanleer_f"},
37 {SlopeMode::VanLeer_std, "vanleer_std"},
38 {SlopeMode::VanLeer_sym, "vanleer_sym"},
39 {SlopeMode::Minmod, "minmod"}});
40
41} // namespace shammodels::basegodunov
This header file contains utility functions related to exception handling in the code.
#define SHAMROCK_JSON_SERIALIZE_ENUM(ENUM_TYPE,...)
Macro to serialize/deserialize an enum to/from a JSON object modified from the NLOHMANN_JSON_SERIALIZ...
namespace for the basegodunov model
SlopeMode
Slope limiter modes.