Skip to main content

LoopStructural: Loop3D Implicit Geological Modelling

3D model of Hamersley created using loopstructural PyPI version GitHub license Documentation loop3d.github.io/LoopStructural/

Overview

LoopStructural is an opensource Python library for 3D geological modelling. The library has been built in the scope of the Loop project (Loop3d.org). LoopStructural can:

  • Model fault networks integrating fault kinematics and overprinting relationships
  • Model folds using structural elements (fold axis, fold axial surface) for multiple fold events
  • Use different implicit interpolation algorithms (Finite Difference, Piecewiese Linear, RBF)
  • Export models to vtk, geoh5, omf, gocad, csv, obj formats
  • Visualise models in an interactive python environment.

Installation

Google colab

LoopStructural can be used inside a google colab notebook, however interactive visualisation using kitware trame does not work. Only static plots can be displayed.

Pip

pip install loopstructural

Optional dependencies are:

  • loopstructuralvisualisation (wrapper for pyvista to interface with loopstructural objects)
  • pyvista (3D visualisation)
  • geoh5py (export to .geoh5 format)
  • mira-omf (export to .omf format to load in Leapfrog)
  • pyevtk
  • dill (serialize loop models to a pickle file)
  • tqdm (progress bars)
  • loopsolver (experimental solver for admm inequality constraints)

You can install all of the optional dependencies using: pip install loopstructural[all]

conda

conda install -c conda-forge -c loop3d loopstructural

to install the working 3D visualisation environment conda install -c conda-forge -c loop3d loopstructural loopstructuralvisualisation pyvista trame trame-vtk trame-vuetify

Quickstart

  • A basic geological model
from LoopStructural import GeologicalModel
from LoopStructural.geometry import BoundingBox
from LoopStructural.visualisation import Loop3DView
from LoopStructural.datasets import load_claudius

import numpy as np
data, bb = load_claudius()

#bb constaints origin and maximum of axis aligned bounding box
#data is a pandas dataframe with X,Y,Z,val,nx,ny,nz, feature_name

model = GeologicalModel(bb[0,:],bb[1,:])
model.data = data
# nelements specifies the number of discrete interpolation elements
# 'stratí' is the feature name in the data dataframe
model.create_and_add_foliation('strati',nelements=1e5)
model.update()
# get the value of the interpolator at some random locations
locations = np.array(
    [
        np.random.uniform(bb[0, 0], bb[1, 0],5),
        np.random.uniform(bb[0, 1], bb[1, 1],5),
        np.random.uniform(bb[0, 2], bb[1, 2],5),
    ]
).T
val = model.evaluate_feature_value('strati', locations)
# get the gradient of the interpolator
gradient = model.evaluate_feature_gradient('strati',locations)

#Plot the scalar field of the model
model['strati'].scalar_field().plot()

Documentation

The LoopStructural documentation can be found here

Problems

Any bugs/feature requests/comments please create a new issue.

Acknowledgements

The Loop platform is an open source 3D probabilistic geological and geophysical modelling platform, initiated by Geoscience Australia and the OneGeology consortium. The project is funded by Australian territory, State and Federal Geological Surveys, the Australian Research Council and the MinEx Collaborative Research Centre.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loopstructural-1.8.0.tar.gz (493.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loopstructural-1.8.0-py3-none-any.whl (537.7 kB view details)

Uploaded Python 3

File details

Details for the file loopstructural-1.8.0.tar.gz.

File metadata

  • Download URL: loopstructural-1.8.0.tar.gz
  • Upload date:
  • Size: 493.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for loopstructural-1.8.0.tar.gz
Algorithm Hash digest
SHA256 0edad30541c0e87f8c2340b8054ea9ac424c464da56807c843ea468d2f6fedf9
MD5 0f28ab84aa40e62bfb0e1c8d8c32fdb9
BLAKE2b-256 d8307ec967f21db1f2fcdab171f32441977dfd495470fe768f29dfa57c313c42

See more details on using hashes here.

File details

Details for the file loopstructural-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: loopstructural-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 537.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for loopstructural-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fabda1670433d62d3910df394dc297a939fec25cad33258c95278a6cc9ddb5a5
MD5 914d70e1d7207d7d70018113de3b34a4
BLAKE2b-256 8e3f10c421097bcdca0220d78b2f2a8599cf69b99d1bdc968bd48653552e5e03

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.8.0 This release

2 files

1.7.3

2 files

1.7.0

2 files

1.6.27

2 files

1.6.26

2 files

1.6.25

2 files

1.6.24

2 files

1.6.23

2 files

1.6.22

2 files

1.6.21

2 files

1.6.20

2 files

1.6.19

2 files

1.6.18

2 files

1.6.17

2 files

1.6.16

2 files

1.6.15

2 files

1.6.14

2 files

1.6.13

2 files

1.6.12

2 files

1.6.11

2 files

1.6.10

2 files

1.6.9

2 files

1.6.8

2 files

1.6.7

2 files

1.6.6

2 files

1.6.5

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.13

2 files

1.5.11

39 files

1.5.10

39 files

1.5.9

39 files

1.5.8

55 files

1.5.3

29 files

1.5.2

29 files

1.5.1

29 files

1.5.0

21 files

1.4.10

29 files

1.4.9

29 files

1.4.8

29 files

1.4.7

29 files

1.4.6

29 files

1.4.5

29 files

1.4.4

29 files

1.4.3

29 files

1.4.2

29 files

1.4.1

29 files

1.3.10

29 files

1.3.9

29 files

1.3.8

29 files

1.3.7

29 files

1.3.6

29 files

1.3.4

29 files

1.3.3

29 files

1.3.2

29 files

1.2.3

29 files

1.2.2

29 files

1.2.0

29 files

1.1.0

29 files

1.0.91

29 files

1.0.89

29 files

1.0.88

14 files

1.0.87

12 files

1.0.86

11 files

1.0.85

9 files

1.0.84

9 files

1.0.83

9 files

1.0.82

9 files

1.0.81

9 files

1.0.9

29 files

1.0.8

9 files

1.0.4

9 files

1.0.3

10 files

1.0.1

10 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page