Example: Oblique Incidence

Published 2008-09-04 | Author: Edgar Fuentes

Reflection and refraction of electromagnetic waves incident obliquely at plane interface.

Author:Edgar Fuentes

Download as: [PDF] [TEX]

Oblique Incidence

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Oblique Incidence with using basics instructions
% Author: Edgar Fuentes (Club de LaTeX UC member)



        decorate,decoration={snake,post length=1.4mm,amplitude=2mm,
        segment length=2mm},thick},
        % The border decoration is a path replacing decorator. 
        % For the interface style we want to draw the original path.
        % The postaction option is therefore used to ensure that the
        % border decoration is drawn *after* the original path.
                    amplitude=0.3cm,segment length=2mm}}},
    % Round rectangle
    \fill[gray!10,rounded corners] (-4,-3) rectangle (4,0);
    % Interface
    \draw[blue,line width=.5pt,interface](-4,0)--(4,0);
    % Vertical dashed line
    % Coordinates system
    \draw[<->,line width=1pt] (1,0) node[above]{$y$}-|(0,-1) node[left]{$z$};
    % Incidence
    \path (0,0)++(113:1cm)node{$\phi$};
    % Transmission
    \path (0,0)++(-60:1cm)node{$\theta$};
    \draw[->] (0,-0.75) arc (-90:-30:.75cm);
    % Reflection
    \path (0,0)++(-22:1.75cm) node{$\psi$};
    \draw[->] (0,-1.5)arc(-90:45:1.5cm);
    % Media names
    \path[media] (-3,.6)  node {media 1}
                 (-3,-.6) node {media 2};

    % $x$ axis
    \filldraw[fill=white,line width=1pt](0,0)circle(.12cm);
    \draw[line width=.6pt] (0,0)
                          +(-135:.12cm) -- +(45:.12cm)
                          +(-45:.12cm) -- +(135:.12cm);
    % Interface pointer
         to[out=180,in=90] (3,0);
    % To-paths are really useful for drawing curved lines. The above
    % to path is equal to:
    % \draw[-latex,thick](3.2,0.5)node[right]{$\mathsf{S_{1,2}}$}
    %      ..controls +(180:.2cm) and +(up:0.25cm) .. (3,0);
    % Internally the to path is translated to a similar bezier curve,
    % but the to path syntax hides the complexity from the user. 



  • #1 Sven, February 1, 2010 at 5:55 p.m.

    This helped understanding how "post decoration" works - Thanks!

    But shouldn't it say "medium 1,2" instead of "media 1,2" ... "media" is plural!?

  • #2 Tal_nino, May 18, 2012 at 2:20 a.m.

    thanks for sharing,I'm using latex for my thesis, some research about electromagnetic waves .This really help me a lot.

Adding comments is currently not enabled.