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

Function get_forces

python/simulation.py:6100–6105  ·  view source on GitHub ↗

Given a force object, returns a list of the current force spectrum that it has accumulated.

(f)

Source from the content-addressed store, hash-verified

6098
6099
6100def get_forces(f):
6101 """
6102 Given a force object, returns a list of the current force spectrum that it has
6103 accumulated.
6104 """
6105 return f.force()
6106
6107
6108def scale_near2far_fields(s, near2far):

Callers 1

display_forcesMethod · 0.85

Calls 1

forceMethod · 0.45

Tested by

no test coverage detected