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

Method set_boundary

python/simulation.py:2669–2678  ·  view source on GitHub ↗

Sets the condition of the boundary on the specified side in the specified direction. See the [Constants (Enumerated Types)](#constants-enumerated-types) section for valid `side`, `direction`, and `boundary_condition` values.

(self, side, direction, condition)

Source from the content-addressed store, hash-verified

2667 return self.fields.phase_in_material(structure, time)
2668
2669 def set_boundary(self, side, direction, condition):
2670 """
2671 Sets the condition of the boundary on the specified side in the specified
2672 direction. See the [Constants (Enumerated Types)](#constants-enumerated-types)
2673 section for valid `side`, `direction`, and `boundary_condition` values.
2674 """
2675 if self.fields is None:
2676 self.init_sim()
2677
2678 self.fields.set_boundary(side, direction, condition)
2679
2680 def get_field_point(self, c: int = None, pt: Vector3Type = None):
2681 """

Callers 2

Calls 1

init_simMethod · 0.95

Tested by 1