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
cd8a2bc3
Commit
cd8a2bc3
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
GISAS reference
parent
cb23420e
No related branches found
No related tags found
1 merge request
!1476
webdoc: regularize Offspec and GISAS sim
Pipeline
#92437
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hugo/content/py/sim/gisas/_index.md
+24
-3
24 additions, 3 deletions
hugo/content/py/sim/gisas/_index.md
with
24 additions
and
3 deletions
hugo/content/py/sim/gisas/_index.md
+
24
−
3
View file @
cd8a2bc3
...
...
@@ -5,8 +5,29 @@ weight = 30
## GISAS simulation
In BornAgain, grazing-incidence small-angle scattering (GISAS)
is computed using the distorted-wave Born approximation (DWBA).
To set up and run a scattering simulation, use
```
python
import
bornagain
as
ba
beam
=
...
sample
=
...
detector
=
...
simulation
=
ba
.
ScatteringSimulation
(
scan
,
sample
,
detector
)
# ... set options
result
=
simulation
.
simulate
()
```
For the constructor arguments, see sections
[
beam
](
{{%
ref-py "instr/beam" %}}),
[
sample
](
{{%
ref-py "sample" %}}), and
[
detector
](
{{%
ref-py "instr/det" %}}).
For optional settings, see
[
simulation options
](
{{%
ref-py "sim/options" %}}).
Furthermore, there are examples
for
[
setting masks
](
{{%
ref-py "fitting/advanced/fit-with-masks" %}})
and
[
setting a region of interest
](
{{%
ref-py "fitting/instrument-description" %}}).
For the return type of function
`simulate()`
,
see
[
SimulationResult
](
{{%
ref-py "result/simulation-result" %}}).
### Example
In the following introductory example,
we take a standard sample model from module
...
...
@@ -39,7 +60,7 @@ The spherical detector has nPix=200 bins for both coordinate axis.
The azimuthal angle $
\v
arphi
\_\t
ext{f}$ extends from $-2^
\c
irc$ to $+2^
\c
irc$;
the glancing angle $
\a
lpha
\_\t
ext{f}$ from $0^
\c
irc$ to $3^
\c
irc$.
### Main program
###
#
Main program
The last stance in the script is the main program.
...
...
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