SpECTRE
v2025.03.17
|
Computes the largest magnitude of the characteristic speeds. More...
#include <Characteristics.hpp>
Public Types | |
using | argument_tags = implementation defined |
using | return_type = double |
using | base = LargestCharacteristicSpeed |
![]() | |
using | type = double |
Static Public Member Functions | |
static void | function (const gsl::not_null< double * > max_speed, const Scalar< DataVector > &gamma_1, const Scalar< DataVector > &lapse, const tnsr::I< DataVector, SpatialDim, Frame::Inertial > &shift, const tnsr::ii< DataVector, SpatialDim, Frame::Inertial > &spatial_metric) |
Computes the largest magnitude of the characteristic speeds.
Returns the magnitude of the largest characteristic speed along any direction at a given point in space, considering all characteristic fields. This is useful, for e.g., in computing the Courant factor. The coordinate characteristic speeds for this system are magnitude(shift, spatial_metric)
. The maximum characteristic speed is therefore calculated as