Bindings for the ctypes interface for PyPO. More...
Functions | |
| def | PyPO.BindBeam.loadBeamlib () |
| Load the PyPObeam shared library. More... | |
| def | PyPO.BindBeam.makeRTframe (RTDict_py) |
| Generate a tubular ray-trace frame. More... | |
| def | PyPO.BindBeam.makeGRTframe (grdict_py) |
| Generate a Gaussian ray-trace frame. More... | |
| def | PyPO.BindBeam.makeGauss (gdict_py, source) |
| Generate a polarised Gaussian beam. More... | |
| def | PyPO.BindBeam.makeScalarGauss (gdict_py, source) |
| Generate a scalar Gaussian beam. More... | |
| def | PyPO.BindBeam.calcCurrents (fields, source, mode) |
| Calculate electromagnetic currents from electromagnetic field. More... | |
Bindings for the ctypes interface for PyPO.
These bindings are concerned with beam generation for the ray-tracer and the physical optics.
| def PyPO.BindBeam.calcCurrents | ( | fields, | |
| source, | |||
| mode | |||
| ) |
Calculate electromagnetic currents from electromagnetic field.
| fields | Fields object containing electromagnetic fields. |
| source | A reflDict dictionary describing the plane on which the Gaussian is defined. |
| mode | Whether to assume plane is perfect electrical conductor ('PEC'), magnetic conductor ('PMC') or no assumptions ('full'). |
| def PyPO.BindBeam.loadBeamlib | ( | ) |
Load the PyPObeam shared library.
Will detect the operating system and link the library accordingly.
| def PyPO.BindBeam.makeGauss | ( | gdict_py, | |
| source | |||
| ) |
Generate a polarised Gaussian beam.
The beam is always defined parallel to the x, y plane. The z-coordinate can be adjusted. In order to tilt the beam, you have to tilt the underlying plane AFTER defining the beam on it.
| gdict_py | A GPODict dictionary containing relevant Gaussian beam parameters. |
| source | A reflDict dictionary describing the plane on which the Gaussian is defined. |
| def PyPO.BindBeam.makeGRTframe | ( | grdict_py | ) |
| def PyPO.BindBeam.makeRTframe | ( | RTDict_py | ) |
Generate a tubular ray-trace frame.
The tube consists of annular rings of rays and can be given opening angles and radii.
| RTDict_py | A filled TubeRTDict. |
| def PyPO.BindBeam.makeScalarGauss | ( | gdict_py, | |
| source | |||
| ) |
Generate a scalar Gaussian beam.
The beam is always defined parallel to the x, y plane. The z-coordinate can be adjusted. In order to tilt the beam, you have to tilt the underlying plane AFTER defining the beam on it.
| gdict_py | A GPODict dictionary containing relevant scalar Gaussian beam parameters. |
| source | A reflDict dictionary describing the plane on which the scalar Gaussian is defined. |