ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
initial_state_library.template.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2023 by the ryujin authors
4//
5
6#pragma once
7
9
10#include "description.h"
13
14namespace ryujin
15{
16 using namespace ScalarConservation;
17
18 template <int dim, typename Number>
19 class InitialStateLibrary<Description, dim, Number>
20 {
21 public:
23
25 std::set<std::unique_ptr<InitialState<Description, dim, Number>>>;
26
27 static void
29 const HyperbolicSystem &h,
30 const std::string &s)
31 {
32 auto add = [&](auto &&object) {
33 initial_state_list.emplace(std::move(object));
34 };
35
36 add(std::make_unique<Function<dim, Number>>(h, s));
37 add(std::make_unique<Uniform<dim, Number>>(h, s));
38 }
39 };
40} // namespace ryujin
std::set< std::unique_ptr< InitialState< Description, dim, Number > > > initial_state_list_type
static void populate_initial_state_list(initial_state_list_type &initial_state_list, const HyperbolicSystem &h, const std::string &s)
DEAL_II_ALWAYS_INLINE FT add(const FT &flux_left_ij, const FT &flux_right_ij)
Euler::Description Description
Euler::HyperbolicSystem HyperbolicSystem
Definition: description.h:32