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}

여기에 이미지 설명을 입력하세요

관련 정보