src/minimize_energy.jl

MEDYAN.minimize_energy!

minimize_energy!(c::Context)::MinimizeEnergyResults

Minimize mechanical energy of the context.

Keyword Arguments

  • check_closest_cylinders::Bool=true:

If true, the function will warn if two cylinders get too close during minimization.

  • brownian_motion_time::Float64=Inf: This parameter is used to simulate the effect

of Brownian motion over a certain period of time in seconds. It is currently experimental. By default, the effect of Brownian motion is ignored.

  • g_tol::Float64=c.g_tol: The acceptable maximum residual force on any degree of freedom in pN.
  • iter_max::Int=c.iter_max_cg_minimization: The maximum number of congugate gradient iterations to do before exiting.