ryujin 2.1.1 revision ee5cbcbf2346c1299c942d0e1f13b46449973c18
Loading...
Searching...
No Matches
electrostatic_configuration_library.template.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2026 by the ryujin authors
4//
5
6#pragma once
7
11
12namespace ryujin
13{
14 namespace ElectrostaticConfigurationLibrary
15 {
16 template <int dim, typename Number>
18 std::set<std::shared_ptr<ElectrostaticConfiguration<dim, Number>>>;
19
20 template <int dim, typename Number>
23 const std::string &subsection)
24 {
25 auto add = [&](auto &&object) { list.emplace(std::move(object)); };
26 add(std::make_shared<Constant<dim, Number>>(subsection));
27 add(std::make_shared<Function<dim, Number>>(subsection));
28 }
29 } // namespace ElectrostaticConfigurationLibrary
30} // namespace ryujin
void populate_electrostatic_configuration_list(electrostatic_configuration_list_type< dim, Number > &list, const std::string &subsection)
DEAL_II_HOST_DEVICE_ALWAYS_INLINE FT add(const FT &flux_left_ij, const FT &flux_right_ij)
std::set< std::shared_ptr< ElectrostaticConfiguration< dim, Number > > > electrostatic_configuration_list_type