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
d1f36f0a
Commit
d1f36f0a
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
DevRef...; gitignore + nls
parent
b207dc0e
No related branches found
No related tags found
1 merge request
!1662
DevRef ctd; gitignore + .nls
Pipeline
#101057
failed
1 year ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Doc/DevRef/DevRef.pdf
+0
-0
0 additions, 0 deletions
Doc/DevRef/DevRef.pdf
Doc/DevRef/DevRef.tex
+2
-2
2 additions, 2 deletions
Doc/DevRef/DevRef.tex
Doc/DevRef/Roughness.tex
+16
-29
16 additions, 29 deletions
Doc/DevRef/Roughness.tex
with
19 additions
and
31 deletions
.gitignore
+
1
−
0
View file @
d1f36f0a
...
...
@@ -15,6 +15,7 @@
*.ind
*.log
*.nlo
*.nls
*.out
*.toc
*.trs
...
...
This diff is collapsed.
Click to expand it.
Doc/DevRef/DevRef.pdf
+
0
−
0
View file @
d1f36f0a
No preview for this file type
This diff is collapsed.
Click to expand it.
Doc/DevRef/DevRef.tex
+
2
−
2
View file @
d1f36f0a
...
...
@@ -21,8 +21,8 @@
% makeindex -s nomencl.ist $T.nlo -o $T.nls
% xelatex $T
\documentclass
[a4paper,11pt,fleqn]
{
report
}
\usepackage
[final]
{
graphicx
}
%
\documentclass[a4paper,11pt,fleqn,draft]{report}\usepackage[final]{graphicx}
%
\documentclass[a4paper,11pt,fleqn]{report}\usepackage[final]{graphicx}
\documentclass
[a4paper,11pt,fleqn,draft]
{
report
}
\usepackage
[final]
{
graphicx
}
%\documentclass[a4paper,11pt,fleqn,draft]{report}\usepackage[draft]{graphicx}
\def\shorttitle
{
BornAgain Developers Reference
}
...
...
This diff is collapsed.
Click to expand it.
Doc/DevRef/Roughness.tex
+
16
−
29
View file @
d1f36f0a
...
...
@@ -45,6 +45,8 @@ How to account for these losses in the R/T computation is an open research quest
\subsection
{
Interface with tanh profile
}
%==================================================================================================%
\def\RF
{
\mathcal
{
R
}}
Graded interfaces have a smooth SLD profile,
i.e.
\
the function
$
\overline
{
v
}
(
z
)
$
or
$
\kappa
^
2
(
z
)
$
evolves continuously
from one bulk value to the other.
...
...
@@ -113,42 +115,25 @@ with $x\coloneqq \pi\tau\kappa_a$ and $y\coloneqq \pi\tau\kappa_b$.
We write
$
\text
{
tanhc
}
\;
x
\coloneqq
(
\tanh
x
)/
x
$
(
\cref
{
Ftanhc
}
a)
and define the roughness factor
\begin{equation}
\label
{
ERba
}
R
_{
ab
}
\coloneqq
\sqrt
{
\frac
{
\text
{
tanhc
}
\;
\pi\tau\kappa
_
b
}{
\text
{
tanhc
}
\;
\pi\tau\kappa
_
a
}
}
.
\RF
_{
ab
}
\coloneqq
\sqrt
{
\frac
{
\text
{
tanhc
}
\;
\pi\tau\kappa
_
b
}{
\text
{
tanhc
}
\;
\pi\tau\kappa
_
a
}
}
.
\end{equation}
With all this,
\cref
{
ErTanh
}
can be cast as
\begin{equation}
\label
{
ErTanh2
}
r
_{
ab
}
=
\frac
{
R
_{
ab
}^{
-1
}
\kappa
_
a -
R
_{
ab
}
\kappa
_
b
}{
R
_{
ab
}^{
-1
}
\kappa
_
a +
R
_{
ab
}
\kappa
_
b
}
,
r
_{
ab
}
=
\frac
{
\RF
_{
ab
}^{
-1
}
\kappa
_
a -
\RF
_{
ab
}
\kappa
_
b
}{
\RF
_{
ab
}^{
-1
}
\kappa
_
a +
\RF
_{
ab
}
\kappa
_
b
}
,
\end{equation}
which has the form of the Fresnel reflection coefficient~
\cref
{
ErFresnel
}
,
except for the factors
$
R
_{
ab
}^{
-
1
}$
and
$
R
_{
ab
}$
.
except for the factors
$
\RF
_{
ab
}^{
-
1
}$
and
$
\RF
_{
ab
}$
.
For
$
\tau\to
0
$
, these factors go to~1 so that
\cref
{
ErFresnel
}
is fully recovered
(
\cref
{
Ftanhc
}
b).
Neglecting again the phase factor, we can compute the transmission coefficient
from
\cref
{
EConservation
}
. We obtain
\begin{equation}
\label
{
EtTanh2
}
t
_{
ab
}
=
\frac
{
2
\kappa
_
a
}{
R
_{
ab
}^{
-1
}
\kappa
_
a + R
_{
ab
}
\kappa
_
b
}
.
\end{equation}
\textbf
{
TODO: Is this correct? Is this implemented in BornAgain?
}
Tests confirm that flux conservation is fulfilled at machine precision.
\footnote
{
\textbf
{
TODO:
}
provide name of tests.
}
With the Fresnel coefficients
\cref
{
EtFresnel,ErFresnel
}
,
we write the refraction matrix as
\begin{equation}
\label
{
ESab2
}
S
_{
ab
}
\coloneqq
\frac
{
1
}{
t
_{
ab
}}
\left
(
\begin{array}
{
ll
}
1
&
r
_{
ab
}
\\
r
_{
ab
}&
1
\end{array}
\right
).
\end{equation}
This form remains valid for our modified coefficients
\cref
{
ErTanh2
}
and~
\cref
{
EtTanh2
}
.
Accordingly, the coefficients~
\cref
{
Dslpm
}
must be replaced by
The reduced
$
r
_{
ab
}$
of
\cref
{
ErTanh2
}
can be obtained from
the basic transfer matrix equation~
\cref
{
EcMc
}
if the coefficients~
$
s
^
\pm
$
of
\cref
{
Dslpm
}
are replaced by
\footnote
{
Implemented in file
\SRC
{
Resample/Specular
}{
ComputeFluxScalar.cpp
}
,
function
\T
{
transition
}
[30may23].
}
\begin{equation}
\label
{
EslpmTanh
}
s
^
\pm
_
l
=
R
_{
l,l-1
}^{
-1
}
\pm
R
_{
l,l-1
}
\kappa
_{
l-1
}
/
\kappa
_
l
.
s
^
\pm
_
a
=
\RF
_{
ab
}^{
-1
}
\pm
\RF
_{
ab
}
\kappa
_{
b
}
/
\kappa
_
a
.
\end{equation}
It is easily verified that the energy conservation~
\cref
{
EConservation
}
still holds.
%==================================================================================================%
\subsection
{
N
\'
evot-Croce factor
}
...
...
@@ -180,11 +165,13 @@ where $t_{ab}$ is the Fresnel coefficient \cref{EtFresnel}.
This is the result obtained by Tolan
\cite
[Eq.~2.35]
{
Tol99
}
,
and is also given by de Boer
\cite
{
BoLe96
}
as a result from formal perturbation theory
in the limit of very small lateral correlation length.
With
\cref
{
ESab2
}
, we obtain the coefficients to replace~
\cref
{
Dslpm
}
,
To obtain
$
\tilde
r
_{
ab
}$
and
$
\tilde
t
_{
ab
}$
from
the basic transfer matrix equation~
\cref
{
EcMc
}
,
we need to replace the coefficients
$
s
^
\pm
$
of~
\cref
{
Dslpm
}
by
\begin{equation}
\label
{
EslpmNC
}
s
^
\pm
_
l = (1
\pm
\kappa
_{
l-1
}
/
\kappa
_
l)
\exp
(-(
\kappa
_{
l-1
}
\mp\kappa
_
l)
^
2
\sigma
^
2/2),
\end{equation}
which s
hows that the above is also
consistent with
\cite
[Eq.~3.114]
{
GiVi09
}
.
which
i
s consistent with
\cite
[Eq.~3.114]
{
GiVi09
}
.
However, the total reflected and transmitted flux
$
\kappa
_
a|
\tilde
r
_{
ab
}
|
^
2
+
\kappa
_
b|
\tilde
t
_{
ab
}
|
^
2
$
,
...
...
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