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

Method get_farfield

python/simulation.py:3227–3242  ·  view source on GitHub ↗

Given a `Vector3` point `x` which can lie anywhere outside the near-field surface, including outside the cell and a `near2far` object, returns the computed (Fourier-transformed) "far" fields at `x` as list of length 6`nfreq`, consisting of fields $(E_x^1,E_y^1,E_z^1,

(self, near2far, x, greencyl_tol: float = 1e-3)

Source from the content-addressed store, hash-verified

3225 energy.scale_dfts(-1.0)
3226
3227 def get_farfield(self, near2far, x, greencyl_tol: float = 1e-3):
3228 """
3229 Given a `Vector3` point `x` which can lie anywhere outside the near-field surface,
3230 including outside the cell and a `near2far` object, returns the computed
3231 (Fourier-transformed) "far" fields at `x` as list of length 6`nfreq`, consisting
3232 of fields $(E_x^1,E_y^1,E_z^1,H_x^1,H_y^1,H_z^1,E_x^2,E_y^2,E_z^2,H_x^2,H_y^2,H_z^2,...)$
3233 in Cartesian coordinates and
3234 $(E_r^1,E_\\phi^1,E_z^1,H_r^1,H_\\phi^1,H_z^1,E_r^2,E_\\phi^2,E_z^2,H_r^2,H_\\phi^2,H_z^2,...)$
3235 in cylindrical coordinates for the frequencies 1,2,...,`nfreq`. `greencyl_tol` specifies the
3236 convergence tolerance of the azimuthal ($\\phi$) integral in the calculation of the far field.
3237 """
3238 return mp._get_farfield(
3239 near2far.swigobj,
3240 py_v3_to_vec(self.dimensions, x, is_cylindrical=self.is_cylindrical),
3241 greencyl_tol,
3242 )
3243
3244 def get_farfields(
3245 self,

Callers 11

forward_simulationFunction · 0.95
radial_fluxMethod · 0.80
radiation_patternFunction · 0.80
radiation_patternFunction · 0.80
get_farfieldsFunction · 0.80
cavity-farfield.pyFile · 0.80
radiation_patternFunction · 0.80
get_farfieldsFunction · 0.80
radiation_patternFunction · 0.80
__call__Method · 0.80

Calls 1

py_v3_to_vecFunction · 0.85

Tested by 2

forward_simulationFunction · 0.76
radial_fluxMethod · 0.64