-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
95 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include README.rst | ||
include requirements.txt | ||
include h5utils/data/*.h5 | ||
include h5utils/data/*.ctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
(set! resolution 50) | ||
|
||
(set! geometry (list | ||
(make cylinder | ||
(axis 1 0 0) | ||
(center 0 -0.5 -0.5) | ||
(height 1) | ||
(radius 0.25) | ||
(material (make dielectric (epsilon 2)) ) | ||
) | ||
(make cylinder | ||
(axis 0 1 0) | ||
(center -0.5 0 -0.5) | ||
(height 1) | ||
(radius 0.25) | ||
(material (make dielectric (epsilon 3)) ) | ||
) | ||
(make cylinder | ||
(axis 0 0 1) | ||
(center -0.5 -0.5 0) | ||
(height 1) | ||
(radius 0.25) | ||
(material (make dielectric (epsilon 4)) ) | ||
) | ||
)) | ||
|
||
(set! filename-prefix "lattice-cartesian-") | ||
(run) | ||
|
||
(define a1 (vector3 0 2 3)) | ||
(define a2 (vector3 1 0 3)) | ||
(define a3 (vector3 1 2 0)) | ||
|
||
(define L1 (/ (vector3-norm a1) 2)) | ||
(define L2 (/ (vector3-norm a2) 2)) | ||
(define L3 (/ (vector3-norm a3) 2)) | ||
|
||
(set! geometry-lattice | ||
(make lattice | ||
(basis1 a1) | ||
(basis2 a2) | ||
(basis3 a3) | ||
(basis-size L1 L2 L3) | ||
) | ||
) | ||
|
||
(set! geometry (list | ||
(make cylinder | ||
(axis 1 0 0) | ||
(center 0 -0.5 -0.5) | ||
(height L1) | ||
(radius 0.25) | ||
(material (make dielectric (epsilon 2)) ) | ||
) | ||
(make cylinder | ||
(axis 0 1 0) | ||
(center -0.5 0 -0.5) | ||
(height L2) | ||
(radius 0.25) | ||
(material (make dielectric (epsilon 3)) ) | ||
) | ||
(make cylinder | ||
(axis 0 0 1) | ||
(center -0.5 -0.5 0) | ||
(height L3) | ||
(radius 0.25) | ||
(material (make dielectric (epsilon 4)) ) | ||
) | ||
)) | ||
|
||
(set! filename-prefix "lattice-non-cartesian-") | ||
(run) |