ryujin 2.1.1 revision feb53359f0c9a08baf43c3dfe847d8a9f7d6893a
geometry_library.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2022 - 2024 by the ryujin authors
4//
5
6#pragma once
7
8#include "geometry_airfoil.h"
9#include "geometry_annulus.h"
10#include "geometry_cylinder.h"
12#include "geometry_step.h"
13#include "geometry_tank.h"
14#include "geometry_wall.h"
15
16namespace ryujin
17{
24 namespace Geometries
25 {
32 template <int dim, typename T>
33 void populate_geometry_list(T &geometry_list, const std::string &subsection)
34 {
35 auto add = [&](auto &&object) {
36 geometry_list.emplace(std::move(object));
37 };
38
39 add(std::make_unique<Cylinder<dim>>(subsection));
40 add(std::make_unique<Step<dim>>(subsection));
41 add(std::make_unique<Wall<dim>>(subsection));
42 add(std::make_unique<RectangularDomain<dim>>(subsection));
43 add(std::make_unique<Airfoil<dim>>(subsection));
44 add(std::make_unique<Annulus<dim>>(subsection));
45 add(std::make_unique<WaveTank<dim>>(subsection));
46 }
47 } /* namespace Geometries */
48} /* namespace ryujin */
void populate_geometry_list(T &geometry_list, const std::string &subsection)
DEAL_II_ALWAYS_INLINE FT add(const FT &flux_left_ij, const FT &flux_right_ij)