Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoComp/meep
/ functions
Functions
3,134 in github.com/NanoComp/meep
⨍
Functions
3,134
◇
Types & classes
277
↳
Endpoints
3
↓ 2 callers
Method
left_tree
src/structure_dump.cpp:457
↓ 2 callers
Function
length_indicator
Calculates the design field and the magnitude of its gradient for lengthscale indicators [1]. Parameters ---------- x : array_like
python/adjoint/filters.py:988
↓ 2 callers
Function
levelset_and_smoothing
Returns the density weights for a multilayer stack as a levelset. Args: layer_thickness_um: thickness of each layer in the stack. Retu
python/examples/adjoint_optimization/multilayer_opt.py:66
↓ 2 callers
Function
levelset_and_smoothing
Returns the density weights for a binary grating as a levelset. Args: grating_height_um: the height of the grating. Returns: The
python/examples/adjoint_optimization/binary_grating_levelset.py:71
↓ 2 callers
Function
line_width_and_spacing_constraint
Constraint function for the minimum line width and spacing. Args: result: evaluation of this constraint function, modified in place.
python/examples/adjoint_optimization/mode_converter.py:245
↓ 2 callers
Method
load
src/fields_dump.cpp:232
↓ 2 callers
Method
load_eigenvectors
(self, filename)
python/solver.py:495
↓ 2 callers
Method
load_fields
Loads a fields from the file `fname`.
python/simulation.py:2348
↓ 2 callers
Method
load_force_data
Load the Fourier-transformed fields into the given force object (replacing any values currently there) from the `ForceData` object `f
python/simulation.py:3474
↓ 2 callers
Method
load_hdf5
src/dft.cpp:579
↓ 2 callers
Method
load_minus_near2far_data
As `load_near2far_data`, but negates the Fourier-transformed fields after they are loaded. This means that they will be *subtracted*
python/simulation.py:3373
↓ 2 callers
Method
load_structure
Loads a structure from the file `fname`.
python/simulation.py:2318
↓ 2 callers
Method
magnetic_energy_in_box
Given a `mp.Volume`, returns the integral of the magnetic-field energy $\\mathbf{H}^* \\cdot \\mathbf{B}/2$ in the given volume. If t
python/simulation.py:3701
↓ 2 callers
Function
make_file_material
this routine subsumes the content of the old 'read_epsilon_file' routine
src/meepgeom.cpp:2065
↓ 2 callers
Function
make_output_directory
src/output_directory.cpp:86
↓ 2 callers
Function
make_vector3
/ / /
src/meepgeom.hpp:151
↓ 2 callers
Function
map_data
libpympb/pympb.cpp:2554
↓ 2 callers
Method
mapping
( self, x: List[float] = None, filter_radius: float = None, eta: float = None,
python/tests/test_adjoint_solver.py:510
↓ 2 callers
Function
master_fopen
src/mympi.cpp:737
↓ 2 callers
Function
material_grid_grad
src/meepgeom.cpp:366
↓ 2 callers
Function
material_grids_addgradient_point
src/meepgeom.cpp:2757
↓ 2 callers
Function
matrix_invert
Set Vinv = inverse of V, where both V and Vinv are complex matrices.*/
src/monitor.cpp:246
↓ 2 callers
Method
max_abs
src/integrate.cpp:221
↓ 2 callers
Method
max_abs_field_function
As `integrate_field_function`, but returns the maximum absolute value of `func` in the volume `where` instead of its integral.
python/simulation.py:4421
↓ 2 callers
Method
mean_epsmu
libpympb/pympb.cpp:288
↓ 2 callers
Function
metallic_ez
tests/known_results.cpp:111
↓ 2 callers
Function
min
tests/flux.cpp:55
↓ 2 callers
Function
my_dft_chunks_Ntotal
src/dft.cpp:421
↓ 2 callers
Function
my_global_rank
src/mympi.cpp:851
↓ 2 callers
Method
new_internal_data
for Lorentzian susc. the internal data is just a backup of P from the previous timestep.
src/susceptibility.cpp:108
↓ 2 callers
Function
nlopt_fom
Wrapper for NLopt FOM. Args: x: Degrees of freedom array. gradient: Gradient of FOM. opt: Optimization problem object.
python/examples/waveguide_crossing.py:215
↓ 2 callers
Function
nonlinear_ex
tests/symmetry.cpp:885
↓ 2 callers
Method
nuttall
(self, t, f0)
python/adjoint/filter_source.py:128
↓ 2 callers
Method
output_dft
src/dft.cpp:1371
↓ 2 callers
Method
output_mu
(self)
python/solver.py:619
↓ 2 callers
Method
pad_self
src/vec.cpp:1083
↓ 2 callers
Function
parallel_waveguide
(s, xodd)
python/examples/parallel-wvgs-force.py:22
↓ 2 callers
Function
parallel_waveguide
(s, yodd)
python/examples/parallel-wvgs-mpb.py:19
↓ 2 callers
Function
partition_has_duplicate_proc_ids
Returns True if the partition has more than one node with the same proc_id. Args: partition: the BinaryPartition node Returns: A
python/binary_partition_utils.py:39
↓ 2 callers
Function
phase_isclose
approximate comparisons of phases to 1 or -1. exp(ix) * exp(-ix) is not exactly 1 due to roundoff errors, but we want to treat it equal for the p
src/boundaries.cpp:359
↓ 2 callers
Function
pick_bound
(which)
python/geom.py:1702
↓ 2 callers
Function
pixel_volume
Computes the number of pixels contained in a 2D or 3D grid_volume object. NOTE: This assumes that z=0 means 2D simulation and z>0 means 3D.
python/binary_partition_utils.py:103
↓ 2 callers
Method
place_adjoint_source
(self, dJ)
python/adjoint/objective.py:564
↓ 2 callers
Function
planewave_above_ground_plane
Returns the flux from a linearly polarized planewave above a ground plane. Args: kx, ky, kz: the wavevector components of the planew
python/examples/antenna_pec_ground_plane_1D.py:29
↓ 2 callers
Method
planewave_above_ground_plane
Returns the radiated flux from a planewave source above a ground plane. Args: kx, ky, kz: the wavevector components of t
python/tests/test_boundaries_1D.py:25
↓ 2 callers
Function
planewave_wavevector
Returns the wavevector of the outgoing planewave in free space. Args: polar_rad: polar angle of the wavevector for φ = 0 (xz plane). 0 is
python/examples/antenna_pec_ground_plane_1D.py:86
↓ 2 callers
Method
planewave_wavevector
Returns the wavevector of the outgoing planewave in free space. Args: polar_rad: polar angle of the wavevector for φ = 0 (xz plan
python/tests/test_boundaries_1D.py:81
↓ 2 callers
Function
plot_eps
( sim: Simulation, ax: Optional[Axes] = None, output_plane: Optional[Volume] = None, eps_param
python/visualization.py:516
↓ 2 callers
Function
pml_x
src/structure.cpp:625
↓ 2 callers
Function
pol_grating
(d, ph, gp, nmode)
python/examples/polarization_grating.py:32
↓ 2 callers
Function
polariton_ex
tests/symmetry.cpp:857
↓ 2 callers
Method
prepare_forward_run
(self)
python/adjoint/optimization_problem.py:245
↓ 2 callers
Method
print
src/vec.cpp:741
↓ 2 callers
Method
pt_in_volume
(self, pt: Vector3Type)
python/simulation.py:492
↓ 2 callers
Method
purcell_enh_theory
Computes the Purcell enhancement factor of a point dipole in a planar dielectric cavity with lossless metallic walls using equation 7 of:
python/tests/test_ldos.py:185
↓ 2 callers
Function
pw_amp
tests/pw-source-ll.cpp:41
↓ 2 callers
Function
py_class_name_as_string
python/typemap_utils.cpp:218
↓ 2 callers
Function
pyblock_to_block
python/typemap_utils.cpp:952
↓ 2 callers
Function
pyv3_to_v3
python/typemap_utils.cpp:234
↓ 2 callers
Function
radiation_pattern
Computes the radiation pattern from the far fields. Args: e_field, h_field: the electric (Er, Ep, Ez) and magnetic (Hr, Hp, Hz)
python/examples/dipole_in_vacuum_cyl_off_axis.py:78
↓ 2 callers
Method
refl_planar
(self, theta, kz_2d)
python/tests/test_special_kz.py:12
↓ 2 callers
Method
remove
src/dft.cpp:146
↓ 2 callers
Method
remove_susceptibilities
src/fields.cpp:599
↓ 2 callers
Method
require_component
src/meep.hpp:1936
↓ 2 callers
Method
restore_component
src/energy_and_flux.cpp:120
↓ 2 callers
Method
retrieve_gap
(self, lower_band)
python/solver.py:565
↓ 2 callers
Method
right_tree
src/structure_dump.cpp:462
↓ 2 callers
Method
rotate
Returns the vector rotated by an angle *`theta`* (in radians) in the right-hand direction around the *`axis`* vector (whose length is
python/geom.py:234
↓ 2 callers
Method
run_bend_flux
(self, from_gdsii_file)
python/tests/test_bend_flux.py:112
↓ 2 callers
Method
run_binary_grating_diffraction
(self, gp, gh, gdc, theta)
python/tests/test_diffracted_planewave.py:31
↓ 2 callers
Method
run_kdom
(self, theta, num_band)
python/tests/test_kdom.py:8
↓ 2 callers
Function
run_shape_optimization
Run shape optimization using a cross as a starting guess. Args: resolution: Simulation resolution in pixels/micron. beta: Tanh fu
python/examples/waveguide_crossing.py:280
↓ 2 callers
Method
run_simulation
(self)
python/tests/test_cyl_ellipsoid.py:58
↓ 2 callers
Method
run_test
(self, nfreqs)
python/tests/test_cavity_farfield.py:14
↓ 2 callers
Method
run_zodd
(self, *band_functions)
python/solver.py:977
↓ 2 callers
Method
save_hdf5
src/dft.cpp:573
↓ 2 callers
Method
set_boundary
src/boundaries.cpp:79
↓ 2 callers
Method
set_curfield_type
libpympb/pympb.cpp:1532
↓ 2 callers
Function
set_geometry_from_GDSII
/ find a polygon on the given GDSII layer and set the libctlgeom */ geometry to the size of its bounding box. */ if Text is non
src/GDSIIgeom.cpp:104
↓ 2 callers
Method
set_grid_size
libpympb/pympb.cpp:1549
↓ 2 callers
Method
set_materials
This can be called in a step function, and is useful for changing the geometry or default material as a function of time.
python/simulation.py:2233
↓ 2 callers
Function
set_random_seed
src/random.cpp:37
↓ 2 callers
Function
sort_by_distance
sort the array to maximize the spacing of each point with the previous points */
src/sphere-quad.cpp:218
↓ 2 callers
Function
special_kz_phasefix
src/mpb.cpp:356
↓ 2 callers
Function
split_by_cost
src/structure.cpp:66
↓ 2 callers
Function
split_into_tiles
src/fields.cpp:207
↓ 2 callers
Function
sqr
src/dft.cpp:329
↓ 2 callers
Method
step_boundaries
src/step.cpp:225
↓ 2 callers
Function
stress_sum
src/stress.cpp:90
↓ 2 callers
Function
structure_dump
tests/dump_load.cpp:93
↓ 2 callers
Function
structure_load
tests/dump_load.cpp:101
↓ 2 callers
Function
substrate_geometry
Returns the geometry of the LED-like structure. Args: is_textured: whether the substrate is textured or not.
python/examples/stochastic_emitter_reciprocity.py:34
↓ 2 callers
Function
susceptibility_equiv
like susceptibility_equal in ctl-io.cpp, but ignores sigma and id (must be updated manually, re-copying from ctl-io.cpp), if we add new suscepti
src/meepgeom.cpp:1638
↓ 2 callers
Function
susceptibility_equiv
like susceptibility_equal in ctl-io.cpp, but ignores sigma and id (must be updated manually, re-copying from ctl-io.cpp), if we add new suscepti
scheme/structure.cpp:1119
↓ 2 callers
Function
susceptibility_list_equal
src/meepgeom.cpp:61
↓ 2 callers
Function
susceptibility_list_to_py_list
python/typemap_utils.cpp:756
↓ 2 callers
Function
test_metal
tests/two_dimensional.cpp:71
↓ 2 callers
Function
test_metal_rot2y
tests/symmetry.cpp:603
↓ 2 callers
Function
test_metal_xmirror
tests/symmetry.cpp:244
↓ 2 callers
Function
test_metal_ymirror
tests/symmetry.cpp:519
← previous
next →
801–900 of 3,134, ranked by callers