summaryrefslogtreecommitdiff
path: root/lib/initial_finite.h
blob: 542f923c9f40df97065f4b2d67a9756dfcbde095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#pragma once

#include <stdbool.h>

#include "types.h"
#include "dihedral.h"
#include "cluster_finite.h"

static char *finite_model_t_strings[] = {"ISING", "POTTS", "CLOCK", "DGM"};

typedef enum {
  ISING,
  POTTS,
  CLOCK,
  DGM
} finite_model_t;

state_finite_t *initial_finite_prepare_ising(D_t D, L_t L, double T, double *H);
state_finite_t *initial_finite_prepare_potts(D_t D, L_t L, q_t q, double T, double *H);
state_finite_t *initial_finite_prepare_clock(D_t D, L_t L, q_t q, double T, double *H);
state_finite_t *initial_finite_prepare_dgm(D_t D, L_t L, q_t q, double T, double *H);

void state_finite_free(state_finite_t *s);

double state_finite_energy(state_finite_t *s);