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
↓ 3 callers
Function
stupidsort
src/vec.cpp:496
↓ 3 callers
Method
subvolume
/ / /
src/vec.cpp:1626
↓ 3 callers
Function
sym_matrix_invert
Set Vinv = inverse of V, where both V and Vinv are real-symmetric matrices.*/
src/meepgeom.cpp:175
↓ 3 callers
Function
sym_matrix_invert
Set Vinv = inverse of V, where both V and Vinv are real-symmetric matrices.*/
scheme/structure.cpp:41
↓ 3 callers
Function
sym_matrix_rotate
rotate A by a unitary (real) rotation matrix R: RAR = transpose(R) * A * R */
src/meepgeom.cpp:151
↓ 3 callers
Function
sym_matrix_rotate
rotate A by a unitary (real) rotation matrix R: RAR = transpose(R) * A * R */
scheme/structure.cpp:17
↓ 3 callers
Method
symmetry
src/vec.cpp:1157
↓ 3 callers
Function
tanh_projection
Sigmoid projection filter. Ref: F. Wang, B. S. Lazarov, & O. Sigmund, On projection methods, convergence and robust formulations in topology
python/adjoint/filters.py:686
↓ 3 callers
Function
timing_data_vector_from_all
src/time.cpp:68
↓ 3 callers
Method
transform_unshifted
src/vec.cpp:1303
↓ 3 callers
Method
update_design
Update the design permittivity function. rho_vector ....... a list of numpy arrays that maps to each design region
python/adjoint/optimization_problem.py:539
↓ 3 callers
Function
variable_material
scheme/structure.cpp:372
↓ 3 callers
Function
vec2py
python/typemap_utils.cpp:127
↓ 2 callers
Function
Compare
tests/array-slice-ll.cpp:45
↓ 2 callers
Function
FOR_COMPONENTS
src/cw_fields.cpp:156
↓ 2 callers
Function
FOR_DIRECTIONS
unit directions are periodic by default:
src/fields.cpp:81
↓ 2 callers
Function
FOR_DIRECTIONS
src/structure.cpp:492
↓ 2 callers
Function
FOR_FIELD_TYPES
src/fields.cpp:64
↓ 2 callers
Function
FOR_FT_COMPONENTS
src/update_eh.cpp:35
↓ 2 callers
Function
LOOP_OVER_VOL_NOTOWNED
tests/integrate.cpp:298
↓ 2 callers
Function
LOOP_OVER_VOL_OWNED
src/susceptibility.cpp:333
↓ 2 callers
Function
PLOOP_OVER_IVECS
src/step_generic.cpp:90
↓ 2 callers
Function
Run
/ / /
tests/dft-fields.cpp:36
↓ 2 callers
Method
__call__
Evaluate value and/or gradient of objective function. Args: rho_vector: list of design weights (which is itself a list). Each
python/adjoint/optimization_problem.py:159
↓ 2 callers
Function
_add_colorbar
Add a colorbar to the parent Figure of 'ax' by creating an additional Axes.
python/visualization.py:476
↓ 2 callers
Function
_do_master_printf
src/mympi.cpp:681
↓ 2 callers
Function
_edge_pad
Border-pads the edges of an array. Used to preprocess the design weights prior to convolution with the filter. Border padding an image will s
python/adjoint/filters.py:75
↓ 2 callers
Method
_get_chunk_communication_areas
(self)
python/simulation.py:2196
↓ 2 callers
Method
_get_epsmu
( self, diag, offdiag, susceptibilities, conductivity_diag, co
python/geom.py:533
↓ 2 callers
Function
_get_resolution
Converts input design-grid resolution to the acceptable format. Args: resolution: number of list of numbers representing design-grid
python/adjoint/filters.py:189
↓ 2 callers
Method
_init
Set up the initial state of the singleton. Called only when the first instance is created.
python/verbosity_mgr.py:57
↓ 2 callers
Method
_load_dump_fields_2d
(self, single_parallel_file=True)
python/tests/test_dump_load.py:240
↓ 2 callers
Method
_load_dump_fields_3d
(self, single_parallel_file=True)
python/tests/test_dump_load.py:356
↓ 2 callers
Method
_make_fragment_lists
(self, gv)
python/simulation.py:1927
↓ 2 callers
Function
_plot_optimization_results
( data: List, results: List, num_samples: int = 4, )
python/examples/waveguide_crossing.py:260
↓ 2 callers
Function
_quarter_to_full_kernel
Constructs the full kernel from its nonnegative quadrant. Args: arr: 2d input array representing the nonnegative quadrant of a
python/adjoint/filters.py:40
↓ 2 callers
Method
_run_fwd_simulation
Runs forward simulation, returning monitor values and design region fields.
python/adjoint/wrapper.py:140
↓ 2 callers
Method
_run_until
(self, cond, step_funcs)
python/simulation.py:2804
↓ 2 callers
Function
abs2
tests/bragg_transmission.cpp:90
↓ 2 callers
Method
add_dft_near2far
src/near2far.cpp:569
↓ 2 callers
Method
add_energy
`add_energy(fcen, df, nfreq, freq, EnergyRegions, decimation_factor=0)` ##sig Add a bunch of `EnergyRegion`s to the current simulat
python/simulation.py:3122
↓ 2 callers
Function
add_interpolate_weights
A brute force approach to calculating Aᵤ using finite differences. Past versions of the code only calculated dA/dε using a finite difference, and then
src/meepgeom.cpp:2709
↓ 2 callers
Method
add_source
src/fields.cpp:576
↓ 2 callers
Method
add_sources
(self)
python/simulation.py:2975
↓ 2 callers
Method
adjoint_run
(self)
python/adjoint/optimization_problem.py:308
↓ 2 callers
Method
adjoint_solver_complex_fields
( self, design_params, frequencies=None, need_gradient=True )
python/tests/test_adjoint_solver.py:257
↓ 2 callers
Method
adjoint_solver_damping
( self, design_params: List[float] = None, frequencies: List[float] = None, ma
python/tests/test_adjoint_solver.py:317
↓ 2 callers
Method
adjust_chunk_layout
Computes a new chunk layout, applies it to sim, and resets/re-inits sim. This method also calls self.should_adjust_chunk_layout(sim). If the
python/chunk_balancer.py:43
↓ 2 callers
Method
am_now_working_on
src/time.cpp:119
↓ 2 callers
Method
amplitude
(self, point, component)
python/simulation.py:872
↓ 2 callers
Method
amplitude
src/meep_internals.hpp:61
↓ 2 callers
Function
apply_band_func
(ms, band_func, which_band)
python/solver.py:1372
↓ 2 callers
Function
apply_band_func_thunk
We need a special function to evaluate band functions, since band functions can either be a function of the band number or a thunk (function
python/solver.py:1359
↓ 2 callers
Function
approxeq
src/near2far.cpp:567
↓ 2 callers
Function
array_to_all
/ repeatedly call sum_to_all to consolidate all entries of */ an array on all cores. */ array: in/out ptr to t
src/array_slice.cpp:48
↓ 2 callers
Function
array_to_fields
src/cw_fields.cpp:47
↓ 2 callers
Function
at_end
Given zero or more step functions, evaluates them only once, at the end of the run.
python/simulation.py:5131
↓ 2 callers
Function
attempt
tests/physical.cpp:100
↓ 2 callers
Method
average_with_backup
src/energy_and_flux.cpp:136
↓ 2 callers
Method
backup_component
src/energy_and_flux.cpp:97
↓ 2 callers
Function
backward
Computes the Poynting flux spectrum of the dipole emission using an overlap integral of the DFT fields from a line monitor in the high-i
python/examples/stochastic_emitter_reciprocity.py:119
↓ 2 callers
Function
bench_2d_te
tests/bench.cpp:161
↓ 2 callers
Function
bench_2d_te_nonlinear
tests/bench.cpp:185
↓ 2 callers
Function
bench_2d_tm
tests/bench.cpp:138
↓ 2 callers
Function
bench_3d_periodic
tests/bench.cpp:220
↓ 2 callers
Function
bend_flux
/ / /
tests/bend-flux-ll.cpp:185
↓ 2 callers
Function
binary_grating_diffraction
(gp, gh, gdc, theta)
python/examples/diffracted_planewave.py:14
↓ 2 callers
Function
border_masks
Return border masks for the design region. The masks are used to prevent violations on constraints on the minimum feature size at the boundar
python/examples/adjoint_optimization/mode_converter.py:66
↓ 2 callers
Function
build_straight_wg_simulation
Builds a simulation of a straight waveguide with a design region segment.
python/tests/test_adjoint_jax.py:31
↓ 2 callers
Function
bw_or_to_all
src/mympi.cpp:601
↓ 2 callers
Function
byP
multiply m by propagation matrix through dz of index n, frequency w */
tests/bragg_transmission.cpp:78
↓ 2 callers
Function
byT12
multiply m by transfer matrix from n1 to n2 */
tests/bragg_transmission.cpp:58
↓ 2 callers
Method
calculate_gradient
(self)
python/adjoint/optimization_problem.py:359
↓ 2 callers
Function
cartesian_to_reciprocal
(x, lat)
python/geom.py:1603
↓ 2 callers
Method
cdot
Returns the conjugated dot product: `conj(self)` dot `v`.
python/geom.py:181
↓ 2 callers
Method
change_m
Changes the simulation's `m` number (the angular ϕ dependence).
python/simulation.py:4464
↓ 2 callers
Function
check_2d
tests/h5test.cpp:63
↓ 2 callers
Function
check_convergence
tests/2D_convergence.cpp:67
↓ 2 callers
Function
check_integral
tests/integrate.cpp:171
↓ 2 callers
Method
check_ok
src/structure.cpp:236
↓ 2 callers
Method
check_other_signatures
Search for alternate function signatures in the docstring
doc/generate_py_api.py:265
↓ 2 callers
Function
check_tiles
First check that the tile volumes gvs do not intersect and that they add up to the chunk's total grid_volume gv
src/fields.cpp:226
↓ 2 callers
Method
check_weights
(self, w)
python/geom.py:585
↓ 2 callers
Method
chi1
generic base class definition.
src/susceptibility.cpp:58
↓ 2 callers
Method
cinternal_notowned_ptr
src/multilevel-atom.cpp:232
↓ 2 callers
Method
compute
src/meepgeom.cpp:2438
↓ 2 callers
Function
compute_boundary_weights
Integration weights at boundaries (c.f. long comment at top). */ This code was formerly part of loop_in_chunks, now refactored */ as a separate ro
src/loop_in_chunks.cpp:257
↓ 2 callers
Function
compute_flux
(m=1, n=0)
python/examples/stochastic_emitter.py:76
↓ 2 callers
Function
compute_flux
(m, n)
python/examples/stochastic_emitter_line.py:88
↓ 2 callers
Function
compute_force
(f, vg)
python/examples/parallel-wvgs-mpb.py:67
↓ 2 callers
Function
compute_resonant_mode_2d
(res, default_mat=False)
python/tests/test_material_grid.py:103
↓ 2 callers
Function
compute_resonant_mode_3d
(use_matgrid=True)
python/tests/test_material_grid.py:175
↓ 2 callers
Function
compute_transmittance
(matgrid_symmetry=False)
python/tests/test_material_grid.py:14
↓ 2 callers
Method
compute_yparities
(self)
python/solver.py:809
↓ 2 callers
Method
compute_zparities
(self)
python/solver.py:806
↓ 2 callers
Function
cond_cmp
src/meepgeom.cpp:2603
↓ 2 callers
Method
conductivity
geometry_lattice.size / 2 TODO
src/meepgeom.cpp:1588
↓ 2 callers
Method
conj
(self)
python/geom.py:161
↓ 2 callers
Function
connect_phase_from_phase
src/boundaries.cpp:362
↓ 2 callers
Function
constraint_connectivity
Computes its connectivity constraint value and the gradients with respect to each pixel value. Given a structure, assembles the finite differ
python/adjoint/connectivity.py:11
← previous
next →
601–700 of 3,134, ranked by callers