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
efc04100
Commit
efc04100
authored
12 years ago
by
Celine Durniak
Browse files
Options
Downloads
Patches
Plain Diff
correction of factor 2Pi for hemi spheroid form factor
parent
7d20313c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/FormFactors/src/FormFactorHemiSpheroid.cpp
+2
-2
2 additions, 2 deletions
Core/FormFactors/src/FormFactorHemiSpheroid.cpp
with
2 additions
and
2 deletions
Core/FormFactors/src/FormFactorHemiSpheroid.cpp
+
2
−
2
View file @
efc04100
...
@@ -115,7 +115,7 @@ double FormFactorHemiSpheroid::HemiSpheroidIntegralImaginary(
...
@@ -115,7 +115,7 @@ double FormFactorHemiSpheroid::HemiSpheroidIntegralImaginary(
double
J1_gamma_div_gamma
=
std
::
abs
(
gamma
)
>
Numeric
::
double_epsilon
?
double
J1_gamma_div_gamma
=
std
::
abs
(
gamma
)
>
Numeric
::
double_epsilon
?
MathFunctions
::
Bessel_J1
(
std
::
abs
(
gamma
))
/
gamma
:
MathFunctions
::
Bessel_J1
(
std
::
abs
(
gamma
))
/
gamma
:
0.5
;
0.5
;
double
exp_imag
=
std
::
exp
(
complex_t
(
0.0
,
-
1.0
)
*
qz
*
Z
).
imag
();
double
exp_imag
=
std
::
exp
(
complex_t
(
0.0
,
1.0
)
*
qz
*
Z
).
imag
();
return
Rz
*
Wz
*
J1_gamma_div_gamma
*
exp_imag
;
return
Rz
*
Wz
*
J1_gamma_div_gamma
*
exp_imag
;
}
}
...
@@ -125,5 +125,5 @@ complex_t FormFactorHemiSpheroid::evaluate_for_q(const cvector_t& q) const
...
@@ -125,5 +125,5 @@ complex_t FormFactorHemiSpheroid::evaluate_for_q(const cvector_t& q) const
{
{
m_q
=
q
;
m_q
=
q
;
return
2
*
M_PI
*
complex_t
(
0.0
,
1.0
)
*
evaluate_for_q_imag
()
+
return
2
*
M_PI
*
complex_t
(
0.0
,
1.0
)
*
evaluate_for_q_imag
()
+
evaluate_for_q_real
();
2
*
M_PI
*
evaluate_for_q_real
();
}
}
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