@@ -7,10 +7,8 @@ SET c1 instead of xi -> easier for this purpose!
here c1=phi is the number of fusions per reptation time
######
REMOVE ALL ARRAYS BC RELAXATION TIME DIVERGES SO VERY LONG SIMULATIONS ARE NEEDED
Since there is no breakage when L>100 the relaxation is longer than the total simulation time so the sim is stopped and the longest relax time recorded.
#######
1. The reptation of a polymer within a tube
2. breakage
=> How does the viscosity depend on the mean length?
*/
#include<iostream>
...
...
@@ -24,16 +22,16 @@ REMOVE ALL ARRAYS BC RELAXATION TIME DIVERGES SO VERY LONG SIMULATIONS ARE NEEDE
usingnamespacestd;
/* CONSTANTS */
constintREPMAX=100;
constintREPMAX=300;
constdoubledL=0.01;//
constdoubledt=0.01;//integration time
constdoubletau=1.0;//unit of time (100dt)
constdoubleL0=0.5;//L0 sets the units of length (100dL)
constdoubleD0=0.01;//monomer diffusion. In units of L0^2/dt
constdoubleL0=1.0;//L0 sets the units of length (100dL)
constdoubleD0=0.1;//monomer diffusion. In units of L0^2/dt
//if L0=1; set D0=(1/dt) to get L0^2 monomer diffusion every