\documentclass[svgnames,11pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{verbatim}
\usepackage{color}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings}
\definecolor{cland}{named}{DarkGray}
\definecolor{csec1}{named}{NavyBlue}
\definecolor{csec2}{named}{DarkOrange}
\definecolor{ceta}{named}{DeepSkyBlue}
\definecolor{cheat}{named}{Red}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[x={(0.866cm,-0.3cm)}, y={(0.866cm,0.3cm)}, z={(0cm,0.8cm)}, scale=0.7]%[x={(0.866cm,-0.5cm)}, y={(0.866cm,0.5cm)}, z={(0cm,1cm)}, scale=0.7]
% Settings of the different objects: facecolors, edgecolors, witdhs, etc...
\tikzstyle land=[fill=cland, draw=black!80!white]
\tikzstyle water=[draw=gray,draw=black!80!white]
\tikzstyle section1=[draw=csec1!80!black, ultra thick]
\tikzstyle section2=[draw=csec2!80!black, ultra thick]
\tikzstyle heat=[decorate, decoration={snake,segment length=8pt,amplitude=1pt}, draw=cheat,->,thick]
\tikzstyle trans1=[ draw=csec1!80!black,->,thick]
\tikzstyle trans2=[ draw=csec2!80!black,->,thick]
\tikzstyle eta=[draw=ceta,very thick]
\tikzstyle etaar=[draw=ceta,very thick,->]
% Length of the section arrows (wi) and of the hflux arrows (wihf)
\def\wi{0.7}
\def\wihf{1.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Do not edit below (settings are changed above)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\coordinate (O) at (0, 0, 0);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin des carres de surface land
\foreach \x in{0,1,2,3,4,5,6}{
\filldraw [land] (0,\x,0) -- (0,\x+1,0) -- (1,\x+1,0) -- (1,\x,0) -- (0,\x,0);
}
\foreach \x in{2,3,4,5,6}{
\filldraw [land] (1,\x,0) -- (1,\x+1,0) -- (2,\x+1,0) -- (2,\x,0) -- (1,\x,0);
}
\foreach \x in{5,6}{
\foreach \y in{2}{
\filldraw [land] (\y,\x,0) -- (\y,\x+1,0) -- (\y+1,\x+1,0) -- (\y+1,\x,0) -- (\y,\x,0);
}
}
\foreach \x in{6}{
\foreach \y in{3}{
\filldraw [land] (\y,\x,0) -- (\y,\x+1,0) -- (\y+1,\x+1,0) -- (\y+1,\x,0) -- (\y,\x,0);
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin des carres de surface ocean
\foreach \x in{1,2,3,4}{
\foreach \y in{0}{
\draw [water] (\x,\y,0) -- (\x,\y+1,0) -- (\x+1,\y+1,0) -- (\x+1,\y,0) -- (\x,\y,0);
}
}
\foreach \x in{1,2,3,4,5}{
\foreach \y in{1}{
\draw [water] (\x,\y,0) -- (\x,\y+1,0) -- (\x+1,\y+1,0) -- (\x+1,\y,0) -- (\x,\y,0);
}
}
\foreach \x in{2,3,4,5,6,7}{
\foreach \y in{2,3,4}{
\draw [water] (\x,\y,0) -- (\x,\y+1,0) -- (\x+1,\y+1,0) -- (\x+1,\y,0) -- (\x,\y,0);
}
}
\foreach \x in{3,4,5,6,7}{
\foreach \y in{5}{
\draw [water] (\x,\y,0) -- (\x,\y+1,0) -- (\x+1,\y+1,0) -- (\x+1,\y,0) -- (\x,\y,0);
}
}
\foreach \x in{4,5,6,7}{
\foreach \y in{6}{
\draw [water] (\x,\y,0) -- (\x,\y+1,0) -- (\x+1,\y+1,0) -- (\x+1,\y,0) -- (\x,\y,0);
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin des traits de section
\draw [section1] (1,0,0) -- (2,0,0) -- (3,0,0) -- (4,0,0) -- (5,0,0) -- (5,1,0);%
\draw [section2] (5,1,0) -- (6,1,0) -- (6,2,0) -- (8,2,0) -- (8,7,0) -- (4,7,0);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin des faces de sections
\foreach \y in{2,3,4,5,6}{
\foreach \x in{8}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \y in{2,3,4,5,6}{
\foreach \x in{8}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \y in{0}{
\foreach \x in{5}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \y in{1}{
\foreach \x in{6}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{0,1,2,3,4}{
\foreach \y in{0}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{6,7}{
\foreach \y in{2}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{5}{
\foreach \y in{1}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [water] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin des faces de sections pour la terre
\foreach \x in{0}{
\foreach \y in{0}{
\foreach \z in{0,-1,-2,-3,-4,-5,-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{1}{
\foreach \y in{0}{
\foreach \z in{-4,-5,-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{2,3}{
\foreach \y in{0}{
\foreach \z in{-5,-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{3,4}{
\foreach \y in{0}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{3}{
\foreach \y in{0}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{8}{
\foreach \y in{2,3,4,5,6}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{5}{
\foreach \y in{1}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{6,7}{
\foreach \y in{2}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x+1,\y,\z-1) -- (\x+1,\y,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{6}{
\foreach \y in{1}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
\foreach \x in{5}{
\foreach \y in{0}{
\foreach \z in{-6}{
\draw [land] (\x,\y,\z) -- (\x,\y,\z-1) -- (\x,\y+1,\z-1) -- (\x,\y+1,\z) ;%-- (\x,\y,0);
}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Draw heat flux
\foreach \x in{1,2,3,4}{
\foreach \y in{0}{
\draw [heat] (\x+.5,\y+.5,\wihf) -- (\x+.5,\y+.5,0);
}
}
\foreach \x in{1,2,3,4,5}{
\foreach \y in{1}{
\draw [heat] (\x+.5,\y+.5,\wihf) -- (\x+.5,\y+.5,0);
}
}
\foreach \x in{2,3,4,5,6,7}{
\foreach \y in{2,3}{
\draw [heat] (\x+.5,\y+.5,\wihf) -- (\x+.5,\y+.5,0);
}
}
\foreach \x in{2,3,4,5,6}{
\foreach \y in{4}{
\draw [heat] (\x+.5,\y+.5,\wihf) -- (\x+.5,\y+.5,0);
}
}
\foreach \x in{3,4,5,6,7}{
\foreach \y in{5}{
\draw [heat] (\x+.5,\y+.5,\wihf) -- (\x+.5,\y+.5,0);
}
}
\foreach \x in{4,5,6,7}{
\foreach \y in{6}{
\draw [heat] (\x+.5,\y+.5,\wihf) -- (\x+.5,\y+.5,0);
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Draw transport section 1
\foreach \x in{1,2,3,4}{
\foreach \y in{0}
\foreach \z in{-1,-2,-3,-4}{
\draw [trans1] (\x+.5,\y-\wi,\z+0.5) -- (\x+.5,\y,\z+0.5);
}
}
\foreach \x in{2,3,4}{
\foreach \y in{0}
\foreach \z in{-5}{
\draw [trans1] (\x+.5,\y-\wi,\z+0.5) -- (\x+.5,\y,\z+0.5);
}
}
\foreach \x in{4}{
\foreach \y in{0}
\foreach \z in{-6}{
\draw [trans1] (\x+.5,\y-\wi,\z+0.5) -- (\x+.5,\y,\z+0.5);
}
}
\foreach \x in{5}{
\foreach \y in{0}
\foreach \z in{-1,-2,-3,-4,-5,-6}{
\draw [trans1] (\x+\wi,\y+0.5,\z+0.5) -- (\x,\y+0.5,\z+0.5);
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Draw transport section 1
\foreach \x in{8}{
\foreach \y in{2,3,4,5,6}
\foreach \z in{-1,-2,-3,-4,-5,-6}{
\draw [trans2] (\x+\wi,\y+0.5,\z+0.5) -- (\x,\y+0.5,\z+0.5);
}
}
\foreach \x in{6}{
\foreach \y in{1}
\foreach \z in{-1,-2,-3,-4,-5,-6}{
\draw [trans2] (\x+\wi,\y+0.5,\z+0.5) -- (\x,\y+0.5,\z+0.5);
}
}
\foreach \x in{6,7}{
\foreach \y in{2}
\foreach \z in{-1,-2,-3,-4,-5,-6}{
\draw [trans2] (\x+0.5,\y-\wi,\z+0.5) -- (\x+0.5,\y,\z+0.5);
}
}
\foreach \x in{5}{
\foreach \y in{1}
\foreach \z in{-1,-2,-3,-4,-5,-6}{
\draw [trans2] (\x+0.5,\y-\wi,\z+0.5) -- (\x+0.5,\y,\z+0.5);
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin de surface libre
\draw[eta,variable=\y, samples at={2,2.25,..., 7}]
plot (7.5,\y, {1*sin(0.628*(\y-2) r)}); %n'g polarized ray
\draw [etaar] (7.5,4.5,0) -- (7.5,4.5, {sin(0.628*(4.5-2) r)}); %n'g
%polarized ray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dessin des legendes
%\draw (12,8,0) node [ceta] {Free surface $\eta$} ;
%\draw (12,8,-1) node [cheat] {Heat flux $F$} ;
%\draw (12,8,-2) node [csec1!80!black] {Transport across section 1 $VT_1$} ;
%\draw (12,8,-3) node [csec2!80!black] {Transport across section 2 $VT_2$} ;
%\draw (12,8,-4) node [cland] {Land cell} ;
%\draw[axis] (O) -- +(14, 0, 0) node [right] {x};
%\draw[axis] (O) -- +(0, 2.5, 0) node [right] {y};
%\draw[axis] (O) -- +(0, 0, 2) node [above] {z};
\end{tikzpicture}
\end{document}