Title: libpyvinyl-v0.0.2
Type Software Carsten Fortmann-Grote (2020): libpyvinyl-v0.0.2. Zenodo. Software. https://zenodo.org/record/4245765
Links
- Item record in Zenodo
- Digital object URL
Summary
The python package libpyvinyl exposes the high level API for simulation codes under the umbrella of the Virtual Neutron and x-raY Laboratory (ViNYL).
The fundamental class is the BaseCalculator and its sister class Parameters. While Parameters is a pure state engine, i.e. it's sole purpose is to encapsulate the physical, numerical, and computational parameters of a simulation, the BaseCalculator exposes the interface to
Configure a simulation (through the corresponding Parameters instance) Launch the simulation run Collect the simulation output data and make it queriable as a class attribute Snapshoot a simulation by dumping the object to disk (using the dill library). Reload a simulation run from disk and continue the run with optionally modified parameters.The BaseCalculaton is an abstract base class, it shall not be instantiated as such. The anticipated use is to inherit specialised Calculators from BaseCalculator and to implement the core functionality in the derived class. In particular, this is required for the methods responsible to launch a simulation (run()) .
As an example, we demonstrate in an accompanying notebook how to declare a derived Calculator and implement a backengine method. The example then shows how to run the simulation, store the results in a hdf5 file, snapshot the simulation and reload the simulation into memory.
More information
- DOI: 10.5281/zenodo.4245765
Subjects
- photon and neutron open scienc cloud, panosc, simulations, API, virtual neutron and x-ray laboratory, simex, mcstas, oasys
Dates
- Publication date: 2020
- Issued: November 05, 2020
Notes
Other: {"references": ["Python Package Index (PyPI) link: https://pypi.org/project/libpyvinyl/"]}Rights
- info:eu-repo/semantics/openAccess Open Access
Funding Information
Awardnumber | Awarduri | Funderidentifier | Funderidentifiertype | Fundername |
---|---|---|---|---|
823852 | info:eu-repo/grantAgreement/EC/H2020/823852/ | 10.13039/100010661 | Crossref Funder ID | European Commission |
Format
electronic resource
Relateditems
Description | Item type | Relationship | Uri |
---|---|---|---|
Compiles | https://pypi.org/project/libpyvinyl/ | ||
IsVersionOf | https://doi.org/10.5281/zenodo.4245764 | ||
IsPartOf | https://zenodo.org/communities/panosc | ||
IsPartOf | https://zenodo.org/communities/zenodo |