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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
//! Spin pumping current calculation
//!
//! Spin pumping is a phenomenon where magnetization precession in a ferromagnet
//! generates a pure spin current into an adjacent normal metal.
//!
//! # Mathematical Formulation
//!
//! The spin current density pumped across a ferromagnet/normal-metal interface
//! is given by Tserkovnyak's formula:
//!
//! $$
//! \mathbf{J}_s = \frac{\hbar}{4\pi} g_r \left(\mathbf{m} \times \frac{d\mathbf{m}}{dt}\right)
//! $$
//!
//! where:
//! - $\mathbf{J}_s$ is the spin current density (J/m²)
//! - $\hbar$ is the reduced Planck constant ($1.055 \times 10^{-34}$ J·s)
//! - $g_r$ is the real part of spin-mixing conductance (1/m²)
//! - $\mathbf{m}$ is the normalized magnetization vector
//! - $d\mathbf{m}/dt$ is the time derivative of magnetization (1/s)
//!
//! The direction of the spin current is perpendicular to both $\mathbf{m}$ and $d\mathbf{m}/dt$,
//! and the spin polarization is along $\mathbf{m}$.
//!
//! # Physical Origin
//!
//! When magnetization precesses, it pumps angular momentum into the adjacent
//! layer through exchange interaction at the interface. The efficiency depends
//! on the spin-mixing conductance $g_r$, which characterizes interface transparency.
//!
//! Typical values:
//! - YIG/Pt: $g_r \sim 10^{14}$ m⁻²
//! - Metallic FM/NM: $g_r \sim 10^{15}$ m⁻²
//!
//! # References
//!
//! - E. Saitoh et al., "Conversion of spin current into charge current at room
//! temperature: Inverse spin-Hall effect", Appl. Phys. Lett. 88, 182509 (2006)
//! - Y. Tserkovnyak et al., "Enhanced Gilbert Damping in Thin Ferromagnetic Films",
//! Phys. Rev. Lett. 88, 117601 (2002)
//! - Y. Tserkovnyak et al., "Spin pumping and magnetization dynamics in metallic
//! multilayers", Rev. Mod. Phys. 77, 1375 (2005)
use PI;
use crateHBAR;
use crateSpinInterface;
use crateVector3;
/// Calculate spin pumping current density using Saitoh's formula
///
/// # Arguments
/// * `interface` - Spin interface properties (contains g_r)
/// * `m` - Normalized magnetization vector
/// * `dm_dt` - Time derivative of magnetization [1/s]
///
/// # Returns
/// Spin current density vector \[J/m²\]
///
/// The direction of the spin current is given by m × dm/dt, and the
/// spin polarization is along the m direction.
///
/// # Physical Interpretation
/// When magnetization precesses (m rotates), angular momentum is transferred
/// from the ferromagnet to conduction electrons at the interface, creating
/// a flow of spin angular momentum (spin current) into the normal metal.
///
/// # Example
/// ```
/// use spintronics::transport::pumping::spin_pumping_current;
/// use spintronics::material::SpinInterface;
/// use spintronics::dynamics::llg::calc_dm_dt;
/// use spintronics::constants::GAMMA;
/// use spintronics::Vector3;
///
/// // YIG/Pt interface (spin pumping experiment)
/// let interface = SpinInterface::yig_pt();
///
/// // Magnetization precessing in xy-plane
/// let m = Vector3::new(1.0, 0.0, 0.0);
/// // External field causes precession
/// let h_ext = Vector3::new(0.0, 0.0, 1.0);
/// let dm_dt = calc_dm_dt(m, h_ext, GAMMA, 0.01);
///
/// // Calculate pumped spin current
/// let js = spin_pumping_current(&interface, m, dm_dt);
///
/// // Spin current should be non-zero when magnetization is precessing
/// assert!(js.magnitude() > 0.0);
/// ```
/// Calculate total spin pumping current (integrated over interface area)
///
/// # Arguments
/// * `interface` - Spin interface properties
/// * `m` - Normalized magnetization vector
/// * `dm_dt` - Time derivative of magnetization [1/s]
///
/// # Returns
/// Total spin current [J·m/s] flowing through the interface
/// Calculate spin pumping efficiency
///
/// Returns the magnitude of spin current normalized by the precession frequency