SpinParser  1.0
SpinModel.hpp
Go to the documentation of this file.
1 
9 #pragma once
10 #include <tuple>
11 #include "Lattice.hpp"
12 
19 struct SpinModel
20 {
21 public:
26  {
31  {
32  memset(&interactionStrength[0][0], 0, 9 * sizeof(float));
33  };
34 
35  float interactionStrength[3][3];
36  };
37 
38  std::vector<std::pair<LatticeIterator, SpinInteraction> > interactions;
39  std::vector<std::string> interactionParameters;
40 };
SpinModel::SpinInteraction::SpinInteraction
SpinInteraction()
Construct a new SpinInteraction object and initialize all interactions to zero.
Definition: SpinModel.hpp:30
SpinModel::interactionParameters
std::vector< std::string > interactionParameters
List of string-form interaction parameters as used in the task file. The order of the list correspond...
Definition: SpinModel.hpp:39
Lattice.hpp
Representation of a physical lattice.
SpinModel::SpinInteraction
Representation of a two-spin interaction.
Definition: SpinModel.hpp:25
SpinModel
Spin model representation.
Definition: SpinModel.hpp:19
SpinModel::interactions
std::vector< std::pair< LatticeIterator, SpinInteraction > > interactions
List of two-spin interactions in the model. All interactions are between the lattice site pair (s1,...
Definition: SpinModel.hpp:38
SpinModel::SpinInteraction::interactionStrength
float interactionStrength[3][3]
Interaction strength, encoded as interactionStrength[s1][s2], where s1 is the x, y,...
Definition: SpinModel.hpp:33