From 8d2ec1616746eb60ad68680ac6cc6085d5846fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Tue, 13 Dec 2016 12:22:18 +0200 Subject: [PATCH] begin draft of objective approach to the MS problem Former-commit-id: 857d55fb5a29373dec0d12ba435ac92c7f05ccef --- qpms/lattices.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 qpms/lattices.py diff --git a/qpms/lattices.py b/qpms/lattices.py new file mode 100644 index 0000000..94abed2 --- /dev/null +++ b/qpms/lattices.py @@ -0,0 +1,27 @@ +''' +Object oriented approach for the classical multiple scattering problem. +''' + +import numpy as np +from qpms_c import * # TODO be explicit about what is imported +from .qpms_p import * # TODO be explicit about what is imported + +class Scatterers(object): + ''' + This is the most general class for a system of scatterers + in a non-lossy homogeneous background + to be solved with the multiple_scattering method. The scatterers, + as long as they comply with the disjoint circumscribed sphere + hypothesis, can each have any position in the 3D space and + any T-matrix. + + Note that this object describes the scattering problem only for + a single given frequency, as the T-matrices and wavelenght + otherwise differ and all the computationally demanding + parts have to be done for each frequency. However, + the object can be recycled for many incident field shapes + at the given frequency. + + + ''' +