fault_mesh.faults.connected
Module for connecting segments into a connected fault system
Classes
_summary_ |
Module Contents
- class fault_mesh.faults.connected.ConnectedFaultSystem(overall_name, cfm_faults, segment_names=None, search_patterns=None, excluded_names=None, tolerance=100.0, smooth_trace_refinements=5, trimming_gradient=1.0)
_summary_
- Parameters:
overall_name (str)
segment_names (list)
search_patterns (Union[str, list])
excluded_names (Union[str, list])
tolerance (float)
smooth_trace_refinements (int)
trimming_gradient (float)
- calculate_overall_dip_direction(tolerance=10.0)
Compares dip direction string (e.g. NW) with :return:
- Parameters:
tolerance (float)
- generate_sr_rake_points(depths, smoothing=True, km=False)
Generate strike and rake points for the fault system at specified depths.
- Parameters:
depths (Union[np.ndarray, List[float]]) – Depths at which to generate strike and rake points
smoothing (bool, optional) – Whether to apply smoothing to the traces, defaults to True
km (bool, optional) – Whether depths are in kilometers, defaults to False
- property sampled_dip
Dip value sampled from the fault trace. Used for calculating dip in depth contours. :return:
- mesh_fault_surface(resolution=1000.0, spline_resolution=100.0, plane_fitting_eps=1e-05, check_mesh=False, check_strike_dip=False)
Generate a triangular mesh representing the fault surface.
This method creates a 3D triangular mesh of the fault surface by: 1. Fitting splines to depth contours 2. Fitting a plane to all contour points 3. Projecting contours onto the plane 4. Interpolating between contours using thin plate spline 5. Triangulating the resulting surface
- Parameters:
resolution (float, optional) – Target spatial resolution of the mesh in meters, defaults to 1000.
spline_resolution (float, optional) – Point spacing for spline fitting in meters, defaults to 100.
plane_fitting_eps (float, optional) – Tolerance for plane fitting algorithm, defaults to 1.0e-5
check_mesh (bool, optional) – Whether to display visualization of the mesh for debugging, defaults to False
check_strike_dip (bool, optional) – Whether to print strike and dip information for debugging, defaults to False
- Returns:
Triangular mesh representing the fault surface
- Return type:
meshio.Mesh
- mesh_simple_contours(depths, mesh_name=None, mesh_format='vtk', check_mesh=False, check_strike_dip=True, km=False)
Create a mesh from simple contours.
- Parameters:
depths (Union[np.ndarray, List[float]]) – Array of depths for each contour
km (bool) – Whether the depths are in kilometers, defaults to False
mesh_name (str, optional) – Name of the output mesh file
mesh_format (str, optional) – Format of the output mesh file
check_mesh (bool, optional) – Whether to display visualization of the mesh for debugging, defaults to False
check_strike_dip (bool, optional) – Whether to print strike and dip information for debugging, defaults to False
- Returns:
Triangular mesh representing the fault surface
- Return type:
meshio.Mesh