我想将光束传播到每个镜子附近的探测器。我还希望传播过程能正常进行(从镜子 1 到镜子 2 再到光圈)。
\documentclass[pstricks,margin=12pt]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}[showgrid=true](13,14)
\pnodes(2,5){a}(5,5){b}(5,12){c}(8,12){d}(12,12){e}
\pnodes(7,5){duno}(3,12){ddos}
\psset{mirrortype=extended, mirrordepth=0.2}
\psset{mirrorwidth=1.1}
\addtopsstyle{Beam}{fillstyle=solid, fillcolor=green!20!white}
\begin{optexp}
\optsource[innerlabel, compname = start](a)(b){Beam}
\mirror[compname = mi, labelangle=45](a)(b)(c){$M_1$}
%\optdetector[](b)(duno)
\mirror[compname = mii, labelangle=45](b)(c)(d){$M_2$}
\optdetector[](c)(ddos)
\drawwidebeam[beamwidth=0.4, stopinside]{1-3}
%\drawwidebeam[loadbeampoints, beamdiv=-20, stopinside]{3-}
\pinhole[beam](c)(d){$Ap_{2}$}
\pinhole[beam](d)(e){$Ap_{2}$}
\drawwidebeam[loadbeampoints, beamdiv=-20, stopinside]{3-}
\end{optexp}
\end{pspicture}
\end{document}
答案1
pst-optexp
具有半透明镜(mirrortype=semitrans
),其工作原理类似于分束器:绘制光束时,根据下一个组件的位置自动确定是否采用透射或反射路径。
有多种方式可以绘制部分光束。我决定先绘制主光束路径,然后绘制透射部分,跳过前面的部分,以beampathskip
避免多次绘制它们。
\documentclass[pstricks,margin=12pt]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(0,4)(12,12.5)
\pnodes(2,5){a}(5,5){b}(5,10){c}(8,10){d}(12,10){e}
\pnode([Xnodesep=2]b){duno}
\pnode([offset=2]c){ddos}
\psset{mirrordepth=0.2, mirrorwidth=1.1}
\addtopsstyle{Beam}{fillstyle=solid, fillcolor=green!50!white}
\begin{optexp}
\optsource[innerlabel, compname = start, beamwidth=0.4](a)(b){Beam}
\mirror[compname = mi, mirrortype=semitrans, n=1, labelangle=-45](a)(b)(c){$M_1$}
\optdetector[compname = duno](b)(duno)
\mirror[compname = mii, n=1, mirrortype=semitrans, labelangle=45](b)(c)(d){$M_2$}
\optdetector[compname = ddos](c)(ddos)
\pinhole[compname = phi](c)(d){$Ap_{2}$}
\pinhole[compname = phii](d)(e){$Ap_{2}$}
\drawwidebeam[useNA=false]{start}{mi}{mii}{phi}{phii}(e)
%
% draw the weak transmissions to the detectors
\newpsstyle{Beam}{linestyle=none, fillstyle=solid, fillcolor=green!20!white}
\drawwidebeam[beampathskip=1]{start}{mi}{duno}
\drawwidebeam[beampathskip=2]{start}{mi}{mii}{ddos}
\end{optexp}
\end{pspicture}
\end{document}