ryujin
2.1.1 revision ee5cbcbf2346c1299c942d0e1f13b46449973c18
Loading...
Searching...
No Matches
source
euler_barotropic
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 by the ryujin authors
4
//
5
6
#pragma once
7
8
#include <compile_time_options.h>
9
10
#include "
barotropic_equation_of_state.h
"
11
12
namespace
ryujin
13
{
14
namespace
BarotropicEquationOfStateLibrary
15
{
21
class
Pressureless
:
public
BarotropicEquationOfState
22
{
23
public
:
24
Pressureless
(
const
std::string &subsection)
25
:
BarotropicEquationOfState
(
"pressureless"
, subsection)
26
{
27
}
28
29
double
pressure
(
double
/*rho*/
)
const
final
30
{
31
return
0.;
32
}
33
34
double
specific_internal_energy
(
double
/*rho*/
)
const
final
35
{
36
return
0.;
37
}
38
39
double
speed_of_sound
(
double
/*rho*/
)
const
final
40
{
41
return
0.;
42
}
43
};
44
}
// namespace BarotropicEquationOfStateLibrary
45
}
// namespace ryujin
barotropic_equation_of_state.h
ryujin::BarotropicEquationOfStateLibrary::BarotropicEquationOfState
Definition
barotropic_equation_of_state.h:30
ryujin::BarotropicEquationOfStateLibrary::Pressureless
Definition
barotropic_equation_of_state_pressureless.h:22
ryujin::BarotropicEquationOfStateLibrary::Pressureless::speed_of_sound
double speed_of_sound(double) const final
Definition
barotropic_equation_of_state_pressureless.h:39
ryujin::BarotropicEquationOfStateLibrary::Pressureless::Pressureless
Pressureless(const std::string &subsection)
Definition
barotropic_equation_of_state_pressureless.h:24
ryujin::BarotropicEquationOfStateLibrary::Pressureless::pressure
double pressure(double) const final
Definition
barotropic_equation_of_state_pressureless.h:29
ryujin::BarotropicEquationOfStateLibrary::Pressureless::specific_internal_energy
double specific_internal_energy(double) const final
Definition
barotropic_equation_of_state_pressureless.h:34
ryujin
Definition
computing_timer.h:22
Generated by
1.9.8