HILA
Loading...
Searching...
No Matches
suN_gauge.cpp File Reference

Application to simulate \( SU(N) \) Gauge field. More...

#include "hila.h"
#include "gauge/staples.h"
#include "gauge/polyakov.h"
#include "gauge/stout_smear.h"
#include "gauge/sun_heatbath.h"
#include "gauge/sun_overrelax.h"
#include "tools/checkpoint.h"
#include <fftw3.h>
#include "parameters.h"
Include dependency graph for suN_gauge.cpp:

Go to the source code of this file.

Functions

int z_ind (int z)
 Helper function to get valid z-coordinate index.
 
template<typename group >
void measure_stuff (const GaugeField< group > &U, const parameters &p)
 Measures Polyakov lines and Wilson action.
 
template<typename group >
void update (GaugeField< group > &U, const parameters &p, bool relax)
 Wrapper update function.
 
template<typename group >
void update_parity_dir (GaugeField< group > &U, const parameters &p, Parity par, Direction d, bool relax)
 Wrapper function to updated GaugeField per direction.
 
template<typename group >
void do_trajectory (GaugeField< group > &U, const parameters &p)
 Evolve gauge field.
 

Detailed Description

Application to simulate \( SU(N) \) Gauge field.

Simple application which Generates \( SU(N) \) GaugeField using staplesum, suN_overrelax and suN_heatbath. Each evolution, the application measures the Wilson action using GaugeField::measure_plaq and Polyakov lines using measure_polyakov.

Definition in file suN_gauge.cpp.

Function Documentation

◆ do_trajectory()

template<typename group >
void do_trajectory ( GaugeField< group > &  U,
const parameters &  p 
)

Evolve gauge field.

Evolution happens by means of heat bath and over relaxation. For each heatbath update (p.n_update) we update p.n_overrelax times with over relaxation.

Template Parameters
group
Parameters
U
p

Definition at line 147 of file suN_gauge.cpp.

◆ measure_stuff()

template<typename group >
void measure_stuff ( const GaugeField< group > &  U,
const parameters &  p 
)

Measures Polyakov lines and Wilson action.

Template Parameters
group
Parameters
UGaugeField to measure
pParameter struct

Definition at line 41 of file suN_gauge.cpp.

◆ update()

template<typename group >
void update ( GaugeField< group > &  U,
const parameters &  p,
bool  relax 
)

Wrapper update function.

Updates Gauge Field one direction at a time first EVEN then ODD parity

Template Parameters
group
Parameters
UGaugeField to update
pParameter struct
relaxIf true evolves GaugeField with over relaxation if false then with heat bath

Definition at line 73 of file suN_gauge.cpp.

◆ update_parity_dir()

template<typename group >
void update_parity_dir ( GaugeField< group > &  U,
const parameters &  p,
Parity  par,
Direction  d,
bool  relax 
)

Wrapper function to updated GaugeField per direction.

Computes first staplesum, then uses computed result to evolve GaugeField either with over relaxation or heat bath

Template Parameters
group
Parameters
UGaugeField to evolve
pparameter struct
parParity
dDirection to evolve
relaxIf true evolves GaugeField with over relaxation if false then with heat bath

Definition at line 100 of file suN_gauge.cpp.

◆ z_ind()

int z_ind ( int  z)

Helper function to get valid z-coordinate index.

Parameters
z
Returns
int

Definition at line 29 of file suN_gauge.cpp.