Skip to content

Note

Click here to download the full example code

Toyoura Sand (Undrained)

Undrained triaxial tests on Toyoura sand with DEM 1.

import pandas as pd

from micromechanical.cli.plot import PlotCLI, PlotConfig

config: PlotConfig = PlotCLI.loadConfig("../../calibrations/micromechanical-plots.yaml")
plot_name = "Gu2014-undrained-CH-OSIMSAND-two-column"
plot_config = config.plots[plot_name]

Parameters

pd.DataFrame(
    {
        key.replace("micromechanical.calibrationkey:FabricCoefficientKey(", "").replace(")", ""): value
        for key, value in plot_config.calibration.read(config.root).parameters.items()
    },
    index=["Gu2014-undrained"],
)
Ad Lambda eref kn0 kpr krr Fc0 h m n nd ne np phi xi
Gu2014-undrained 1.148194 0.046703 0.711992 86.368273 0.365628 0.291645 0.407455 223.610607 1.884125 0.004209 6.585417 0.003632 1.976467 15.581606 1.388887

Figures

plot_config.plot(plot_name, grids=config.grids, save=False, overwrite=False, exclude_figures=["macroscopic-anisotropy"])

(a), (b), (c), (d)

Out:

/home/runner/work/micromechanical/micromechanical/micromechanical/cli/_figureoptions.py:333: UserWarning: The figure Gu2014-undrained-CH-OSIMSAND-two-column -> macroscopic is not generated because the `generate` option is set to False.
  warnings.warn(
Running CH-OSIMSAND model for experiment Gu2014-undrained-Dense-50 ...
Finished in 0.905 seconds.
Running CH-OSIMSAND model for experiment Gu2014-undrained-Dense-400 ...
Finished in 0.906 seconds.
Running CH-OSIMSAND model for experiment Gu2014-undrained-Very-Dense-100 ...
Finished in 0.857 seconds.
Running CH-OSIMSAND model for experiment Gu2014-undrained-Dense-100 ...
Finished in 0.930 seconds.
Running CH-OSIMSAND model for experiment Gu2014-undrained-Medium-Dense-100 ...
Finished in 0.884 seconds.
Running CH-OSIMSAND model for experiment Gu2014-undrained-Very-Loose-100 ...
Finished in 0.913 seconds.

{'macroscopic-confining': <Figure size 1000x800 with 4 Axes>, 'macroscopic-density': <Figure size 1000x800 with 4 Axes>}

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

Download Python source code: plot_gu2014_undrained_osimsand.py

Download Jupyter notebook: plot_gu2014_undrained_osimsand.ipynb

Gallery generated by mkdocs-gallery


  1. Gu, X., Huang, M., & Qian, J. (2014). DEM investigation on the evolution of microstructure in granular soils under shearing. Granular Matter, 16(1), 91–106. https://doi.org/10.1007/s10035-013-0467-z