Open mducle opened 1 year ago
This issue has been automatically marked as stale because it has not had activity in 6 months. It will be closed in 7 days if no further activity occurs. Allowing issues to close as stale helps us filter out issues which can wait for future development time. All issues closed by stale bot act like normal issues; they can be searched for, commented on or reopened at any point. If you'd like a closed stale issue to be considered, feel free to either re-open the issue directly or contact a developer. To extend the lifetime of an issue please comment below, it helps us see that this is still affecting you and you want it fixed in the near-future. Extending the lifetime of an issue may cause the development team to prioritise it over other issues, which may be closed as stale instead.
Bump...
This issue has been automatically marked as stale because it has not had activity in 6 months. It will be closed in 7 days if no further activity occurs. Allowing issues to close as stale helps us filter out issues which can wait for future development time. All issues closed by stale bot act like normal issues; they can be searched for, commented on or reopened at any point. If you'd like a closed stale issue to be considered, feel free to either re-open the issue directly or contact a developer. To extend the lifetime of an issue please comment below, it helps us see that this is still affecting you and you want it fixed in the near-future. Extending the lifetime of an issue may cause the development team to prioritise it over other issues, which may be closed as stale instead.
Bump
Is your feature request related to a problem? Please describe. Currently, Mantid allows the calculation and fitting of certain crystal field-derived physical properties in conjunction with INS spectra. One of these is the magnetic heat capacity using the
CrystalFieldHeatCapacity
function. However, this function only models the crystal field contribution to the heat capacity at zero applied magnetic field.A user (D. Adroja, ISIS) has recently asked to fit heat capacity data he has that was measured with an applied field of 10 Tesla.
Describe the solution you'd like The implementation of a heat capacity calculation in an applied magnetic field would follow similar calculations for the magnetic calculations in the
CrystalFieldMoment
function. Specifically, theCrystalFieldHeatCapacity
function would need additional attributesHdir
(applied field direction),Hmag
(applied field magnitude),unit
(the unit of the magnetic field, could be Tesla (SI
,bohr
) or Gauss (cgs
) following conventions inCrystalFieldMoment
), andpowder
(if the sample was a powder).Then line 79 of
CrystalFieldHeatCapacity
should be modified to usecalculateZeemanEigensystem
instead ofcalculateEigensystem
(there would also need code to figure out theH
argument to this from theHmag
andHdir
attributes. A powder averaging over the mainx
,y
,z
field directions should also be implement analogously toCrystalFieldMoment
.Describe alternatives you've considered An alternative implementation is to make the
BextX
,BextY
, andBextZ
parameters per-dataset variable likeTemperatures
andFWHMs
in the CrystalField class - the code needs to be checked that these are fed through to the calculation of the Hamiltonian inCrystalFieldHeatCapacity
though.Additional context None