Skip to content
Snippets Groups Projects
Commit 24d0eefa authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

hugo + polydispersity example

parent ce8b866a
No related branches found
No related tags found
1 merge request!1497webdoc: describe new distribution examples
......@@ -6,10 +6,11 @@ weight = 10
## Compound particle example
In this example it is modelled a multi layer consisting of a substrate layer and an air layer.
Cylindrical particles made of two materials are added to the air layer and their $z$ coordinate is shifted downwards in order to cross the air-substrate interface.
Cylindrical particles made of two materials are added to the air layer
and their $z$ coordinate is shifted downwards in order to cross the air-substrate interface.
{{< galleryscg >}}
{{< figscg src="/img/auto/scatter2d/BiMaterialCylinders.png" width="450px" caption="Intensity image">}}
{{< figscg src="/img/auto/scatter2d/BiMaterialCylinders.png" width="450px" >}}
{{< /galleryscg >}}
{{< highlightfile file="Examples/scatter2d/BiMaterialCylinders.py" >}}
+++
title = "Polydispersity"
weight = 10
+++
## Polydisperse particles example
This example shows GISAS by polydisperse cylinders on a substrate.
The radii of the cylinders follow a Gaussian distribution.
The uncorrelated particles are added to a layout using a loop
over the parameter distribution samples. This is currently supported
only under Python scripting, not in the GUI.
Class reference: [Distributions](/ref/other/distributions).
{{< galleryscg >}}
{{< figscg src="/img/auto/scatter2d/PolydisperseCylinders.png" width="450px">}}
{{< /galleryscg >}}
{{< highlightfile file="Examples/scatter2d/PolydisperseCylinders.py" >}}
......@@ -8,7 +8,7 @@ weight = 60
##### Constructors
A distribution is constructed by one of the following:
```
```python
distr = ba.DistributionGate(start, stop, n_samples=25)
distr= ba.DistributionTrapezoid(center, left, middle, right, n_samples = 25)
distr = ba.DistributionCosine(mean, sigma, n_samples = 25)
......@@ -31,7 +31,7 @@ The sample (scattering target) model is then constructed as incoherent sum of co
with given parameter values and weights.
For instance, in the [PolydisperseCylinders example](/ex/scatter2d/polydisperse-cylinders),
a layout is filled with uncorrelated particles:
```
```python
distr = ba.DistributionGaussian(10*nm, 1*nm)
for parsample in distr.distributionSamples():
ff = ba.Cylinder(parsample.value, 5*nm)
......@@ -41,5 +41,5 @@ for parsample in distr.distributionSamples():
##### Examples
- [PolydisperseCylinders](/ex/scatter2d/polydisperse-cylinders): layout filled with uncorrelated particles
- [LatticeOrientationDistribution](/ex/scatter2d/lattice-ori-distr): layer filled with uncorrelated layouts
\ No newline at end of file
- [PolydisperseCylinders](/ex/sample/polydispersity): layout filled with uncorrelated particles
- [LatticeOrientationDistribution](/ex/sample/lattice-ori-distr): layer filled with uncorrelated layouts
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment