spatially-virus-evolution eighiv.m is the method to calculate the basic reproductive number $R_0$ for the HIV model (the effect of blood is considered). The eigenvalues of HCV model are calculated in the prcc files. simulation_virus.m is the algorithm to do the simulation.