jax_dna.energy.dna1.fene

FENE energy function for DNA1 model.

Classes

FeneConfiguration

Configuration for the FENE energy function.

Fene

FENE energy function for DNA1 model.

Module Contents

class jax_dna.energy.dna1.fene.FeneConfiguration[source]

Bases: jax_dna.energy.configuration.BaseConfiguration

Configuration for the FENE energy function.

eps_backbone: float | None = None
r0_backbone: float | None = None
delta_backbone: float | None = None
fmax: float | None = None
finf: float | None = None
required_params: tuple[str] = ('eps_backbone', 'r0_backbone', 'delta_backbone', 'fmax', 'finf')
init_params() FeneConfiguration[source]

Initializes the dependent parameters in configuration.

Should be implemented in the subclass if dependent parameters are present.

class jax_dna.energy.dna1.fene.Fene[source]

Bases: jax_dna.energy.base.BaseEnergyFunction

FENE energy function for DNA1 model.

params: FeneConfiguration
pairwise_energies(body: jax_dna.energy.base.BaseNucleotide, bonded_neighbors: jax_dna.utils.types.Arr_Bonded_Neighbors_2) jax_dna.utils.types.Arr_Bonded_Neighbors[source]

Computes the FENE energy for each bonded pair.

__call__(body: jax_dna.energy.base.BaseNucleotide, seq: jax_dna.utils.types.Sequence, bonded_neighbors: jax_dna.utils.types.Arr_Bonded_Neighbors_2, unbonded_neighbors: jax_dna.utils.types.Arr_Unbonded_Neighbors_2) jax_dna.utils.types.Scalar[source]

Calculate the energy of the system.