# 1DPyHC
[![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/gevero/1DPyHC)
<img src="https://github.com/gevero/1DPyHC/blob/master/images/bragg.png" width="600">
A python code to calculate the optical properties of 1D Photonic Crystals. The code follows the guidelines outlined in:
Yeh P, Yariv A, Hong C-S (1977) **Electromagnetic propagation in periodic stratified media. I. General theory.** *J Opt Soc Am 67:423–438*
[doi: 10.1364/JOSA.67.000423](http://dx.doi.org/10.1364/JOSA.67.000423)
For the time being we are only dealing with TE modes (which are specially interesting for **Bloch Surface Waves**). TM mode calculations will be added along the way
## Installation
Installing **1DPyHC** should be fairly easy. First of all you need a python distribution on your system. The simplest thing to do if you are using **Windows** or **OSX** would be to install [Anaconda](https://store.continuum.io/cshop/anaconda/), a beautiful, free, and easy to use python distribution: the relevant installations instructions are found [here](http://docs.continuum.io/anaconda/install.html). If you are using **Linux** you probably already know how to install python on your system, nevertheless my advice is to also install [The IPython Notebook](http://ipython.org/notebook.html), which is already bundled in Anaconda.
The second step would be installing **1DPyHC** itself. If you are familiar with [git](http://git-scm.com/) and [github](https://github.com/) you can simply clone the repository, otherwise just [download](https://github.com/gevero/py-matrix/archive/master.zip) the zipped version of the repo and unpack it wherever you like.
## Usage
The best thing to do for the moment is to start from the **.ipynb** files in the [examples](https://github.com/gevero/1DPyHC/tree/master/examples) folder. You can load them in your local IPython Notebook instance: they should give you a fair idea about how to proceed for your calculations. Each function in the code features a detailed documentation easily accessible with the `Shift-Tab` tool-tip shortcut from the IPython Notebook interface.
没有合适的资源?快使用搜索试试~ 我知道了~
计算一维光子 晶体光学特性的python代码_python_代码_下载
共9个文件
spt:2个
md:2个
ipynb:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 98 浏览量
2022-07-03
16:57:17
上传
评论 1
收藏 92KB ZIP 举报
温馨提示
用于计算一维光子晶体光学特性的 python 代码。该代码遵循以下指南: Yeh P, Yariv A, Hong CS (1977)周期性分层介质中的电磁传播。一、一般理论。 J Opt Soc Am 67:423–438 doi: 10.1364/JOSA.67.000423 目前我们只处理 TE 模式(这对布洛赫表面波特别有趣)。TM 模式计算将沿途添加 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
1DPyHC-master.zip (9个子文件)
1DPyHC
images
bragg.png 35KB
examples
gaas_alas_tmatrix.spt 5KB
TiO2-SiO2 Bragg Mirror.ipynb 53KB
GaAs-AlAs Bragg Mirror.ipynb 4KB
sio2_tio2_tmatrix.spt 5KB
pyhc.py 8KB
LICENSE.md 34KB
.gitignore 20B
README.md 2KB
共 9 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功