Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoComp/meep
/ field_func
Function
field_func
python/examples/multilevel-atom.py:99–100 ·
view source on GitHub ↗
(p)
Source
from the content-addressed store, hash-verified
97
98
99
def
field_func(p):
100
return
1
if
p.z == -0.5 * sz + 0.5 * Lcav
else
0
101
102
103
sim.fields.initialize_field(mp.Ex, field_func)
Callers
1
LOOP_XYZ
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected