Monte Carlo for Classical Ising Model

flipConfig1D | Given Flip a site randomly |

flipConfig1Dmany | Flip a single site randomly many times |

flipConfig1D_R | Given Flip a site randomly |

genConfig1D | Generate one dimensional spin sites randomly |

genConfig1D_R | Generate one dimensional spin sites randomly |

genUniform | Get uniformly a spin state |

isPerform1D | Perform metropolis MC on 1D Ising model |

isStep1D | Carry one step Metropolis Monte Carlo on 1D ising model |

lattice1DenergyNN | Nearest-Neighbour energy in periodic boundary conditions in... |

lattice1DenergyNN_R | Nearest-Neighbour energy in periodic boundary conditions in... |

sumVec | Sum given vector |

sumVec_R | Sum given vector |

totalEnergy1D | Total energy in periodic boundary conditions in 1D |

totalEnergy1D_R | Total energy in periodic boundary conditions in 1D |

transferMatrix | Compute theoretical transfer matrix |

transitionProbability1D | Compute transition probability using Boltzmann distribution. |

transitionProbability1D_R | Compute transition probability using Boltzmann distribution. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.