Skip to content
Snippets Groups Projects
Commit b5a9370d authored by Celine Durniak's avatar Celine Durniak
Browse files

User Manual - Python examples: new figures for Example005.

parent 2a3eed32
Branches
Tags
No related merge requests found
Doc/UserManual/Figures/fig_ex005Dis1.jpg

282 KiB | W: | H:

Doc/UserManual/Figures/fig_ex005Dis1.jpg

282 KiB | W: | H:

Doc/UserManual/Figures/fig_ex005Dis1.jpg
Doc/UserManual/Figures/fig_ex005Dis1.jpg
Doc/UserManual/Figures/fig_ex005Dis1.jpg
Doc/UserManual/Figures/fig_ex005Dis1.jpg
  • 2-up
  • Swipe
  • Onion skin
Doc/UserManual/Figures/fig_ex005Dis2.jpg

312 KiB | W: | H:

Doc/UserManual/Figures/fig_ex005Dis2.jpg

312 KiB | W: | H:

Doc/UserManual/Figures/fig_ex005Dis2.jpg
Doc/UserManual/Figures/fig_ex005Dis2.jpg
Doc/UserManual/Figures/fig_ex005Dis2.jpg
Doc/UserManual/Figures/fig_ex005Dis2.jpg
  • 2-up
  • Swipe
  • Onion skin
Doc/UserManual/Figures/fig_ex005Dis3.jpg

273 KiB | W: | H:

Doc/UserManual/Figures/fig_ex005Dis3.jpg

273 KiB | W: | H:

Doc/UserManual/Figures/fig_ex005Dis3.jpg
Doc/UserManual/Figures/fig_ex005Dis3.jpg
Doc/UserManual/Figures/fig_ex005Dis3.jpg
Doc/UserManual/Figures/fig_ex005Dis3.jpg
  • 2-up
  • Swipe
  • Onion skin
""" """
All formfactors available in BornAgain in Born Approximation All formfactors available in BornAgain in the Born Approximation
""" """
import numpy import numpy
import matplotlib import matplotlib
...@@ -34,7 +34,7 @@ formfactors = [ ...@@ -34,7 +34,7 @@ formfactors = [
def get_sample(formfactor): def get_sample(formfactor):
""" """
Build and return the sample to calculate cylinder formfactor in Born approximation. Build and return the sample to calculate the contribution of each form factor in the Born approximation.
""" """
# defining materials # defining materials
m_ambience = HomogeneousMaterial("Air", 0.0, 0.0) m_ambience = HomogeneousMaterial("Air", 0.0, 0.0)
...@@ -65,7 +65,7 @@ def get_simulation(): ...@@ -65,7 +65,7 @@ def get_simulation():
def run_simulation(): def run_simulation():
""" """
Run simulation one by one for every formfactor from the list and plot results on single canvas Run simulation one by one for every form factor from the list and plot results on a single canvas
""" """
dpi = 72. dpi = 72.
......
""" """
Cosine ripple at 2D lattice Cosine ripple on a 2D lattice
""" """
import numpy import numpy
import matplotlib import matplotlib
...@@ -12,7 +12,7 @@ alpha_min, alpha_max = 0.0, 2.5 ...@@ -12,7 +12,7 @@ alpha_min, alpha_max = 0.0, 2.5
def get_sample(): def get_sample():
""" """
Build and return the sample representing the cosine ripple in the framework of the 1D Paracrystal. Build and return the sample representing the cosine ripple in the framework of the 2D Lattice.
""" """
# defining materials # defining materials
m_ambience = HomogeneousMaterial("Air", 0.0, 0.0) m_ambience = HomogeneousMaterial("Air", 0.0, 0.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment