Welcome to liquidlib-python’s documentation!¶
Liquidlib-python presents a reconstructed mini-skeleton of LiquidLib in Python.
Liquidlib is a post-processing package for molecular simulations written in C++. It takes a trajectory (containing atomic coordinates, etc.) output from simulation, and compute some physical quantities as instructed by an input file, which defines all the necessary parameters for the calculation.
This repo is my attempt to apply design patterns to reconstruct LiquidLib. The code is more like a demo and many code blocks that implment the main algorithms have been skipped.
Indices and tables
Design patterns applied:
- Simple factory pattern: to instantiate a trajectory of specific type
- Strategy pattern: to select atoms of interest
- Decorator pattern: to validate inputs based on variable dependency
Useful references: