Mantid
Loading...
Searching...
No Matches
CrystalFieldMagnetisation.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
12
13namespace Mantid {
14namespace CurveFitting {
15namespace Functions {
16
25public:
27 void function1D(double *out, const double *xValues, const size_t nData) const override;
28
29protected:
31 mutable int m_nre;
32};
33
34class MANTID_CURVEFITTING_DLL CrystalFieldMagnetisation : public CrystalFieldPeaksBase,
36public:
38 std::string name() const override { return "CrystalFieldMagnetisation"; }
39 const std::string category() const override { return "General"; }
40 void setHamiltonian(const ComplexFortranMatrix &ham, const int nre);
41 void function1D(double *out, const double *xValues, const size_t nData) const override;
42
43private:
45};
46
47class MANTID_CURVEFITTING_DLL CrystalFieldMagnetisationCalculation : public API::ParamFunction,
49public:
51 std::string name() const override { return "mh"; }
52 const std::string category() const override { return "General"; }
53 void setHamiltonian(const ComplexFortranMatrix &ham, const int nre);
54};
55
56} // namespace Functions
57} // namespace CurveFitting
58} // namespace Mantid
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
CrystalFieldMagnetisation is a function that calculates the induced magnetic moment (in bohr magneton...
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
std::string name() const override
Returns the function's name.
const std::string category() const override
The categories the Fit function belong to.
const std::string category() const override
The categories the Fit function belong to.
std::string name() const override
Returns the function's name.
CrystalFieldPeaks is a function that calculates crystal field peak positions and intensities.
Helper class which provides the Collimation Length for SANS instruments.