-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from samiransen23/main
Release 2.0.0
- Loading branch information
Showing
49 changed files
with
5,374 additions
and
1,830 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
[meta] | ||
# Name of the simulation. May be ommitted. | ||
name = "DPPC bilayer with ML interaction parameters" | ||
# Tags classifying the simulation. May be ommitted. | ||
tags = ["bilayer", "solvent", "DPPC"] | ||
|
||
[particles] | ||
# Number of total particles in the simulation. If an input .hdf5 format file is | ||
# specified, the number of particles will be inferred from this and *may* be | ||
# ommited. | ||
n_particles = 20336 | ||
# Mass of the particles in [g/mol]. All masses are assumed equal. | ||
mass = 72.0 | ||
# Maximum number of particles per molecules present in the system. A default of | ||
# 200 is assumed, and this keyword may be ommitted for any system with smaller | ||
# molecules. | ||
max_molecule_size = 15 | ||
|
||
[simulation] | ||
# Number of total time steps in the simulation in [picoseconds]. | ||
n_steps = 1 | ||
# Frequency of trajectory/energy file output in time steps. | ||
n_print = 1 | ||
# Frequency of requesting that the HDF5 library flush the file output buffers | ||
# to disk after in number of n_print timesteps. | ||
n_flush = 5000 | ||
# Time step used in the simulation in [picoseconds]. | ||
time_step = 0.3 | ||
# Simulation box size in [nanometers]. | ||
box_size = [13.0, 13.0, 14.0] | ||
# Time integrator used in the simulation. Either "velocity-verlet" or "respa". | ||
# If "respa", specify also the number of small rRESPA time steps per large | ||
# time_step with the 'respa_inner' keyword. | ||
integrator = "respa" | ||
respa_inner = 10 | ||
# Perform MPI rank domain decomposition every x time steps to (hopefully) | ||
# reduce the amount of neccessary communication between ranks in the pmesh | ||
# procedures. Ommit or set to 'false' or '0' to not perform any domain | ||
# decomposition. | ||
domain_decomposition = 1000 | ||
# Starting temperature to generate before simulation begins in [kelvin]. Ommit | ||
# or set to 'false' to not change the temperature before starting. | ||
start_temperature = 323 | ||
# Target temperature used in the velocity rescale thermostat in [kelvin]. Ommit | ||
# or set to 'false' to use no thermostat, i.e. a constant energy simulation. | ||
target_temperature = 323 | ||
# Thermostat collision frequency in [1/picoseconds]. | ||
tau = 0.1 | ||
# The energy functional W[phi] to use. Options: | ||
# "SquaredPhi": φ² / 2κφ₀, | ||
# "DefaultNoChi": (φ - φ₀)² / 2κφ₀ | ||
# "DefaultWithChi": (φ - φ₀)² / 2κφ₀ + Σ χφφ' / φ₀ | ||
# Subclass Hamiltonian to create a new energy functional. | ||
hamiltonian = 'DefaultWithChi' | ||
|
||
[field] | ||
# Particle-mesh grid size, either a single integer or an array of 3 integers | ||
# (number of grid points in each dimension). In order to guarantee consistency | ||
# and speed in the PFFT routines, the actual mesh grid will be changed to ensure | ||
# that each dimension of the 2d PFFT process grid divides each dimension of the | ||
# mesh grid size. | ||
mesh_size = [24, 24, 24] | ||
# Compressibility used in the relaxed incompressibility term of W(phi) in | ||
# [mol/kJ]. | ||
kappa = 0.05 | ||
# Standard deviation in the Gaussian filter (window function) in [nanometers]. | ||
# This value is a characzteristic length scale for the size of the particles in | ||
# the simulation. | ||
sigma = 0.5 | ||
# Interaction matrix, chi, ((atom name 1, atom name 2), (mixing energy in | ||
# [kJ/mol])). | ||
chi = [ | ||
[["C", "W"], [42.24]], | ||
[["G", "C"], [10.47]], | ||
[["N", "W"], [-3.77]], | ||
[["G", "W"], [4.53]], | ||
[["N", "P"], [-9.34]], | ||
[["P", "G"], [8.04]], | ||
[["N", "G"], [1.97]], | ||
[["P", "C"], [14.72]], | ||
[["P", "W"], [-1.51]], | ||
[["N", "C"], [13.56]], | ||
] | ||
|
||
[bonds] | ||
# Two-particle bonds, ((atom name 1, atom name 2), (equilibrium length in | ||
# [nanometers], bond strenght in [kJ/mol])). Note the two | ||
bonds = [ | ||
[["N", "P"], [0.47, 1250.0]], | ||
[["P", "G"], [0.47, 1250.0]], | ||
[["G", "G"], [0.37, 1250.0]], | ||
[["G", "C"], [0.47, 1250.0]], | ||
[["C", "C"], [0.47, 1250.0]], | ||
] | ||
# Three-particle angular bonds, ((atom name 1, atom name 2, atom name 3), | ||
# (equilibrium angle in [degrees], bond strenght in [kJ/mol])). | ||
angle_bonds = [ | ||
[["P", "G", "G"], [120.0, 25.0]], | ||
[["P", "G", "C"], [180.0, 25.0]], | ||
[["G", "C", "C"], [180.0, 25.0]], | ||
[["C", "C", "C"], [180.0, 25.0]], | ||
] |
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.. _pressure-label: | ||
|
||
Pressure | ||
######## | ||
Internal pressure is calculated from internal energy according to | ||
|
||
.. math:: | ||
P_a = \frac{1}{\mathcal{V}} \left( 2T_a - \text{Vir}_a \right) \\ | ||
\text{Vir}_a = L_a \frac{\partial \mathcal{U}}{\partial L_a} \\ | ||
\mathcal{U} = \sum_{i=1}^M \mathcal{U}_0( \{ \mathbf{r}\}_i ) + W[\{ \tilde\phi \} ] | ||
where | ||
:math:`\mathcal{V}` is the simulation volume, | ||
:math:`{T_a}` is the kinetic energy | ||
and :math:`L_a` the length of the box in the Cartesian direction :math:`a`, | ||
Vir is the virial of the total interaction energy :math:`\mathcal{U}`. | ||
|
||
:math:`\mathcal{U}` comprises intramolecular bonded terms :math:`\mathcal{U}_0` (see :ref:`bonds-label` for details), | ||
and field terms :math:`W[\{ \tilde\phi \} ]` (see :ref:`theory-label` for details). | ||
|
||
Using the above expressions, the following form for internal pressure is obtained: | ||
|
||
.. math:: | ||
P_a = \frac{2 T_a}{\mathcal{V}} -\frac{L_a}{\mathcal{V}} \sum_{i=1}^N \frac{\partial \mathcal{U}_{0i}}{\partial L_a} + P^{(3)}_a \\ | ||
.. P^{(3)}_a = - \frac{L_a}{\mathcal{V}} \frac{\partial W[\{ \tilde\phi \} ]}{\partial L_a} \\ | ||
.. math:: | ||
P^{(3)}_a = \frac{1}{\mathcal{V}}\left ( -W[\{ \tilde\phi(\mathbf{r}) \}] + \int \sum_t \bar{V}_t(\mathbf{r})\tilde\phi_t(\mathbf{r})d\mathbf{r} | ||
+ \int \sum_t \sigma^2\bar{V}_t(\mathbf{r})\nabla_a^2\tilde\phi_t(\mathbf{r}) d\mathbf{r} \right) | ||
where :math:`\bar{V}_t(\mathbf{r}) = \frac{\partial w(\{\tilde\phi\})}{\partial\tilde\phi_t}` | ||
and :math:`σ` is a coarse-graining parameter (see :ref:`filtering-label` for details). | ||
Note that the above expression is obtained for a Gaussian filter which is the most natural choice in HhPF theory. |
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
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
Oops, something went wrong.