This documentation is not for the latest stable Salvus version.
MIN_PERIOD = 70.0
MAX_PERIOD = 120.0
SIMULATION_TIME_IN_SECONDS = 1200.0
SALVUS_FLOW_SITE_NAME = "local"
RANKS_PER_JOB = 8
PROJECT_DIR = "project_dir_central_europe"
period_band_name = f"{int(MIN_PERIOD)}_{int(MAX_PERIOD)}_seconds"
import pathlib
from salvus import namespace as sn
Common moment magnitude vs fault length relations, constants taken from Leonard, M. (2014). Self-Consistent Earthquake Fault-Scaling Relations: Update and Extension to Stable Continental Strike-Slip Faults. Bulletin of the Seismological Society of America, 104(6), 2953–2965. doi:10.1785/0120140087
Screenshot from the EFEHR Hazard Map Portal, CC BY-SA 3.0 (unported).
Project
around it. Domain
objects can be visualized so it is easy to try a few values until the desired result is achieved. This will be the inversion domain so the goal here is to get as close to the desired region as possible as it cannot be changed after a project has been created. The map projections between the above image and the domain plot are different but they show a very similar region.lat_center, lon_center = 48.0, 10.0
lat_extent, lon_extent = 25.0, 25.0
domain = sn.domain.dim3.SphericalChunkDomain(
lat_center=lat_center,
lat_extent=lat_extent,
lon_center=lon_center,
lon_extent=lon_extent,
radius_in_meter=6371e3,
)
domain.plot()