This is a limited proof of concept to search for research data, not a production system.

Search the MIT Libraries

Title: libpyvinyl-v0.0.2

Type Software Carsten Fortmann-Grote (2020): libpyvinyl-v0.0.2. Zenodo. Software. https://zenodo.org/record/4245765

Authors: Carsten Fortmann-Grote (European X-ray Free Electron Laser GmbH) ; Bertelsen (Mads) ; E (Juncheng) ;

Links

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

Much of the data past this point we don't have good examples of yet. Please share in #rdi slack if you have good examples for anything that appears below. Thanks!

Funding Information

AwardnumberAwarduriFunderidentifierFunderidentifiertypeFundername
823852info:eu-repo/grantAgreement/EC/H2020/823852/10.13039/100010661Crossref Funder IDEuropean Commission

Format

electronic resource

Relateditems

DescriptionItem typeRelationshipUri
Compileshttps://pypi.org/project/libpyvinyl/
IsVersionOfhttps://doi.org/10.5281/zenodo.4245764
IsPartOfhttps://zenodo.org/communities/panosc
IsPartOfhttps://zenodo.org/communities/zenodo