Page 1 of 1

Curry / fitting magnetic data

Posted: Tue Jun 06, 2023 1:19 am
by radovanh

Hello

I am using Easyspin 5.2.35.

I would like to fit temperature and field-dependent data with CURRY. However, my field-dependent data are not measured at the same fields for given temperatures.
To better explain, I do NOT have the data set as it is expected
T(K) Magnetization B(mT)
2 value 1000
2 value 3000
2 value 5000
5 value 1000
5 value 3000
5 value 5000
(Exp.mTemperature would be 1x2 array, Exp.mField would be 1x3 array, and MvsBData would be 3x2 array)

but data are e.g.
T(K) Magnetization B(mT)
2 value 1000
2 value 2500
2 value 5500
5 value 8000
5 value 3000
5 value 5000
5 value 7000

Thus, I tried to import dataset as individual measurements which ended as
(Exp.mTemperature 1x7 array, Exp.mField would be 1x7 array, and MvsBData would be 7x1 array)
However, during fitting there is an error "... Matrix dimensions must agree."

I guess that reason is the EasySpin is making a matrix MvsBSim with array dimension 7x7 for which there are not enough data from the experiment...

Please, is there any workaround?

R.


Re: Curry / fitting magnetic data

Posted: Sun Sep 03, 2023 12:26 am
by Stefan Stoll

You can write a custom simulation function that calls curry several times, once for each temperature with the associated field values, and then return all the calculated values as a vector.