Model 3 - Recumbent FoldΒΆ

This script demonstrates how to create a geological model of a recumbent fold using GemPy, a Python-based, open-source library for implicit geological modeling.

# Import necessary libraries
import gempy as gp
import gempy_viewer as gpv

# sphinx_gallery_thumbnail_number = 2

Generate the model Define the path to data

data_path = ''
path_to_data = data_path + "/data/input_data/jan_models/"
# Create a GeoModel instance
data = gp.create_geomodel(
    extent=[0, 1000, 0, 1000, 0, 1000],
    resolution=[50, 50, 50],
        path_to_orientations=path_to_data + "model3_orientations.csv",
        path_to_surface_points=path_to_data + "model3_surface_points.csv"
# Map geological series to surfaces
    mapping_object={"Strat_Series": ('rock2', 'rock1')}
# Compute the geological model
geo_data = data
Surface points hash:  16bd39d19892d9a70aa41b1141f130894de6a36910f27e98ec712351f9373ce2
Orientations hash:  1d12a150cd6f3faa81b8bbebc167ba69de4ac85fc524b771bd97ce94eb2a3e60
Setting Backend To: AvailableBackends.PYTORCH

Plot the initial geological model in the y direction

gpv.plot_2d(geo_data, direction=['y'], show_results=False)

# Plot the result of the model in the y direction with data
gpv.plot_2d(geo_data, direction=['y'], show_data=True)
  • Cell Number: mid Direction: y
  • Cell Number: mid Direction: y
<gempy_viewer.modules.plot_2d.visualization_2d.Plot2D object at 0x7f008075a440>
gpv.plot_3d(geo_data, show_surfaces=True)
c03 recumbent fold
< object at 0x7f00cb7550c0>

Total running time of the script: (0 minutes 2.522 seconds)

Gallery generated by Sphinx-Gallery