Exemplo n.º 1
0
    def setUp(self):
        upper_seismogenic_depth = 0.
        lower_seismogenic_depth = 15.
        self.hypocentre = Point(10., 45.334898, 10.)
        dip = 90.
        self.delta_slip = 0.
        index_patch = 1
        self.origin = Point(10., 45.2, 0.)
        fault_trace_start = Point(10., 45.2)
        fault_trace_end = Point(10., 45.919457)
        fault_trace = Line([fault_trace_start, fault_trace_end])

        # E Plane Calculation
        self.p0, self.p1, self.p2, self.p3 = SimpleFaultSurface.get_fault_patch_vertices(
            fault_trace, upper_seismogenic_depth, lower_seismogenic_depth,
            dip=dip, index_patch=index_patch)

        [self.normal, self.dist_to_plane] = get_plane_equation(
            self.p0, self.p1, self.p2, self.origin)
Exemplo n.º 2
0
    def setUp(self):
        upper_seismogenic_depth = 0.
        lower_seismogenic_depth = 15.
        self.hypocentre = Point(10., 45.334898, 10.)
        dip = 90.
        self.delta_slip = 0.
        index_patch = 1
        self.origin = Point(10., 45.2, 0.)
        fault_trace_start = Point(10., 45.2)
        fault_trace_end = Point(10., 45.919457)
        fault_trace = Line([fault_trace_start, fault_trace_end])

        # E Plane Calculation
        self.p0, self.p1, self.p2, self.p3 = SimpleFaultSurface.get_fault_patch_vertices(
            fault_trace, upper_seismogenic_depth, lower_seismogenic_depth,
            dip=dip, index_patch=index_patch)

        [self.normal, self.dist_to_plane] = get_plane_equation(
            self.p0, self.p1, self.p2, self.origin)