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
94563e04
Commit
94563e04
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Beam: some setters rm from Py
parent
fa2ea5a1
No related branches found
No related tags found
1 merge request
!1478
Webdoc: describe Beam API; rm unused shortcodes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Device/Beam/Beam.h
+6
-4
6 additions, 4 deletions
Device/Beam/Beam.h
hugo/content/py/instr/beam/_index.md
+14
-0
14 additions, 0 deletions
hugo/content/py/instr/beam/_index.md
with
20 additions
and
4 deletions
Device/Beam/Beam.h
+
6
−
4
View file @
94563e04
...
...
@@ -41,10 +41,6 @@ public:
static
Beam
horizontalBeam
();
//... Setters:
void
setIntensity
(
double
intensity
);
void
setWavelength
(
double
wavelength
);
void
setInclination
(
double
alpha
);
void
setAzimuthalAngle
(
double
value
);
void
setFootprintFactor
(
const
IFootprintFactor
&
shape_factor
);
void
setPolarization
(
R3
polarization
);
...
...
@@ -56,6 +52,12 @@ public:
return
"Beam"
;
}
//... Setters:
void
setIntensity
(
double
intensity
);
void
setWavelength
(
double
wavelength
);
void
setInclination
(
double
alpha
);
void
setAzimuthalAngle
(
double
value
);
std
::
vector
<
const
INode
*>
nodeChildren
()
const
override
;
//... Getters
...
...
This diff is collapsed.
Click to expand it.
hugo/content/py/instr/beam/_index.md
+
14
−
0
View file @
94563e04
...
...
@@ -5,4 +5,18 @@ weight = 20
## Beam model
The incident beam must be specified for scattering simulations with 2D detector
(SAS and GISAS).
For other simulations, the beam is set internally according to the
given
[
scan
](
../scan
)
model.
To create a beam, use
```
python
ba
.
InBeam
(
intensity
,
wavelength
,
alpha
,
phi
=
0
)
```
For the wavelenth, use unit multiplier
`*nm`
or
`*angstrom`
.
For the glancing angle $
\a
lpha
\_\t
ext{i}$, use unit multiplier
`*deg`
.
The azimuthal angle $
\v
arphi
\_\t
ext{i}$ can be omitted,
as in most applications the default value 0 is pertinent.
{{% children %}}
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