Skip to content

Commit

Permalink
Version 0.5.8
Browse files Browse the repository at this point in the history
* New pixelated region class: CirclePixelsRegionwithGroup.
  • Loading branch information
Hideousmon committed Sep 4, 2024
1 parent a771b8f commit 6c77814
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion history.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,5 @@
### Version 0.5.6 (Aug 25, 2024)
* Defining material with float refractive index enabled for FDTDSimulation.add_structure_from_gdsii().

### Version 0.5.7 (Sep 4, 2024)
### Version 0.5.8 (Sep 4, 2024)
* New pixelated region class: CirclePixelsRegionwithGroup.
2 changes: 1 addition & 1 deletion splayout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.5.7"
__version__ = "0.5.8"

## Submodules
from . import utils
Expand Down
5 changes: 5 additions & 0 deletions splayout/components/pixelsregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ class CirclePixelsRegionwithGroup:
def __init__(self, bottom_left_corner_point, top_right_corner_point, pixel_radius, fdtd_engine, material=SiO2, z_start=-0.11, z_end=0.11 , group_name = "pixels", matrix_mask = None, relaxing_time = 0):
self.bottom_left_corner_point = tuple_to_point(bottom_left_corner_point)
self.top_right_corner_point = tuple_to_point(top_right_corner_point)
self.left_down_point = self.bottom_left_corner_point
self.right_up_point = self.top_right_corner_point
self.pixel_radius = pixel_radius
self.__last_array = None
self.__lastest_array = None
Expand All @@ -253,6 +255,9 @@ def __initialize(self):

self.fdtd_engine.eval("addstructuregroup;")
self.fdtd_engine.eval("set(\"name\", \""+self.group_name+"\");")
self.fdtd_engine.eval("set(\"x\", 0);")
self.fdtd_engine.eval("set(\"y\", 0);")
self.fdtd_engine.eval("set(\"z\", 0);")
self.fdtd_engine.fdtd.putv("radius_matrix", self.__lastest_array)
self.fdtd_engine.fdtd.putv("pixel_radius", self.pixel_radius)
self.fdtd_engine.fdtd.putv("z_start", self.z_start)
Expand Down

0 comments on commit 6c77814

Please sign in to comment.