\documentclass[convert=true,convert={convertexe={convert},density=1200,outext=.png}]{standalone}

\input{figsDefs.tex}

\begin{document}
	
\begin{tikzpicture}%
	% mur
	\draw[-] (0,-0.2) -- (0,0.5) node[left,pos=0.8] {mur};
	% coordonn\'{e}es des extr\'{e}mit\'{e}s du ressort
	\pgfmathsetmacro{\edgeOneX}{0};
	\pgfmathsetmacro{\edgeOneY}{0};
	\pgfmathsetmacro{\allongement}{(1)};
	\pgfmathsetmacro{\edgeTwoX}{2+\allongement};
	\pgfmathsetmacro{\edgeTwoY}{0};
	% longueur du ressort
	\pgfmathsetmacro{\springLen}{sqrt((\edgeTwoX-\edgeOneX)^2+(\edgeTwoY-\edgeOneY)^2)};
	% nombres de spires
	\pgfmathsetmacro{\nSpires}{15}
	% le ressort
	\draw[decorate,decoration={coil,aspect=0.5,segment length=1cm*\springLen/\nSpires,amplitude=1mm}] (\edgeOneX,\edgeOneY) -- (\edgeTwoX,\edgeTwoY);
	\draw[decorate,decoration={brace,mirror,raise=10pt}] (0,0) -- (2,0);%
	\path (1,-1) node {\parbox{20mm}{\begin{center}longueur naturelle\end{center}}};%
	% deformation et force
	\draw[->,>=latex,deplCol,thick,yshift=-4pt] (2,0) -- +(\allongement,0) node[below,pos=0.5] {$\vec{d}$};
	\draw[->,>=latex,forceCol,thick,yshift=0pt] (\edgeTwoX,\edgeTwoY) -- (1.15,0) node[above,pos=0.5] {$\vec{F}$};
\end{tikzpicture}%

\end{document}