pySigmaP Docs
  • Home
  • Illustrative example
    • Importing libraries
    • Block 1: Input loading data from an external file
    • Block 2: $C_\mathrm{c}$ and $C_\mathrm{r}$ calculated following published criteria
      • 2.1 - Default parameters: $C_\mathrm{c}$ (maximum slope) – $C_\mathrm{r}$ (opt=1)
      • 2.2: $C_\mathrm{c}$ (two last points) – $C_\mathrm{r}$ (opt=2)
      • 2.3: $C_\mathrm{c}$ (four last points) – $C_\mathrm{r}$ (opt=3)
    • Block 3: Computation of $\sigma_{\mathrm{p}}$ via the Casagrande method
      • 3.1: Default parameters: cubic spline function
      • 3.2: Fourth order polynomial (FOP)
      • 3.3: MCP manually introduced
    • Block 4: Computation of $\sigma_{\mathrm{p}}$ via the Pacheco Silva and Boone methods
      • 4.1: Pacheco Silva method
      • 4.2: Boone method
    • Block 5: Computation of $\sigma_{\mathrm{p}}$ via the bilogarithmic methods
      • 5.1: Butterfield method
      • 5.2: Oikawa method
      • 5.3: Onitsuka et al. method
    • Block 6: Computation of $\sigma_{\mathrm{p}}$ via the strain energy methods
      • 6.1: Becker et al. method
      • 6.2: Morin method
      • 6.3: Wang and Frost method
  • Package docstrings
  • History
  • References
pySigmaP Docs
  • Illustrative example
  • Edit on GitHub

Illustrative example¶

In [1]:
Copied!
%matplotlib inline
%matplotlib inline

Importing libraries¶

In [2]:
Copied!
from pysigmap.energy import WangAndFrost
from pysigmap.energy import BeckerEtAl
from pysigmap.bilog import Bilog
from pysigmap.boone import Boone
from pysigmap.pachecosilva import PachecoSilva
from pysigmap.casagrande import Casagrande
import pandas as pd
from pysigmap.data import Data
from pysigmap.energy import WangAndFrost from pysigmap.energy import BeckerEtAl from pysigmap.bilog import Bilog from pysigmap.boone import Boone from pysigmap.pachecosilva import PachecoSilva from pysigmap.casagrande import Casagrande import pandas as pd from pysigmap.data import Data

Block 1: Input loading data from an external file¶

In [3]:
Copied!
url = "https://raw.githubusercontent.com/eamontoyaa/data4testing/main/pysigmap/testData.csv"
df = pd.read_csv(url)
data = Data(df, sigmaV=75)
fig = data.plot()  # Figure 2a
url = "https://raw.githubusercontent.com/eamontoyaa/data4testing/main/pysigmap/testData.csv" df = pd.read_csv(url) data = Data(df, sigmaV=75) fig = data.plot() # Figure 2a
No description has been provided for this image

Block 2: $C_\mathrm{c}$ and $C_\mathrm{r}$ calculated following published criteria¶

2.1 - Default parameters: $C_\mathrm{c}$ (maximum slope) – $C_\mathrm{r}$ (opt=1)¶

In [4]:
Copied!
data.compressionIdx(range2fitCc=None)
data.recompressionIdx(opt=1)
fig = data.plot()  # Figure 2a
data.compressionIdx(range2fitCc=None) data.recompressionIdx(opt=1) fig = data.plot() # Figure 2a
No description has been provided for this image

2.2: $C_\mathrm{c}$ (two last points) – $C_\mathrm{r}$ (opt=2)¶

In [5]:
Copied!
data.compressionIdx(range2fitCc=(3000, 8000))
data.recompressionIdx(opt=2)
fig = data.plot()  # Figure 2b
data.compressionIdx(range2fitCc=(3000, 8000)) data.recompressionIdx(opt=2) fig = data.plot() # Figure 2b
No description has been provided for this image

2.3: $C_\mathrm{c}$ (four last points) – $C_\mathrm{r}$ (opt=3)¶

In [6]:
Copied!
data.compressionIdx(range2fitCc=(700, 8000))
data.recompressionIdx(opt=3)
fig = data.plot()  # Figure 2c
data.compressionIdx(range2fitCc=(700, 8000)) data.recompressionIdx(opt=3) fig = data.plot() # Figure 2c
No description has been provided for this image

