Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{tikz}
- \usetikzlibrary{calc,patterns,
- decorations.pathmorphing,
- decorations.markings}
- \begin{document}
- \begin{tikzpicture}
- \tikzstyle{spring}=[thick,decorate,decoration={zigzag,pre length=0.3cm,post
- length=0.3cm,segment length=10,amplitude=0.3cm}]
- \tikzstyle{ground}=[fill,pattern=north east lines,draw=none,minimum
- width=0.75cm,minimum height=0.3cm]
- \node[draw,outer sep=0pt,thick] (M1) [minimum width=1cm, minimum height=1cm] {$m_1$};
- \draw[spring] ($(M1.north)$) -- ($(0,4)$)
- node [midway,above](m3){};
- \fill [pattern = north east lines] (-2,4) rectangle (6,4.2);
- \draw [thick,dashed] ($(M1.west) +(-0.2,0)$) --
- ($(M1.west) + (-1.2,0)$)
- node [midway, above] (n2){};
- \draw [thick,dashed] ($(M1.west) +(-0.2,2)$) --
- ($(M1.west) + (-1.2,2)$)
- node [midway, below] (n1) {};
- \draw [thick,latex-latex] ($(n1.north)-(0,0.1) $) --
- ($(n2.south) + (0,0.1)$)
- node [midway, left] {$\Delta l_1$};
- \draw[thick] (-2,4) -- (6,4);
- \draw[ultra thick, -latex] ($(M1.east) +(0.5,0)$) --
- ($(M1.east) + (0.5,-1.5)$)
- node [midway, right] {$F_p$};
- \draw[ultra thick, -latex] ($(M1.east)+(0.5,0)$) --
- ($(M1.east) + (0.5,1.5)$)
- node [midway, right] {$F_{el}$};
- \draw[thick, dashed] ($(M1.east)$) -- ($(M1.east) + (0.5,0)$);
- \tikzstyle{spring}=[thick,decorate,decoration={zigzag,pre length=0.3cm,post
- length=0.3cm,segment length=16,amplitude=0.3cm}]
- \node[draw,outer sep=0pt,thick] (M2) at (4,-2) [minimum width=1.3cm, minimum height=1.3cm] {$m_2$};
- \draw[spring] ($(M2.north)$) -- ($(4,4)$)
- node [midway,above](m3){};
- \draw [thick,dashed] ($(M2.west) +(-0.2,0)$) --
- ($(M2.west) + (-1.2,0)$)
- node [midway, above](n4) {};
- \draw [thick,dashed] ($(M2.west) +(-0.2,4)$) --
- ($(M2.west) + (-1.2,4)$)
- node [midway, below] (n5) {};
- \draw [thick,latex-latex] ($(n5.north)-(0,0.1) $) --
- ($(n4.south) + (0,0.1)$)
- node [midway, left] {$\Delta l_2$};
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement