Finite Volume Solver  prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
equations/ideal_gas_mix/EinfeldtSignalVelocities.hpp
Go to the documentation of this file.
1 // Copyright (c) 2020 Maikel Nadolski
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining a copy
4 // of this software and associated documentation files (the "Software"), to deal
5 // in the Software without restriction, including without limitation the rights
6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 // copies of the Software, and to permit persons to whom the Software is
8 // furnished to do so, subject to the following conditions:
9 //
10 // The above copyright notice and this permission notice shall be included in
11 // all copies or substantial portions of the Software.
12 //
13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 // SOFTWARE.
20 
21 #ifndef FUB_EQUATONS_IDEAL_GAS_MIX_EINFELDT_SIGNALS_HPP
22 #define FUB_EQUATONS_IDEAL_GAS_MIX_EINFELDT_SIGNALS_HPP
23 
26 
27 namespace fub {
28 
29 template <int Dim> struct EinfeldtSignalVelocities<IdealGasMix<Dim>> {
32 
33  std::array<double, 2> operator()(const IdealGasMix<Dim>& equation,
34  const Complete& left, const Complete& right,
35  Direction dir) const noexcept;
36 
37  std::array<Array1d, 2> operator()(const IdealGasMix<Dim>& equation,
38  const CompleteArray& left,
39  const CompleteArray& right,
40  Direction dir) const noexcept;
41 
42  std::array<Array1d, 2> operator()(const IdealGasMix<Dim>& equation,
43  const CompleteArray& left,
44  const CompleteArray& right,
45  MaskArray mask,
46  Direction dir) const noexcept;
47 };
48 
49 extern template struct EinfeldtSignalVelocities<IdealGasMix<1>>;
50 extern template struct EinfeldtSignalVelocities<IdealGasMix<2>>;
51 extern template struct EinfeldtSignalVelocities<IdealGasMix<3>>;
52 
53 }
54 
55 #endif
Definition: IdealGasMix.hpp:105
The fub namespace.
Definition: AnyBoundaryCondition.hpp:31
Direction
This is a type safe type to denote a dimensional split direction.
Definition: Direction.hpp:30
Array< bool, 1 > MaskArray
Definition: Eigen.hpp:59
Definition: StateArray.hpp:178
This type has a constructor which takes an equation and might allocate any dynamically sized member v...
Definition: State.hpp:335
std::array< Array1d, 2 > operator()(const IdealGasMix< Dim > &equation, const CompleteArray &left, const CompleteArray &right, MaskArray mask, Direction dir) const noexcept
typename IdealGasMix< Dim >::CompleteArray CompleteArray
Definition: equations/ideal_gas_mix/EinfeldtSignalVelocities.hpp:31
std::array< double, 2 > operator()(const IdealGasMix< Dim > &equation, const Complete &left, const Complete &right, Direction dir) const noexcept
std::array< Array1d, 2 > operator()(const IdealGasMix< Dim > &equation, const CompleteArray &left, const CompleteArray &right, Direction dir) const noexcept
typename IdealGasMix< Dim >::Complete Complete
Definition: equations/ideal_gas_mix/EinfeldtSignalVelocities.hpp:30
This is a customization point for equations which can define two signal velocities for usage with the...
Definition: EinfeldtSignalVelocities.hpp:37