WIP cython scatsystem
Former-commit-id: f869e671148d3a75bbf34afe24aad02fd0d32611
This commit is contained in:
parent
8f90842b24
commit
c86ff69827
|
@ -1,5 +1,5 @@
|
||||||
cimport numpy as np
|
cimport numpy as np
|
||||||
from .qpms_cdefs cimport qpms_tmatrix_t, cdouble, qpms_tmatrix_interpolator_t
|
from .qpms_cdefs cimport qpms_tmatrix_t, cdouble, qpms_tmatrix_interpolator_t, qpms_tmatrix_generator_t
|
||||||
from .cybspec cimport BaseSpec
|
from .cybspec cimport BaseSpec
|
||||||
|
|
||||||
cdef class TMatrixInterpolator:
|
cdef class TMatrixInterpolator:
|
||||||
|
|
|
@ -320,7 +320,7 @@ cdef class ScatteringSystem:
|
||||||
cdef qpms_scatsys_t *s
|
cdef qpms_scatsys_t *s
|
||||||
cdef qpms_tmatrix_function_t *tmg # this will ultimately contain pointers to stuff in basespecs and tmgens.
|
cdef qpms_tmatrix_function_t *tmg # this will ultimately contain pointers to stuff in basespecs and tmgens.
|
||||||
|
|
||||||
def __cinit__(self, particles, FinitePointGroup sym):
|
def __cinit__(self, particles, FinitePointGroup sym, omega):
|
||||||
'''TODO doc.
|
'''TODO doc.
|
||||||
Takes the particles (which have to be a sequence of instances of Particle),
|
Takes the particles (which have to be a sequence of instances of Particle),
|
||||||
fills them together with their t-matrices to the "proto-qpms_scatsys_t"
|
fills them together with their t-matrices to the "proto-qpms_scatsys_t"
|
||||||
|
@ -540,6 +540,16 @@ cdef class ScatteringSystem:
|
||||||
def scatter_solver(self, double k, iri=None):
|
def scatter_solver(self, double k, iri=None):
|
||||||
return ScatteringMatrix(self, k, iri)
|
return ScatteringMatrix(self, k, iri)
|
||||||
|
|
||||||
|
cdef class ScatteringSystemAtOmega:
|
||||||
|
'''
|
||||||
|
Wrapper over the C qpms_scatsys_at_omega_t structure
|
||||||
|
that keeps the T-matrix and background data evaluated
|
||||||
|
at specific frequency.
|
||||||
|
'''
|
||||||
|
cdef qpms_scatsys_at_omega_t ssw
|
||||||
|
|
||||||
|
pass #TODO
|
||||||
|
|
||||||
cdef class ScatteringMatrix:
|
cdef class ScatteringMatrix:
|
||||||
'''
|
'''
|
||||||
Wrapper over the C qpms_ss_LU structure that keeps the factorised mode problem matrix.
|
Wrapper over the C qpms_ss_LU structure that keeps the factorised mode problem matrix.
|
||||||
|
|
Loading…
Reference in New Issue