Commit d0ef7aa4 authored by Luuk Balkenende's avatar Luuk Balkenende

Added description to add_bead function

parent e8ba5e23
import numpy as np
import sys
def add_bead(pos, n, T_dim, j, p_pol):
"""Adds one bead to polymer, according to the Rosenblaum method
Parameters:
----------
pos: array of size (n_beads, 2)
Position of n_beads beads in x,y direction
n: integer > 0
Number of possible angles
T_dim: float > 0
Non-dimensionalized temperature
j: integer > 1
Bead j is the j-th bead which is added to polymer
p_pol: GAAT WAARSCHIJNLIJK TOCH NOG VERANDEREN
Results:
--------
pos: array of size (n_beads, 2)
Position of n_beads beads in x,y direction
p_pol: GAAT WAARSCHIJNLIJK TOCH NOG VERANDEREN
"""
# Standard phi, KAN NAAR MAIN.PY
phi_0 = np.linspace(0, 2 * np.pi - (2 / n) * np.pi, n)
phi = phi_0 + (1 - 2 * np.random.rand(n)) * np.pi / n
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment