written by
Harvey Gould, Jan Tobochnik, Wolfgang Christian, and Anne Cox

The STP XY Model program implements a Monte Carlo simulation of the planar ferromagnet or XY Model of spins on a lattice. The simulation returns the configuration of spins with the option of showing the vortices. The default system is a lattice of linear dimension L = 20 at temperature T = 0.89.

STP XYModel is part of a suite of Open Source Physics programs that model aspects of Statistical and Thermal Physics (STP). The program is distributed as a ready-to-run (compiled) Java archive. Double-clicking the stp_XYModel.jar file will run the program if Java is installed on your computer. Additional programs can be found by searching ComPADRE for Open Source Physics, STP, or Statistical and Thermal Physics.

Please note that this resource requires
at least version 1.5 of Java.

STP XY Model Documentation
A pdf document that briefly describes the STP XY Model program. It describes how to use the stp_XYModel.jar file and contains short tutorial exercises for use with the jar file. download 190kb .pdf
Published: March 6, 2009

STP XY Model Distribution
The materials distributed in this zip file are in support of the STP XYModel program. This distribution contains the program, documentation, and exercises. download 775kb .zip
Published: March 6, 2009
previous versions

Author: Fernando Falo
Posted: March 14, 2013 at 7:06AM

Hi, I am doing the questions of the STP XY model program and I have problems with the susceptibility calculation. I think that this magnitude is not properly calculated. As usual it should be calculated using the fluctuations of magnetization susc =( - **2)/T. From my test, I think the code is dividing by T**2 instead of T and not substracting **2. Although theory says that = 0 for any temperature this is not true for simulations in a finite system. I think one can get better results substracting <|M|>**2.

thanks for your attention and best regards

Fernando Falo Associate professor of condensed matter physics University of Zaragoza (spain)

H. Gould, J. Tobochnik, W. Christian, and A. Cox, Computer Program STP XY MODEL PROGRAM (2009), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047).

H. Gould, J. Tobochnik, W. Christian, and A. Cox, Computer Program STP XY MODEL PROGRAM (2009), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047>.

Gould, H., Tobochnik, J., Christian, W., & Cox, A. (2009). STP XY Model Program [Computer software]. Retrieved January 19, 2022, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047

Gould, H, J. Tobochnik, W. Christian, and A. Cox. "STP XY Model Program." https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047 (accessed 19 January 2022).

Gould, Harvey, Jan Tobochnik, Wolfgang Christian, and Anne Cox. STP XY Model Program. Computer software. 2009. Java 1.5. 19 Jan. 2022 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047>.

%A Harvey Gould %A Jan Tobochnik %A Wolfgang Christian %A Anne Cox %T STP XY Model Program %D March 6, 2009 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047 %O application/java

%0 Computer Program %A Gould, Harvey %A Tobochnik, Jan %A Christian, Wolfgang %A Cox, Anne %D March 6, 2009 %T STP XY Model Program %8 March 6, 2009 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=8642&DocID=1047

Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.