forked from jan/fdfd_tools
add some missing type annotations
This commit is contained in:
parent
685de70af0
commit
6a56b081e4
@ -161,7 +161,13 @@ def h_full(omega: complex,
|
||||
return A
|
||||
|
||||
|
||||
def eh_full(omega, dxes, epsilon, mu=None, pec=None, pmc=None):
|
||||
def eh_full(omega: complex,
|
||||
dxes: dx_lists_t,
|
||||
epsilon: vfield_t,
|
||||
mu: vfield_t = None,
|
||||
pec: vfield_t = None,
|
||||
pmc: vfield_t = None
|
||||
) -> sparse.spmatrix:
|
||||
"""
|
||||
Wave operator for [E, H] field representation. This operator implements Maxwell's
|
||||
equations without cancelling out either E or H. The operator is
|
||||
@ -256,7 +262,8 @@ def e2h(omega: complex,
|
||||
|
||||
def m2j(omega: complex,
|
||||
dxes: dx_lists_t,
|
||||
mu: vfield_t = None):
|
||||
mu: vfield_t = None
|
||||
) -> sparse.spmatrix:
|
||||
"""
|
||||
Utility operator for converting M field into J.
|
||||
Converts a magnetic current M into an electric current J.
|
||||
|
Loading…
Reference in New Issue
Block a user