Skip to main content

Exact Critical Coulomb Wedge : tools to compute and display the exact solution of any parameter of Critical Coulomb Wedge

Project description

Exact Critical Coulomb Wedge

ECCW allows to compute the exact solution of any parameter of critical Coulomb wedge (as Dahlen 1984 and Yuan et al. 2015). It allows to draw any of these solutions in the β vs α domain (basal slope against surface slope). Are availables compressive or extensive geological context and fluid pore pressure.

ECCW is under GNU GPL-v3 license.


General informations

ECCW is a python3 library.

A graphical user interface (GUI), written in python3 and using Qt is also available under the name ECCW-GUI.


Installation

Windows

  1. Install python3 verson of miniconda python environment from https://conda.io/miniconda.html
    1. run downloaded .exe;

    2. at Advanced Options step, tick checkbox named Add Anaconda to my PATH environment variable.

  2. Launch the windows Command Prompt:
    1. type conda to check that conda is correctly installed;

    2. type pip to check that pip is also correctly installed.

  3. Install ECCW with the following command in the Command Prompt:

    $ pip install eccw
  4. ECCW is then available from the Command Prompt by taping eccw or simply from the main Windows menu under the name eccw.

Linux

Installation using pip

  1. Install pip and tk for Python3. On Debian family distributions, you can install these packages using the following command:

    $ sudo apt-get install python3-pip python3-tk
  2. Install ECCW with the following command:

    $ pip3 install eccw
  3. ECCW is then available from a terminal by taping eccw

Installation from sources

  1. Install the folowing dependancies for python3:

    tk
    pyqt5
    numpy
    matplotlib
    xmltodict

    On Debian family distributions, you can install these packages using the following command:

    $ sudo apt-get install python3-tk python3-pyqt5 python3-numpy python3-matplotlib python3-xmltodict
  2. Using a terminal with current working directory setted on ECCW sources folder, you can install ECCW with the following command:

    $ python3 setup.py install
  3. ECCW is then available from a Terminal by taping eccw


Usage

The following describe usage of ECCW class objects, callable from a python3 shell.

EccwCompute

This the core object that compute the solutions of the CCW problem.

>>> from eccw import EccwCompute
>>> foo = EccwCompute(phiB=30, phiD=10, beta=0)
>>> foo.show_params()
{ context       : 'Compression'
  beta          : 0.0
  alpha         : nan
  phiB          : 30.0
  phiD          : 10.0
  rho_f         : 0.0
  rho_sr        : 0.0
  delta_lambdaB : 0.0
  delta_lambdaD : 0.0
}
>>> foo.compute("alpha")
((3.4365319302835018,), (23.946319406533199,))

The result obtained with the compute method is always a tuple of two tuples. The first tuple contains results in inverse fault mechanism, while the second tuple contains results in normal fault mechanism. These tuples can each contain 0, 1 or 2 values, with a total always equal to 0 or 2. Here some more examples with computation of beta parameter::

>>> foo.alpha = 3.436532
>>> foo.compute("beta")
((-1.0516746372768912e-07,), (69.6779628783264,))
>>> foo.alpha = 20
>>> foo.compute("beta")
((), (-3.580929608343892, 43.25889259183777))
>>> foo.alpha = -20
>>> foo.compute("beta")
((36.74110740816224, 83.58092960834391), ())
>>> foo.alpha = -35
>>> foo.compute("beta")
((), ())

Have a look on the plot obtained in next section to understand these results.

EccwPlot

This the core object that plot the solutions of the CCW problem. This object inherits from EccwCompute.

>>> from eccw import EccwPlot
>>> foo = EccwPlot(phiB=30, phiD=10)
>>> foo.add_curve(inverse={'color':(1,0,0,1), 'label':'inverse'},
                  normal={'color':(0,0,1,1), 'label':'normal'})
>>> foo.add_point(alpha=3.436532)
>>> foo.add_point(alpha=20, style='*', size=10)
>>> foo.add_point(alpha=-20, style='s')
>>> foo.add_legend()
>>> foo.show()

screen copy of matplotlib window containing ECCW plot

Project details


Download files

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

Source Distribution

eccw-1.1.2.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

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

eccw-1.1.2-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file eccw-1.1.2.tar.gz.

File metadata

  • Download URL: eccw-1.1.2.tar.gz
  • Upload date:
  • Size: 35.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for eccw-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8c0207401e66405cb9952aacade0c952104b46bbaca078814a04f040bc924f25
MD5 78854a3bc25031806a83b9c34588e8bf
BLAKE2b-256 aeb8d94646f309c7edf23372c14dd9ab5518fa00653c66f974fd4b6c3c23a760

See more details on using hashes here.

File details

Details for the file eccw-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: eccw-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for eccw-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d5a6bcb6fbbf9732dd07eb25e88c472ef42ec178db677373e8b36ff3fd0d8f0f
MD5 4c480cb354ec859f81bef3ecd5f28150
BLAKE2b-256 a0e22ae46e04090673f24e155491c9a87c1ad1b49f2aca04e93edcb6b11abec9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page