Open jmiasif opened 2 weeks ago
Hi @jmiasif , could you please report what get when you use Heff = system.energy.effective_field(system.m)
.
Hi Sir @lang-m
Running OOMMF (ExeOOMMFRunner)[2024/05/17 15:17]... (13.8 s) Effective field (Heff) is None. Unable to calculate spin current density. Effective field (Heff): None Shape of system.m.array: (20, 20, 1, 3) i hope this result you are asking. if anything else is needed please ask.
thank you so much
Dear ubermag team @fangohr @marijanbeg 1st Calculate Spin Current Density Js then Calculate Charge Current Density Jc after this spin polarisation eficiency = Js/Jc ∂m/∂t=−γ 0m×Heff+αm× ∂m/∂t+Ts Js =− (γ0/μ0Ms)m×Heff Jc=V/R
but it give error
`AxisError Traceback (most recent call last) Cell In[18], line 8 5 Heff = system.hamiltonian.effective_field(system.m) 7 # Calculate spin current density ----> 8 Js = -gamma0 / (mu0 Ms) df.Field(mesh, value=np.cross(system.m.array, Heff)) 10 # Calculate charge current density if applicable 11 # Replace the following with actual values from your simulation 12 V = 1 # Applied voltage (V)
File ~\miniconda3\envs\ubermag\Lib\site-packages\numpy\core\numeric.py:1588, in cross(a, b, axisa, axisb, axisc, axis) 1586 # Check axisa and axisb are within bounds 1587 axisa = normalize_axis_index(axisa, a.ndim, msg_prefix='axisa') -> 1588 axisb = normalize_axis_index(axisb, b.ndim, msg_prefix='axisb') 1590 # Move working axis to the end of the shape 1591 a = moveaxis(a, axisa, -1)
AxisError: axisb: axis -1 is out of bounds for array of dimension 0`
please help me out i want to calculate value of Jc and Js as well as graph of it from where we can find the value of these Js and Jc.