def set_rectangular_source(self): logger.info('Set problem to rectangular') self.problem_config = grond.RectangularProblemConfig( name_template='rect_source', ranges=dict(north_shift=Range(-20 * km, 20 * km), east_shift=Range(-20 * km, 20 * km), depth=Range(0 * km, 10 * km), length=Range(20 * km, 40 * km), width=Range(5 * km, 12 * km), dip=Range(20, 70), strike=Range(0, 180), rake=Range(0, 90), slip=Range(1, 3)))
def get_grond_problem_config(self): return grond.RectangularProblemConfig( name_template='rect_source_${event_name}', decimation_factor=8, ranges=dict(north_shift=gf.Range(-15 * km, 15 * km), east_shift=gf.Range(-15 * km, 15 * km), depth=gf.Range(5 * km, 15 * km), length=gf.Range(20 * km, 40 * km), width=gf.Range(5 * km, 10 * km), dip=gf.Range(0, 90), strike=gf.Range(0, 180), rake=gf.Range(0, 90), slip=gf.Range(.5, 10), nucleation_x=gf.Range(-1., 1.), nucleation_y=gf.Range(-1., 1.), time=gf.Range(-5.0, 5.0, relative='add')))