ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
deltaspin_init.h
Go to the documentation of this file.
1
11#ifndef DELTASPIN_INIT_H
12#define DELTASPIN_INIT_H
13
14#include "deltaspin_state.h"
15
16class UnitCell;
17
18namespace spinconstrain
19{
20
24 double sc_thr;
25 int nsc;
26 int nsc_min;
27 double alpha_trial;
28 double sccut;
29 double sc_drop_thr;
31 int nspin;
32};
33
49void init_sc_state(const ScInitParams& params, const UnitCell& ucell, ScState& state);
50
51} // namespace spinconstrain
52
53#endif // DELTASPIN_INIT_H
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition deltaspin_state.h:63
Constraint parameters and runtime state for the DeltaSpin (spin-constrained DFT) module.
Definition deltaspin_init.cpp:32
void init_sc_state(const ScInitParams &params, const UnitCell &ucell, ScState &state)
Populate ScState from UnitCell and input parameters.
Definition deltaspin_init.cpp:34
Definition deltaspin_init.h:23
int nsc
Maximum inner lambda optimization steps.
Definition deltaspin_init.h:25
int nsc_min
Minimum steps before early exit checks.
Definition deltaspin_init.h:26
bool direction_only
Only optimize spin direction.
Definition deltaspin_init.h:30
double sc_drop_thr
Fraction of initial RMS for adaptive threshold.
Definition deltaspin_init.h:29
int nspin
2=collinear, 4=non-collinear
Definition deltaspin_init.h:31
double sccut
Maximum lambda change per step (eV/uB).
Definition deltaspin_init.h:28
double sc_thr
RMS(Mi - M_target) convergence threshold (uB).
Definition deltaspin_init.h:24
double alpha_trial
Initial trial step size (eV/uB^2).
Definition deltaspin_init.h:27