
我想將光束傳播到每個鏡子附近的探測器。我還希望傳播能夠正常進行(從鏡子 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}