pst-optexp でミラーの透過率を操作するにはどうすればいいですか?

pst-optexp でミラーの透過率を操作するにはどうすればいいですか?

ここに画像の説明を入力してください 各ミラーの近くにある検出器にビームを伝播させたいと思います。また、伝播が通常どおりに機能するようにしたいと思います (ミラー 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}

ここに画像の説明を入力してください

関連情報