Metadata-Version: 2.1
Name: sansmic
Version: 1.0.2
Summary: Sandia solution mining modeling software
Author: National Technology & Engineering Solutions of Sandia, LLC (NTESS), SANSMIC Authors (see AUTHORS.md)
Maintainer-email: David Hart <david.hart@sandia.gov>
Project-URL: Documentation, https://sandialabs.github.io/sansmic
Project-URL: Issues, https://github.com/sandialabs/sansmic/issues
Project-URL: Repository, https://github.com/sandialabs/sansmic.git
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: C++
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS.md
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: click
Requires-Dist: tomli ; python_version < "3.11"
Provides-Extra: devel
Requires-Dist: pyyaml ; extra == 'devel'
Requires-Dist: pre-commit ; extra == 'devel'
Requires-Dist: pyproject-hooks ; extra == 'devel'
Requires-Dist: pytest ; extra == 'devel'
Requires-Dist: pytest-cov ; extra == 'devel'
Requires-Dist: black ; extra == 'devel'
Requires-Dist: pybind11 ; extra == 'devel'
Requires-Dist: nbmake ; extra == 'devel'
Requires-Dist: matplotlib ; extra == 'devel'
Requires-Dist: python-semantic-release ; extra == 'devel'
Provides-Extra: docs
Requires-Dist: Sphinx ; extra == 'docs'
Requires-Dist: pydata-sphinx-theme ; extra == 'docs'
Requires-Dist: sphinx-design ; extra == 'docs'
Requires-Dist: sphinxcontrib-bibtex ; extra == 'docs'
Requires-Dist: breathe ; extra == 'docs'
Requires-Dist: exhale ; extra == 'docs'
Requires-Dist: sphinx-click ; extra == 'docs'
Provides-Extra: examples
Requires-Dist: nbmake ; extra == 'examples'
Requires-Dist: matplotlib ; extra == 'examples'
Provides-Extra: formats
Requires-Dist: h5py ; extra == 'formats'
Requires-Dist: openpyxl ; extra == 'formats'
Requires-Dist: tabulate ; extra == 'formats'
Requires-Dist: pyyaml ; extra == 'formats'
Requires-Dist: lasio ; extra == 'formats'
Provides-Extra: tests
Requires-Dist: pytest ; extra == 'tests'
Requires-Dist: pytest-cov ; extra == 'tests'

![Lines of code](https://sloc.xyz/github/sandialabs/sansmic/?category=code)
[![codecov](https://codecov.io/github/sandialabs/sansmic/graph/badge.svg?token=oDeMIUHoqg)](https://codecov.io/github/sandialabs/sansmic)

[![Continuous Integration - Full Test Target Suite](https://github.com/sandialabs/sansmic/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/sandialabs/sansmic/actions/workflows/continuous-integration.yml)
[![Deploy Sphinx documentation](https://github.com/sandialabs/sansmic/actions/workflows/gh-pages.yml/badge.svg?branch=main)](https://github.com/sandialabs/sansmic/actions/workflows/gh-pages.yml)

[![pypi](https://img.shields.io/pypi/v/sansmic.svg?maxAge=3600)](https://pypi.org/project/sansmic/)
[![Downloads](https://static.pepy.tech/badge/sansmic)](https://pepy.tech/project/sansmic)

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9399/badge)](https://www.bestpractices.dev/projects/9399)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/sandialabs/sansmic/badge)](https://scorecard.dev/viewer/?uri=github.com/sandialabs/sansmic)

## SANSMIC

SANSMIC (or sansmic) is research software developed to simulate the
leaching of salt caverns.
Its primary use has been modeling the leaching for the caverns at the
U.S. Strategic Petroleum Reserve (SPR).
SANSMIC differs from other leaching software as it implements a
simultaneous leach+fill simulation which was used in the 1980s during
the construction and original fill of the SPR Bryan Mound site. The
primary use for SANSMIC is for modeling liquid petroleum product
storage caverns that use raw water for product withdrawals, and as
a comparison point for newer salt disolution models.

All lower-case 'sansmic' is used as the repository name and remaining
documentation to differentiate this package from the older SANSMIC
program written in FORTRAN - and because all-caps feels very loud.
The sansmic package provided here is a re-write of the original program
using the C++ and Python programming languages.

### Installation
The sansmic package requires Python 3.9 or greater and at least the
numpy and pandas packages.

Installation can be accomplished most easily by using the PyPI.
It can also be installed by downloading a wheel from the [releases]
in this repository, or by cloning this repository and building it
yourself.

#### PyPI wheels
To install a pre-compiled version of sansmic, use the pip command

    python -m pip install sansmic


#### Build from source
To download and build from source, you should clone the repository
(or, fork sansmic and clone your repository) and then install using
the editable (``-e``) flag.

    git clone https://github.com/sandialabs/sansmic.git
    cd sansmic
    python -m pip install -e .


### Usage
Once installed, you can use

    sansmic --help

and

    sansmic-convert --help

to get help on how to run sansmic commands from the command line.
For more detailed usage and API information, please see
[our documentation](https://sandialabs.github.io/sansmic/).


### Citing sansmic
If you use sansmic for a publication, please use the following citation:

* Hart, David, & Zeitler, Todd, & Maurer, Hannah. (2024). *SANSMIC v.1.0*. [Computer software].
  https://github.com/sandialabs/sansmic.
  [doi:10.11578/dc.20240911.9](https://doi.org/10.11578/dc.20240911.9)

The list of current contributors is located in the [AUTHORS](AUTHORS.md) file.
If you would like to contribute, please read the 
[guide to contributing](CONTRIBUTING.md).

### License & Copyright
See [LICENSE](LICENSE) and [COPYRIGHT](COPYRIGHT.md).

[Sandia National Laboratories](https://www.sandia.gov) 
is a multimission laboratory managed
and operated by National Technology & Engineering Solutions of Sandia,
LLC, a wholly owned subsidiary of Honeywell International Inc., for
the U.S. Department of Energy's National Nuclear Security
Administration under contract DE-NA0003525.
