Network#
- class Network(ideal_bond_length)#
Bases:
object
- __init__(ideal_bond_length)#
Methods
__init__
(ideal_bond_length)add_angled_triplet
(triplet, angle)add_connection
(connection)add_point
(point, name)add_stiff_triplet
(triplet)Compute the average distance between connected beads.
closest_endpoint_to_vertex
(vertex, endpoint)Return the name of the first point next to name_src that points towards name_dst.
Compute the forces on each bead based on the force function.
Compute the average distance between connected beads.
index
(point)points_within_radius
(point, radius)sanity_check
()scale
(factor)Scale all bead positions by a given factor.
step
(dt)- average_connection_length()#
Compute the average distance between connected beads.
- closest_endpoint_to_vertex(vertex, endpoint)#
Return the name of the first point next to name_src that points towards name_dst.
- 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.