MCPcopy Create free account
hub / github.com/NanoComp/meep / get_epsilon_point

Method get_epsilon_point

python/simulation.py:2688–2696  ·  view source on GitHub ↗

Given a frequency `frequency` and a `Vector3` `pt`, returns the average eigenvalue of the permittivity tensor at that location and frequency. If `frequency` is non-zero, the result is complex valued; otherwise it is the real, frequency-independent part of $\\varepsil

(self, pt: Vector3Type = None, frequency: float = 0.0)

Source from the content-addressed store, hash-verified

2686 return self.fields.get_field_from_comp(c, v3)
2687
2688 def get_epsilon_point(self, pt: Vector3Type = None, frequency: float = 0.0):
2689 """
2690 Given a frequency `frequency` and a `Vector3` `pt`, returns the average eigenvalue
2691 of the permittivity tensor at that location and frequency. If `frequency` is
2692 non-zero, the result is complex valued; otherwise it is the real,
2693 frequency-independent part of $\\varepsilon$ (the $\\omega\\to\\infty$ limit).
2694 """
2695 v3 = py_v3_to_vec(self.dimensions, pt, self.is_cylindrical)
2696 return self.fields.get_eps(v3, frequency)
2697
2698 def get_mu_point(self, pt: Vector3Type = None, frequency: float = 0.0):
2699 """

Callers 1

test_get_pointMethod · 0.95

Calls 2

py_v3_to_vecFunction · 0.85
get_epsMethod · 0.80

Tested by 1

test_get_pointMethod · 0.76