mythos.energy.martini.m2.lj
Lennard-Jones potential energy function for Martini 2.
Attributes
Classes
"Configuration for Martini Lennard-Jones energy function. |
|
Lennard-Jones potential energy function for Martini 2. |
Functions
|
Calculate Lennard-Jones potential given distance r, epsilon, and sigma. |
|
Calculate LJ energy for a given pair of particles. |
Module Contents
- mythos.energy.martini.m2.lj.LJ_SIGMA_PREFIX = 'lj_sigma_'
- mythos.energy.martini.m2.lj.LJ_EPSILON_PREFIX = 'lj_epsilon_'
- class mythos.energy.martini.m2.lj.LJConfiguration(couplings: dict[str, list[str]] | None = None, **kwargs)[source]
Bases:
mythos.energy.martini.base.MartiniEnergyConfiguration“Configuration for Martini Lennard-Jones energy function.
All parameters provided must be of the form “lj_sigma_A_B” or “lj_epsilon_A_B”, where A and B are bead types. Pair order is ignored unless both orderings are provided. It is required that sigma and epsilon parameters are provided for any bead type pairs present in the system.
Couplings are supported (see
MartiniEnergyConfigurationfor details).
- mythos.energy.martini.m2.lj.lennard_jones(r: float, eps: float, sigma: float) float[source]
Calculate Lennard-Jones potential given distance r, epsilon, and sigma.
- mythos.energy.martini.m2.lj.pair_lj(centers: mythos.utils.types.Arr_States_3, pair: mythos.utils.types.Vector2D, sigmas: mythos.utils.types.MatrixSq, epsilons: mythos.utils.types.MatrixSq, types: mythos.utils.types.Arr_N, displacement_fn: callable) float[source]
Calculate LJ energy for a given pair of particles.
- class mythos.energy.martini.m2.lj.LJ[source]
Bases:
mythos.energy.martini.base.MartiniEnergyFunctionLennard-Jones potential energy function for Martini 2.
- params: LJConfiguration
- compute_energy(trajectory: mythos.simulators.io.SimulatorTrajectory) float[source]
Compute the energy of the system given the nucleotide.