ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
Loading...
Searching...
No Matches
barotropic_equation_of_state_pressureless.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2025 - 2026 by the ryujin authors
4//
5
6#pragma once
7
8#include <ryujin/base/compile_time_options.h>
10
11namespace ryujin
12{
13 namespace BarotropicEquationsOfState
14 {
21 {
22 public:
23 Pressureless(const std::string &subsection)
24 : BarotropicEquationOfState("pressureless", subsection)
25 {
26 }
27
28 double pressure(double /*rho*/) const final
29 {
30 return 0.;
31 }
32
33 double specific_internal_energy(double /*rho*/) const final
34 {
35 return 0.;
36 }
37
38 double speed_of_sound(double /*rho*/) const final
39 {
40 return 0.;
41 }
42 };
43 } // namespace BarotropicEquationsOfState
44} // namespace ryujin