1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = ["bornagain>=25,<26"]
# ///
"""
Thin-film sample as in basic depth-probe example.
Computes modulus of amplitude of transmitted field
as function of of incident angle alpha and depth z.
"""
import bornagain as ba
ba.require_versions("bornagain>=25,<26")
# Reuse Depthprobe1's sample and simulation with different field flags.
import Depthprobe1 as dp1
if __name__ == '__main__':
flags = ba.ZDirection_Transmitted | ba.WaveProperty_Modulus
dp1.run_example(flags)
|