The FaultSystem class defines a system of faults in the Earth's crust.
A fault system is defined by set of faults index by a tag. Each fault is defined by a starting point V0 and a list of
strikes strikes and length l. The strikes and the length is used to define a polyline with points V[i] such that
In case of a 3D model a fault plane is defined through a dip and depth.
The class provides a mechanism to parametrise each fault with the domain [0,w0_max] x [0, w1_max] (to [0,w0_max] in the 2D case).
|
|
__init__(self,
dim=3)
Sets up the fault system |
|
|
|
|
addFault(self,
strikes,
ls,
V0=[0.0, 0.0, 0.0],
tag=None,
dips=None,
depths=None,
w0_offsets=None,
w1_max=None)
adds a new fault to the fault system. |
|
|
|
|
getBottomPolyline(self,
tag=None)
returns the list of the vertices defining the bottom of the fault tag
:param tag: the tag of the fault
:type tag: float or str
:return: the list of vertices. |
|
|
|
|
getCenterOnSurface(self)
returns the center point of the fault system at the surface
:rtype: numpy.ndarray |
|
|
|
|
getDepthVectors(self,
tag=None)
returns the list of the depth vector at top vertices in fault tag. |
|
|
|
|
getDepths(self,
tag=None)
returns the list of the depths of the segements in fault tag. |
|
|
|
|
getDim(self)
returns the spatial dimension
:rtype: int |
|
|
|
|
getDips(self,
tag=None)
returns the list of the dips of the segements in fault tag
:param tag: the tag of the fault
:type tag: float or str
:return: the list of segment dips. |
|
|
|
list of float
|
getLengths(self,
tag=None)
Returns:
the lengths of segments in fault tag |
|
|
|
|
getMaxValue(self,
f,
tol=1.49011611938e-08)
returns the tag of the fault of where f takes the maximum value and a Locator object which can be used to collect values from Data class objects at the location where the minimum is taken. |
|
|
|
|
getMediumDepth(self,
tag=None)
returns the medium depth of fault tag
:rtype: float |
|
|
|
|
getMinValue(self,
f,
tol=1.49011611938e-08)
returns the tag of the fault of where f takes the minimum value and a Locator object which can be used to collect values from Data class objects at the location where the minimum is taken. |
|
|
|
|
getOrientationOnSurface(self)
returns the orientation of the fault system in RAD on the surface around the fault system center
:rtype: float |
|
|
escript.Data object or numpy.ndarray
|
getParametrization(self,
x,
tag=None,
tol=1.49011611938e-08,
outsider=None)
returns the parametrization of the fault tag in the fault system. |
|
|
|
|
getSegmentNormals(self,
tag=None)
returns the list of the normals of the segments in fault tag
:param tag: the tag of the fault
:type tag: float or str
:return: the list of vectors normal to the segments. |
|
|
|
|
getSideAndDistance(self,
x,
tag=None)
returns the side and the distance at x from the fault tag. |
|
|
|
|
getStart(self,
tag=None)
returns the starting point of fault tag
:rtype: numpy.ndarray. |
|
|
list of numpy.ndarray.
|
|
|
list of float
|
getStrikes(self,
tag=None)
Returns:
the strike of the segements in fault tag |
|
|
|
|
getTags(self)
returns a list of the tags used by the fault system
:rtype: list |
|
|
|
|
getTopPolyline(self,
tag=None)
returns the polyline used to describe fault tagged by tag |
|
|
|
float
|
getTotalLength(self,
tag=None)
Returns:
the total unrolled length of fault tag |
|
|
|
list of float
|
getW0Offsets(self,
tag=None)
returns the offsets for the parametrization of fault tag. |
|
|
|
|
getW0Range(self,
tag=None)
returns the range of the parameterization in w0
:rtype: two float |
|
|
|
|
getW1Range(self,
tag=None)
returns the range of the parameterization in w1
:rtype: two float |
|
|
|
|
transform(self,
rot=0,
shift=array([ 0., 0., 0.]))
applies a shift and a consecutive rotation in the x0x1 plane. |
|
|