Skip to main content

SIESTAstepper runs SIESTA step by step, designed for constrained calculations.

Project description

SIESTAstepper

PyPI version PyPI pyversions PyPI download month PyPI download week PyPI download day GitHub all releases GitHub contributors CodeFactor PyPI license DOI

SIESTAstepper runs SIESTA step by step, designed for constrained calculations.

Installation

Use the package manager pip to install SIESTAstepper.

pip install SIESTAstepper

Usage

All SIESTA working directories must be named as i1, i2, i3 ... and so on.

In code

import SIESTAstepper

#Sets the path of the working directory
SIESTAstepper.cwd = "path/to/working/directory"

#Sets the name of SIESTA log files (default is "log")
SIESTAstepper.log = "log"

#Sets number of cores for parallel run
SIESTAstepper.cores = 4

#Sets Anaconda environment
SIESTAstepper.conda = "envir"

# Runs SIESTA step by step
SIESTAstepper.run("graphene")

# Converts last geometry of an ANI to FDF by using the previous FDF and ANI files
SIESTAstepper.ani_to_fdf("path/to/ANI", "path/to/FDF", "path/to/newFDF")

# Converts XYZ to FDF by using the previous FDF and XYZ files
SIESTAstepper.xyz_to_fdf("path/to/XYZ", "path/to/FDF", "path/to/newFDF")

#Merges ANI files
SIESTAstepper.merge_ani(label = "graphene")

#Merges ANI files by setting a path
SIESTAstepper.merge_ani(label = "graphene", path = "path/to/i*/ANI/files")

#Merges ANI files by setting a missing files path
SIESTAstepper.merge_ani(label = "graphene", missing="path/to/i*/missing/ANI/files")

# Runs SIESTA a for given step
SIESTAstepper.run_next("1", "graphene")

# Plots and returns energies from log files
SIESTAstepper.analysis()

# Returns energies from log files without plotting
SIESTAstepper.analysis(plot_ = False)

# Plots and returns energies from log files by setting a path
SIESTAstepper.analysis(path = "path/to/i*/log/files")

# Plots and returns energies from log files by setting a missing files path
SIESTAstepper.analysis(missing = "path/to/i*/missing/log/files")

In terminal

python -m SIESTAstepper run log

python -m SIESTAstepper run log mpirun=4

python -m SIESTAstepper run log conda=envir

python -m SIESTAstepper run_next log 1 graphene

python -m SIESTAstepper run_next log 1 graphene mpirun=4

python -m SIESTAstepper run_next log 1 graphene conda=envir

python -m SIESTAstepper ani_to_fdf path/to/ANI path/to/FDF path/to/newFDF

python -m SIESTAstepper xyz_to_fdf path/to/XYZ path/to/FDF path/to/newFDF

python -m SIESTAstepper merge_ani graphene

python -m SIESTAstepper merge_ani graphene path=path/to/i*/ANI/files

python -m SIESTAstepper merge_ani graphene missing=path/to/i*/missing/ANI/files

python -m SIESTAstepper analysis log

python -m SIESTAstepper analysis log noplot

python -m SIESTAstepper analysis log path=path/to/i*/log/files

python -m SIESTAstepper analysis log missing=path/to/i*/missing/log/files

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Citation

@software{eftal_gezer_2022_7058750,
  author       = {Eftal Gezer},
  title        = {eftalgezer/SIESTAstepper: v0.4.0},
  month        = sep,
  year         = 2022,
  publisher    = {Zenodo},
  version      = {v0.4.0},
  doi          = {10.5281/zenodo.7058750},
  url          = {https://doi.org/10.5281/zenodo.7058750}
}

License

GNU General Public License v3.0

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

SIESTAstepper-0.4.0.linux-x86_64.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file SIESTAstepper-0.4.0.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for SIESTAstepper-0.4.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 08e30dc7e0eadb6327a8e0ff468d21c82e94ea4203b0ea51effebaa21aa5c580
MD5 73eb5b77a013031c58f30b11a9550b30
BLAKE2b-256 40752e4e5b750ee872dd23565a0a2fa6df7a51f799f31be0c4affc76471d3c72

See more details on using hashes here.

Supported by

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