specfem::constants

specfem::constants::pi

constexpr type_real specfem::constants::pi = std::numbers::pi_v<type_real>

Default path to parameter file.

This is the default path to the parameter file used by the code. It can be overridden by providing a different path when running the executable.

specfem::constants::SOURCE_DECAY_MIMIC_TRIANGLE

const type_real specfem::constants::SOURCE_DECAY_MIMIC_TRIANGLE = 1.62800

Source decay rate to mimic a triangle source time function.

We mimic a triangle of half duration equal to half_duration_triangle using a Gaussian having a very close shape, as explained in Figure 4.2 of the manual. This source decay rate to mimic an equivalent triangle was found by trial and error.

Note

From globalcmt.org: The source duration is generally estimated using an empirically determined relationship such that the duration increases as the cube root of the scalar moment. Specifically, we currently use a relationship where the half duration for an event with moment 10**24 is 1.05 seconds, and for an event with moment 10**27 is 10.5 seconds.

specfem::constants::COURANT_NUMBER_SUGGESTED

const type_real specfem::constants::COURANT_NUMBER_SUGGESTED = 0.5

Suggested COURANT number for time stepping.

empirical choice for distorted elements to estimate time step and period resolved: Courant number for time step estimate

specfem::constants::NPTS_PER_WAVELENGTH

const type_real specfem::constants::NPTS_PER_WAVELENGTH = 5

Suggested number of points per minimum wavelength.

empirical choice for distorted elements to estimate time step and period resolved: number of GLL points per minimum wavelength

specfem::constants::NF_ATTENUATION

constexpr int specfem::constants::NF_ATTENUATION = 100

Number of frequencies used for evaluating attenuation objective.

specfem::constants::N_SLS

constexpr int specfem::constants::N_SLS = 3

Number of standard linear solids for attenuation implementation.

specfem::constants::default_ellipsoid

constexpr auto specfem::constants::default_ellipsoid = specfem::ellipticity::model::wgs84

Default ellipsoid model for UTM and geodetic conversions.