Block 3: Computation of $\sigma_{\mathrm{p}}$ via the Casagrande method¶

In [7]:
Copied!
method = Casagrande(data)
method = Casagrande(data)

3.1: Default parameters: cubic spline function¶

In [8]:
Copied!
fig = method.getSigmaP(mcp=None, range2fitFOP=None, loglog=True)  # Figure 3a
fig = method.getSigmaP(mcp=None, range2fitFOP=None, loglog=True) # Figure 3a
No description has been provided for this image

3.2: Fourth order polynomial (FOP)¶

In [9]:
Copied!
fig = method.getSigmaP(range2fitFOP=[20, 5000], loglog=True)  # Figure 3b
fig = method.getSigmaP(range2fitFOP=[20, 5000], loglog=True) # Figure 3b
No description has been provided for this image

3.3: MCP manually introduced¶

In [10]:
Copied!
fig = method.getSigmaP(mcp=200)  # Not shown
fig = method.getSigmaP(mcp=200) # Not shown
No description has been provided for this image

Block 4: Computation of $\sigma_{\mathrm{p}}$ via the Pacheco Silva and Boone methods¶

4.1: Pacheco Silva method¶

In [11]:
Copied!
method = PachecoSilva(data)
fig = method.getSigmaP()  # Figure 3c
method = PachecoSilva(data) fig = method.getSigmaP() # Figure 3c
No description has been provided for this image

4.2: Boone method¶

In [12]:
Copied!
method = Boone(data)
fig = method.getSigmaP()  # Figure 3d
method = Boone(data) fig = method.getSigmaP() # Figure 3d
No description has been provided for this image

Block 5: Computation of $\sigma_{\mathrm{p}}$ via the bilogarithmic methods¶

In [13]:
Copied!
method = Bilog(data)
method = Bilog(data)

5.1: Butterfield method¶

In [14]:
Copied!
fig = method.getSigmaP(range2fitRR=None, range2fitCR=None, opt=1)  # Figure 4a
fig = method.getSigmaP(range2fitRR=None, range2fitCR=None, opt=1) # Figure 4a
No description has been provided for this image

5.2: Oikawa method¶

In [15]:
Copied!
fig = method.getSigmaP(
    range2fitRR=None, range2fitCR=[1000, 5000], opt=2)  # Figure 4b
fig = method.getSigmaP( range2fitRR=None, range2fitCR=[1000, 5000], opt=2) # Figure 4b
No description has been provided for this image

5.3: Onitsuka et al. method¶

In [16]:
Copied!
fig = method.getSigmaP(
    range2fitRR=[0, 30], range2fitCR=[1000, 9000], opt=3)  # Figure 4c
fig = method.getSigmaP( range2fitRR=[0, 30], range2fitCR=[1000, 9000], opt=3) # Figure 4c
No description has been provided for this image

Block 6: Computation of $\sigma_{\mathrm{p}}$ via the strain energy methods¶

In [17]:
Copied!
method = BeckerEtAl(data)
method = BeckerEtAl(data)

6.1: Becker et al. method¶

In [18]:
Copied!
fig = method.getSigmaP(range2fitRR=None, range2fitCR=None,
                       morinFormulation=False, zoom=5.5)  # Figure 5a
fig = method.getSigmaP(range2fitRR=None, range2fitCR=None, morinFormulation=False, zoom=5.5) # Figure 5a
No description has been provided for this image

6.2: Morin method¶

In [19]:
Copied!
fig = method.getSigmaP(range2fitRR=[0, 100], range2fitCR=[700, 9000],
                       morinFormulation=True, zoom=5.5)  # Figure 5b
fig = method.getSigmaP(range2fitRR=[0, 100], range2fitCR=[700, 9000], morinFormulation=True, zoom=5.5) # Figure 5b
No description has been provided for this image

6.3: Wang and Frost method¶

In [20]:
Copied!
method = WangAndFrost(data)
fig = method.getSigmaP(range2fitCR=None)  # Figure 5c
method = WangAndFrost(data) fig = method.getSigmaP(range2fitCR=None) # Figure 5c
No description has been provided for this image
Previous Next

Copyright © 2023 Exneyder A. Montoya-Araque, A. J. Aparicio-Ortube, D. G. Zapata-Medina, and L. G. Arboleda-Monsalve

Built with MkDocs using a theme provided by Read the Docs.