Skip to content
Snippets Groups Projects
Commit 99f42744 authored by julient31's avatar julient31
Browse files

Commit JT 052418 rm comments

parent 102be8dd
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,6 @@ void ComputeSpin::compute_vector()
magtot[2] *= scale;
magtot[3] = sqrt((magtot[0]*magtot[0])+(magtot[1]*magtot[1])+(magtot[2]*magtot[2]));
spintemperature = hbar*tempnumtot;
//spintemperature /= (2.0*kb*tempdenomtot);
spintemperature /= (kb*tempdenomtot);
vector[0] = magtot[0];
......
......@@ -134,10 +134,8 @@ void FixLangevinSpin::init()
double hbar = force->hplanck/MY_2PI; // eV/(rad.THz)
double kb = force->boltz; // eV/K
D = (MY_2PI*alpha_t*gil_factor*kb*temp);
//D = (alpha_t*gil_factor*kb*temp);
D /= (hbar*dts);
sigma = sqrt(2.0*D);
//sigma = sqrt(D);
}
/* ---------------------------------------------------------------------- */
......@@ -176,11 +174,6 @@ void FixLangevinSpin::add_temperature(double fmi[3])
double rx = sigma*(2.0*random->uniform() - 1.0);
double ry = sigma*(2.0*random->uniform() - 1.0);
double rz = sigma*(2.0*random->uniform() - 1.0);
//printf("test rd : %g \n",2.0*random->uniform() - 1.0);
//printf("test gaussian : %g \n", random->gaussian());
//double rx = sigma*(random->gaussian());
//double ry = sigma*(random->gaussian());
//double rz = sigma*(random->gaussian());
// adding the random field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment