Page MenuHomec4science

ex3.tex
No OneTemporary

File Metadata

Created
Thu, Dec 5, 03:17
\documentclass[tikz,convert={outfile=\jobname.svg}]{standalone}
\usetikzlibrary{calc,patterns,snakes}
% \usetikzlibrary{...}% tikz package already loaded by 'tikz' option
\begin{document}
\begin{tikzpicture}[scale=0.4]
\tikzstyle{spring}=[thick,decorate,decoration={zigzag,pre
length=0.1cm,post length=0.1cm,segment length=6}]
% Springs-Lines
\draw[thick] (0,0) -- (3,0);
\draw[spring] (3,0) -- (7,0) node[above,pos=0.5] {$k_2$};
\draw[thick] (7,0) -- (10,0); \draw[thick] (10,0) -- (10,5) -- (13,5);
\draw[thick] (10,0) -- (10,-5) -- (13,-5);
\draw[spring] (13,5) -- (17,5) node[above,pos=0.5] {$k_1$};
\draw[spring] (13,-5) -- (17,-5) node[above,pos=0.5] {$k_3$};
\draw[thick] (17,5) -- (20,5); \draw[thick] (17,-5) -- (23,-5);
\draw[spring] (23,-5) -- (27,-5) node[above,pos=0.5] {$k_4$};
\draw[thick] (27,-5) -- (30,-5);
\fill [pattern = north east lines] (-0.75,-2) rectangle (0,2);
\draw[thick] (0,2) -- (0,-2);
\fill [pattern = north east lines] (30.75,-7) rectangle (30,-3);
\draw[thick] (30,-3) -- (30,-7);
% Forces and DOFs
\draw[very thick,->] (20,5) -- (22,5) node[above right] {$F_1$};
\draw[very thick,->] (20,-5) -- (20,-7) -- (22,-7) node[below right] {$F_3$};
\draw[dashed,->] (20,4) -- (22,4) node[below right] {$u_1$};
\draw[dashed,->] (10,0) -- (12,0) node[above right] {$u_2$};
\draw[dashed,->] (20,-4) -- (22,-4) node[above right] {$u_3$};
% Nodes
\draw[fill = white] (20,5) circle (.2) node[above left] {$1$};
\draw[fill = white] (10,0) circle (.2) node[above left] {$2$};
\draw[fill = white] (20,-5) circle (.2) node[above left] {$3$};
\end{tikzpicture}
\end{document}

Event Timeline