-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd67c8b
commit e2ea067
Showing
11 changed files
with
81 additions
and
336 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,21 @@ | ||
# md-lv | ||
Overdamped Langevin dynamics with periodic boundary conditions in Rust. This code is meant to be run on very small systems (N < 100) due to the lack of internal neighbor data. | ||
Simulation code of overdamped Langevin dynamics with periodic boundary conditions in Rust. This code implements a basic simulation mode, as well as a gradient-descent based equilibration/quenching and the Chen and Horing method for biasing of the system potential. Due to the lack of internal neighbor data this code is meant to be run on quite small systems (N < 100). The binary `md-lv` is the main executable from which simulations are run. The `scripts` directory contains workflows for automating simulation execution, and `notebooks` contains code for the post-processing analysis. | ||
|
||
![Ovito output](movies/liquid1.gif) | ||
|
||
# Building | ||
Building md-lv just requires `rustc` and `cargo`. | ||
Building md-lv just requires `cargo`, which is easily obtained by download `rustup` from | ||
|
||
```bash | ||
cargo build --release | ||
``` | ||
|
||
# Usage Description | ||
|
||
Simply run `./target/release/md-lv` to run the simulation with default parameters. Additional parameters can be specified at the command line as show below. | ||
Additionally the binary can be installed in the `$PATH` by running | ||
|
||
```bash | ||
cargo install --path . | ||
``` | ||
Langevin dynamics simulation 0.2.1 | ||
Ian Graham <irgraham1@gmail.com> | ||
Runs a simulation of a collection of Hertzian particles in the NVT ensemble. Applies overdamped langevin dynamics to update the system. | ||
|
||
USAGE: | ||
md-lv [OPTIONS] | ||
FLAGS: | ||
-h, --help Prints help information | ||
-V, --version Prints version information | ||
# Usage Description | ||
|
||
OPTIONS: | ||
-d, --dim <DIM> Dimensions of the simulation box (2 or 3) [default: 2] | ||
--dt <DT> Size of the system timestep [default: 1e-3] | ||
-i, --iostep <IO> Number of steps between messages to stdout [default: 100_000] | ||
-n, --num <NUM> Number of particles in the box [default: 10] | ||
-o, --outstep <OUT> Number of steps between dump to output [default: 10] | ||
--seed <SEED> Random seed to initialize the system state [default: 0] | ||
-s, --steps <STEP> Maximum number of simulation steps [default: 100_000] | ||
-t, --temp <TEMP> Temperature of the system [default: 0.5] | ||
--visc <VISC> Viscous drag coefficient on the particles of the system [default: 5.0] | ||
-v, --vol <VOL> Volume (area) of the box [default: 6.5] | ||
``` | ||
Simply execute `./target/release/md-lv` to run a basic simulation. CLI parameters can be shown with the `--help` flag. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.