% !TEX encoding = UTF-8 Unicode
% J.Roussel
% Ce document regroupe les codes TIKZ des figures utilisées pour le cours "Fondements de la physique statistique" situé à la page http://femto-physique.fr/physique_statistique/phystat_C1.php
\documentclass[11pt]{article}
\input{styles_phystat}
\title{Figures TIKZ du cours "systèmes isolés"}
\begin{document}
% ========== Détente de Joule Gay-Lussac ==================================
\begin{tikzpicture}[scale=1]
\begin{scope}
\draw[draw=black,double=white,very thin] (-3.5,-1.5)rectangle(3.5,1.5);
\fill[color=SkyBlue!20] (-3.5,-1.5)rectangle(0,1.5);
\draw[very thick] (0,-1.5)--++(0,3);
\draw (-2,-1.5) node[below=2pt] {\small Syst\`eme isol\'e};
\draw (-2,0.5) node[above,text width=3cm,text centered]{\footnotesize Volume $V$} ;
\draw (2,0.5) node[above,text width=3cm,text centered]{\footnotesize Volume $V$} ;
\draw[line width=4pt,black,->] (4,0)--++(2,0) node[above=4pt,pos=0.5]{d\'etente};
\end{scope}
\begin{scope}[xshift=10cm]
\draw[draw=black,double=white,very thin,fill=SkyBlue!20] (-3.5,-1.5)rectangle(3.5,1.5);
\draw[very thick] (0,-1.5)--++(0,1);
\draw (-2,-1.5) node[below=2pt] {\small Syst\`eme isol\'e};
\draw (-2,0.5) node[above,text width=3cm,text centered]{\footnotesize Volume $V$} ;
\draw (2,0.5) node[above,text width=3cm,text centered]{\footnotesize Volume $V$} ;
\end{scope}
\end{tikzpicture}
%======= Système en équilibre thermique =============================================================
\begin{tikzpicture}[decoration={markings,mark=at position 1cm with {\arrow[red]{stealth};}}]
\draw[draw=black,double=white,very thin,fill=SkyBlue!20] (-3.5,-1.5)rectangle(3.5,1.5);
\draw[very thick] (0,-1.5)--++(0,3);
\draw (-2,-1.5) node[below=2pt] {\small Syst\`eme isol\'e};
\node (S1) at (-0.5,0){A$_{1}$};
\draw (-2,0.5) node[above,text width=3cm,text centered]{\footnotesize $E_{1}$ fluctue $N_{1}$, $V_{1}$ fix\'es } ;
\node (S2) at (0.5,0){A$_{2}$};
\draw (2,0.5) node[above,text width=3cm,text centered]{\footnotesize $E_{2}$ fluctue $N_{2}$, $V_{2}$ fix\'es } ;
\draw[auto,bend right,<-] (S1.south) to node[below,pos=0.1] {\tiny $Q_{21}$} (S2.south);
\draw[auto,bend left,->] (S1.north) to node[above,pos=0.8] {\tiny $Q_{12}$} (S2.north);
\end{tikzpicture}
%===================== Système en équilibre thermique et mécanique =========================================
\begin{tikzpicture}[decoration={markings,mark=at position 1cm with {\arrow[red]{stealth};}}]
\draw[draw=black,double=white,very thin,fill=SkyBlue!20] (-3.5,-1.5)rectangle(3.5,1.5);
\draw[gray,line width=5pt,line cap =round] (0,-1.4)--++(0,2.8);
\draw[line width=1pt,white] (0,-1.4)--++(0,2.8);
\draw (-2,-1.5) node[below=2pt] {\small Syst\`eme isol\'e};
\node (S1) at (-0.8,0){A$_{1}$};
\draw (-2,0.5) node[above,text width=3.5cm,text centered]{\footnotesize $N_{1}$ fix\'e, $E_{1}$ et $V_{1}$ fluctuent } ;
\node (S2) at (0.8,0){A$_{2}$};
\draw (2,0.5) node[above,text width=3.5cm,text centered]{\footnotesize $N_{2}$ fix\'e, $E_{2}$ et $V_{2}$ fluctuent } ;
\draw[auto,bend right,<-] (S1.south) to node[below] {\tiny $Q_{21}+W_{22}$} (S2.south);
\draw[auto,bend left,->] (S1.north) to node[above] {\tiny $Q_{12}+W_{12}$} (S2.north);
\end{tikzpicture}
%=============================================================
\end{document}