Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
56445b7b
Commit
56445b7b
authored
7 years ago
by
Yurov, Dmitry
Browse files
Options
Downloads
Patches
Plain Diff
Updated magnetization prefactor definition
Redmine: #1858
parent
c72e11f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/Material/HomogeneousMaterial.cpp
+8
-8
8 additions, 8 deletions
Core/Material/HomogeneousMaterial.cpp
with
8 additions
and
8 deletions
Core/Material/HomogeneousMaterial.cpp
+
8
−
8
View file @
56445b7b
...
...
@@ -2,14 +2,14 @@
#include
"WavevectorInfo.h"
#include
"Transform3D.h"
#include
"MaterialUtils.h"
#include
"PhysicalConstants.h"
static
const
double
Thomson_Scattering_Length
=
2.8179403227e-15
;
static
const
double
Bohr_Magneton
=
9.274009994e-24
;
// The neutron's magnetic moment is Gamma_Neutron times the nuclear magneton
static
const
double
Gamma_Neutron
=
1.91304272
;
// The factor 1e-18 is here to have unit: m/A*nm^-2
static
const
double
Magnetization_Prefactor
=
(
Gamma_Neutron
*
Thomson_Scattering_Length
/
2.0
/
Bohr_Magneton
)
*
1e-18
;
using
PhysConsts
::
mu_B
;
using
PhysConsts
::
gamma_n
;
using
PhysConsts
::
r_e
;
// The factor 1e-18 is here to have unit: m/A*nm^-2
constexpr
double
magnetization_prefactor
=
(
gamma_n
*
r_e
/
2.0
/
mu_B
)
*
1e-18
;
namespace
{
// Used in experimental calculation of scattering matrix:
...
...
@@ -86,7 +86,7 @@ Eigen::Matrix2cd HomogeneousMaterial::polarizedSubtrSLD(const WavevectorInfo& wa
{
cvector_t
mag_ortho
=
OrthogonalToBaseVector
(
wavevectors
.
getQ
(),
m_magnetization
);
complex_t
unit_factor
=
scalarSubtrSLD
(
wavevectors
);
return
MagnetizationCorrection
(
unit_factor
,
M
agnetization_
P
refactor
,
mag_ortho
);
return
MagnetizationCorrection
(
unit_factor
,
m
agnetization_
p
refactor
,
mag_ortho
);
}
HomogeneousMaterial
HomogeneousMaterial
::
transformedMaterial
(
const
Transform3D
&
transform
)
const
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment