SpECTRE
v2025.03.17
|
Initial data to simulate the Kelvin-Helmholtz instability. More...
#include <KhInstability.hpp>
Classes | |
struct | AdiabaticIndex |
The adiabatic index of the fluid. More... | |
struct | BackgroundDensity |
The mass density outside of the strip. More... | |
struct | BackgroundVelocity |
The velocity along | |
struct | PerturbAmplitude |
The amplitude of the perturbation. More... | |
struct | PerturbWidth |
The characteristic length for the width of the perturbation. More... | |
struct | Pressure |
The initial (constant) pressure of the fluid. More... | |
struct | StripBimedianHeight |
The vertical coordinate of the horizontal bimedian of the strip. More... | |
struct | StripDensity |
The mass density in the strip. More... | |
struct | StripThickness |
The thickness of the strip. More... | |
struct | StripVelocity |
The velocity along | |
Public Types | |
using | equation_of_state_type = EquationsOfState::IdealFluid< false > |
using | options = implementation defined |
Public Member Functions | |
KhInstability (const KhInstability &)=default | |
KhInstability & | operator= (const KhInstability &)=default |
KhInstability (KhInstability &&)=default | |
KhInstability & | operator= (KhInstability &&)=default |
auto | get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override |
KhInstability (double adiabatic_index, double strip_bimedian_height, double strip_thickness, double strip_density, double strip_velocity, double background_density, double background_velocity, double pressure, double perturbation_amplitude, double perturbation_width) | |
template<typename DataType , typename... Tags> | |
tuples::TaggedTuple< Tags... > | variables (const tnsr::I< DataType, Dim, Frame::Inertial > &x, tmpl::list< Tags... >) const |
Retrieve a collection of hydrodynamic variables at position x. | |
const EquationsOfState::IdealFluid< false > & | equation_of_state () const |
void | pup (PUP::er &) override |
virtual auto | get_clone () const -> std::unique_ptr< InitialData >=0 |
Static Public Attributes | |
static constexpr Options::String | help |
Friends | |
template<size_t SpatialDim> | |
bool | operator== (const KhInstability< SpatialDim > &lhs, const KhInstability< SpatialDim > &rhs) |
Initial data to simulate the Kelvin-Helmholtz instability.
For comparison purposes, this class implements the planar shear of [175], which is evolved using periodic boundary conditions. The initial state consists of a horizontal strip of mass density
and
where
whose net effect is to perturb the horizontal boundaries of the strip periodically along the
|
overridevirtual |
Implements evolution::initial_data::InitialData.
|
staticconstexpr |