{"id":13720044,"url":"https://github.com/Loop3D/LoopStructural","last_synced_at":"2025-05-07T12:30:40.966Z","repository":{"id":40004626,"uuid":"181411760","full_name":"Loop3D/LoopStructural","owner":"Loop3D","description":"LoopStructural is an open-source 3D structural geological modelling library. ","archived":false,"fork":false,"pushed_at":"2025-05-07T00:19:02.000Z","size":151656,"stargazers_count":210,"open_issues_count":6,"forks_count":44,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-07T01:27:26.316Z","etag":null,"topics":["3d-modelling","faults","folds","geology","geology-modelling","geoscience","implicit-modelling","interpolation","kinematics","structural-geology"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Loop3D.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-04-15T04:25:27.000Z","updated_at":"2025-05-06T15:28:43.000Z","dependencies_parsed_at":"2023-02-18T02:15:51.479Z","dependency_job_id":"caa7749b-cc75-4cd4-816e-825f405f6022","html_url":"https://github.com/Loop3D/LoopStructural","commit_stats":{"total_commits":1907,"total_committers":8,"mean_commits":238.375,"dds":0.3350812794965915,"last_synced_commit":"0c5f59ddaa8bb53851112faed45386a99e3e5c01"},"previous_names":[],"tags_count":91,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Loop3D%2FLoopStructural","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Loop3D%2FLoopStructural/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Loop3D%2FLoopStructural/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Loop3D%2FLoopStructural/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Loop3D","download_url":"https://codeload.github.com/Loop3D/LoopStructural/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252796752,"owners_count":21805615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d-modelling","faults","folds","geology","geology-modelling","geoscience","implicit-modelling","interpolation","kinematics","structural-geology"],"created_at":"2024-08-03T01:00:59.238Z","updated_at":"2025-05-07T12:30:39.773Z","avatar_url":"https://github.com/Loop3D.png","language":"Python","funding_links":[],"categories":["Software"],"sub_categories":["Simulation and Modelling"],"readme":"# LoopStructural: Loop3D Implicit Geological Modelling\n\n![3D model of Hamersley created using loopstructural](docs/source/images/image823.png)\n[![PyPI version](https://badge.fury.io/py/LoopStructural.svg)](https://badge.fury.io/py/LoopStructural)\n[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Loop3D/LoopStructural/blob/master/LICENSE)\n[![Documentation loop3d.github.io/LoopStructural/](https://img.shields.io/badge/docs-githubio-brightgreen)](https://loop3d.github.io/LoopStructural)\n\n## Overview\n\nLoopStructural is an opensource Python library for 3D geological modelling. The library has been built in the scope of the Loop project ([Loop3d.org](https://loop3d.org/)). LoopStructural can:\n\n- Model fault networks integrating fault kinematics and overprinting relationships\n- Model folds using structural elements (fold axis, fold axial surface) for multiple fold events\n- Use different implicit interpolation algorithms (Finite Difference, Piecewiese Linear, RBF)\n- Export models to vtk, geoh5, omf, gocad, csv, obj formats\n- Visualise models in an interactive python environment.\n\n## Installation\n\n### Google colab\n\nLoopStructural can be used inside a google colab notebook, however interactive visualisation using kitware trame does not work. Only static plots can be displayed.\n\n### Pip\n\n`pip install loopstructural`\n\nOptional dependencies are:\n\n- loopstructuralvisualisation (wrapper for pyvista to interface with loopstructural objects)\n- pyvista (3D visualisation)\n- geoh5py (export to .geoh5 format)\n- mira-omf (export to .omf format to load in Leapfrog)\n- pyevtk\n- dill (serialize loop models to a pickle file)\n- tqdm (progress bars)\n- loopsolver (experimental solver for admm inequality constraints)\n\nYou can install all of the optional dependencies using:\n`pip install loopstructural[all]`\n\n### conda\n\n`conda install -c conda-forge -c loop3d loopstructural`\n\nto install the working 3D visualisation environment\n`conda install -c conda-forge -c loop3d loopstructural loopstructuralvisualisation pyvista trame trame-vtk trame-vuetify`\n\n## Quickstart\n\n- A basic geological model\n\n```Python\nfrom LoopStructural import GeologicalModel\nfrom LoopStructural.datatypes import BoundingBox\nfrom LoopStructural.visualisation import Loop3DView\nfrom LoopStructural.datasets import load_claudius\n\nimport numpy as np\ndata, bb = load_claudius()\n\n#bb constaints origin and maximum of axis aligned bounding box\n#data is a pandas dataframe with X,Y,Z,val,nx,ny,nz, feature_name\n\nmodel = GeologicalModel(bb[0,:],bb[1,:])\nmodel.data = data\n# nelements specifies the number of discrete interpolation elements\n# 'stratí' is the feature name in the data dataframe\nmodel.create_and_add_foliation('strati',nelements=1e5)\nmodel.update()\n# get the value of the interpolator at some random locations\nlocations = np.array(\n    [\n        np.random.uniform(bb[0, 0], bb[1, 0],5),\n        np.random.uniform(bb[0, 1], bb[1, 1],5),\n        np.random.uniform(bb[0, 2], bb[1, 2],5),\n    ]\n).T\nval = model.evaluate_feature_value('strati', locations)\n# get the gradient of the interpolator\ngradient = model.evaluate_feature_gradient('strati',locations)\n\n#Plot the scalar field of the model\nmodel['strati'].scalar_field().plot()\n\n\n```\n\n## Documentation\n\nThe LoopStructural documentation can be found [here](https://loop3d.github.io/LoopStructural)\n\n## Problems\n\nAny bugs/feature requests/comments please create a new [issue](https://github.com/Loop3D/LoopStructural/issues).\n\n## Acknowledgements\n\n_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._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLoop3D%2FLoopStructural","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLoop3D%2FLoopStructural","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLoop3D%2FLoopStructural/lists"}