Git Product home page Git Product logo

3d-gross-neveu-model's Introduction

Code for simulating the Z_2 Gross-Neveu model

The code simulates the Z_2 globally invariant Gross-Neveu model in (2+1) dimensions.
To compile the code on a local machine, execute the command

gcc -O3 *.c -o GNModel -lm

Some compilers may have troubles with the cronotime.* files. You may delete those files without problems. When you run the code, 7 parameters are needed as input parameters

  1. double : beta -> plaquette coupling
  2. double : beta_scalar -> variance of the sigma field coupling
  3. double : mass -> mass of the fermion field
  4. double : epsilon_link -> infinitesimal time step for the link HMC
  5. double : epsilon_sigma -> infinitesimal time step for the sigma HMC
  6. double : epsilon_pi -> infinitesimal time step for the pi HMC
  7. int : step_link -> number of steps of the HMC trajectory for the link variables
  8. int : step_sigma -> number of steps of the HMC trajectory for the sigma field
  9. int : step_pi -> number of steps of the HMC trajectory for the pi field
  10. int : seed -> random number seed

To run the code with $\beta_s=0.85$, and a HMC update with two-step update whose length is step_sigma=0.2 use

./GNModel 0.0 0.85 0.0 0.0 0.2 0.0 0 2 0 1231

We strongly suggest to run always the code with #define START_X0_NULL instead to #define START_X0_PREVIOUS to ensure detailed balance of the HMC algorithm. The lattice hamiltonian reads as follows

$$ H = \sum_{x, y} \bar{\psi}x M{x, y} \psi_y + \frac{N_f \beta_s}{4}\sum_{\widetilde{x}}\sigma^2_{\widetilde{x}}$$

where the Dirac matrix $M_{x,y}$ is defined as follows

$$M_{x,y}=\sum_{\mu=1}^3\frac{\eta_\mu(x)}{2}[\delta_{y,x+\mu}-\delta_{y,x-\mu}] + \frac{1}{8}\sum_{\langle x,\widetilde{x}\rangle}\sigma_{\widetilde{x}}$$

3d-gross-neveu-model's People

Contributors

alefrajoe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.