-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from bblankrot/dev
Last PR before 0.0.2
- Loading branch information
Showing
18 changed files
with
364 additions
and
136 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
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ Optim 0.14.0 | |
PyPlot | ||
DataFrames | ||
CSV | ||
PGFPlotsX | ||
PGFPlotsX 0.2.1 |
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
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,17 @@ | ||
# Adding New Shapes | ||
|
||
ParticleScattering includes functions for drawing squircles, rounded stars, and ellipses. | ||
New shape functions can be added, provided they have the following structure: | ||
```julia | ||
function my_shape(args, N) | ||
t = Float64[π*j/N for j = 0:(2*N-1)] # or t = 0:π/N:π*(2-1/N) | ||
ft = [x y] | ||
dft = [dx/dt dy/dt] | ||
ShapeParams(t, ft, dft) | ||
end | ||
``` | ||
|
||
Where `t` is the parametrization variable, `ft[i,:] = [x(t[i]) y(t[i])]` contains the coordinates, and dft contains the derivative of `ft` with respect to `t`. | ||
In particular, the quadrature used by ParticleScattering assumes `t` | ||
are equidistantly distributed in ``[0, 2\pi)``, and that none of the points `ft` | ||
lie on the origin. |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 @@ | ||
@article{ar:blankrot2018, | ||
author = {Boaz Blankrot and Clemens Heitzinger}, | ||
title = {Efficient computational design and optimization of dielectric metamaterial devices}, | ||
journal = {submitted for publication}, | ||
year = {2018} | ||
} | ||
|
||
@article{ar:optimjl, | ||
doi = {10.21105/joss.00615}, | ||
url = {https://doi.org/10.21105/joss.00615}, | ||
year = {2018}, | ||
month = {apr}, | ||
publisher = {The Open Journal}, | ||
volume = {3}, | ||
number = {24}, | ||
pages = {615}, | ||
author = {Patrick K Mogensen and Asbj{\o}rn N Riseth}, | ||
title = {Optim: A mathematical optimization package for Julia}, | ||
journal = {Journal of Open Source Software} | ||
} | ||
|
||
@article{ar:alldielectric, | ||
title={All-dielectric metamaterials}, | ||
author={Jahani, Saman and Jacob, Zubin}, | ||
journal={Nature Nanotechnology}, | ||
volume={11}, | ||
number={1}, | ||
pages={23--36}, | ||
year={2016}, | ||
publisher={Nature Research}, | ||
doi={10.1038/nnano.2015.304} | ||
} |
Oops, something went wrong.