drupal网站开发,盐城网站建设费用,淘宝客做自己的网站,wordpress模块化文章目录 Jones向量Jones矩阵 有关Jones矩阵、Jones向量的基本原理#xff0c;可参考这个#xff1a;
通过Python理解Jones矩阵#xff0c;本文主要介绍sympy中提供的有关偏振光学的符号计算工具 Jones向量
Jones向量是描述光线偏振状态的重要工具#xff0c;例如一个偏振… 文章目录 Jones向量Jones矩阵 有关Jones矩阵、Jones向量的基本原理可参考这个
通过Python理解Jones矩阵本文主要介绍sympy中提供的有关偏振光学的符号计算工具 Jones向量
Jones向量是描述光线偏振状态的重要工具例如一个偏振角度为 ψ \psi ψ的Jones向量可表示为 J ^ [ cos ψ sin ψ ] \hat J\begin{bmatrix} \cos\psi\\ \sin\psi \end{bmatrix} J^[cosψsinψ]
【jones_vector】是sympy.physics.optics.polarization中用于表示Jones向量的对象其调用方法为
jones_vector(psi, chi)其中psi为 x x x方向的极化角度chi为与晶体主轴的夹角。
import sympy
from sympy.physics.optics.polarization import jones_vector
psi sympy.symbols(psi)
V jones_vector(psi, 0)
sympy.pprint(V)⎡cos(ψ)⎤
⎢ ⎥
⎣sin(ψ)⎦Jones矩阵
Jones矩阵可以描述Jones向量在通过偏振元件后的变化例如偏振光在经过 x x x线偏振片之后 sin ψ \sin\psi sinψ会被滤掉从而其对应的Jones矩阵可表示为 [ 1 0 0 0 ] \begin{bmatrix} 10\\00 \end{bmatrix} [1000]
sympy.physics.optics.polarization中封装了多种偏振器件的Jones矩阵。
linear_polarizer(theta0) 线偏振光half_wave_retarder(theta) 半波片quarter_wave_retarder(theta) λ / 4 \lambda/4 λ/4波片phase_retarder(theta0, delta0) 相位延迟reflective_filter(R) 反射滤光片R为反射率transmissive_filter(T) 透射滤光片T为透过率polarizing_beam_splitter(Tp1, Rs1, Ts0, Rp0, phia0, phib0) 偏振片
import sympy
from sympy.physics.optics.polarization import half_wave_retarder
theta sympy.symbols(theta, realTrue)
HWP half_wave_retarder(theta)
sympy.latex(HWP)结果如下 [ − i ( − sin 2 θ cos 2 θ ) − 2 i sin θ cos θ − 2 i sin θ cos θ − i ( sin 2 θ − cos 2 θ ) ] \left[\begin{matrix}- i \left(- \sin^{2}\theta \cos^{2}{\theta}\right) - 2 i \sin\theta \cos\theta\\- 2 i \sin\theta\cos\theta - i \left(\sin^{2}\theta - \cos^{2}\theta\right)\end{matrix}\right] [−i(−sin2θcos2θ)−2isinθcosθ−2isinθcosθ−i(sin2θ−cos2θ)]
偏振片的参数较多现列如下polarizing_beam_splitter(Tp1, Rs1, Ts0, Rp0, phia0, phib0)
J 琼斯矩阵Tp p偏振光的透过率Rs s偏振光的反射率Ts s偏振光的透过率Rp p偏振光的反射率phia 透射和反射分量的相位差phib 透射和反射分量的相位差