Network#
- class Network(ideal_bond_length, force_constants=None)#
Bases:
object
- __init__(ideal_bond_length, force_constants=None)#
Methods
__init__
(ideal_bond_length[, force_constants])add_angled_triplet
(triplet, angle)add_connection
(connection)add_connections_from
(connections)add_point
(point, name)add_stiff_triplet
(triplet)add_stiff_triplets_from
(triplets)Compute the average distance between connected beads.
Compute the forces on each bead based on the force function.
compute_repulsive_ignore
()Compute the average distance between connected beads.
net_force_magnitude
()scale
(factor)Scale all bead positions by a given factor.
step
(dt)- average_connection_length()#
Compute the average distance between connected beads.
- compute_forces()#
Compute the forces on each bead based on the force function.
- distances()#
Compute the average distance between connected beads.
- scale(factor)#
Scale all bead positions by a given factor.