Code: Select all
% --------- inc.tex --------- Apr.23,2015 ---------
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{center}
\setlength\PreviewBorder{10pt}%
\tikzstyle{load} = [thick,-latex]
\tikzstyle{stress} = [-latex]
\tikzstyle{dim} = [latex-latex]
\tikzstyle{axis} = [-latex,blue!55]
\tikzstyle{two}=[x={(1cm,0cm)},y={(0cm,1cm)}]
\tikzstyle{three}=[x={(0.5547cm,0.83205cm)},y={(-0.83205cm,0.5547cm)}]
\begin{document}
\begin{center}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\draw[axis,two] (O) -- ++(5.5,0) node[right] {$x$};
\draw[axis,two] (O) -- ++(0,5) node[above] {$y$};
%
% Contour
\draw[red] (-0.83205,0.5547) -- (2,3); % triangular load shape
\draw[red] (-0.83205,0.5547) -- (0,0); % ditto
\draw[ultra thick] (0,0) -- ++(2,3); % beam-1-inclined
\draw[ultra thick] (2,3) -- ++(2,0); % beam-2-horizontal
%
\draw[dim] (4.5,0) -- ++(0,3) node[midway,right] {$h$}; % column dimension
\draw (4.25,3) -- ++(0.5,0);
%
\draw[dim] (0,-0.5) -- ++(4,0) node[midway,above] {$\ell$}; % beam dimension
\draw (4,-0.75) -- ++(0,0.5);
\draw (0,-0.75) -- ++(0,0.5);
%
\draw[dim] (0,4) -- ++(2,0) node[midway,above] {$\ell_1$};
\draw[dim] (2,4) -- ++(2,0) node[midway,above] {$\ell_2$};
\draw (2,3.75) -- ++(0,0.5);
\draw (4,3.75) -- ++(0,0.5);
% ==================== Rotated axes ====================================
%^^^^^^^^^^^^^^^^^^^^^
\draw[axis,three] (O) -- ++(4.5,0) node[right] {$z$};
\draw[axis,three] (O) -- ++(0,2) node[above] {$w$};
%^^^^^^^^^^^^^^^^^^^^^
% Tentative to fill red triangle with group of arrows
% up to now _improperly_ drawn: on x-axis instead of z-axis
\foreach \z in {0,0.25,...,3.0} {%
\draw[-latex] (\z,-1/3.605*\z + 1) -- (\z,0);}
%
\end{tikzpicture} %
\end{center}
\end{document}
% ---- EOF: inc.tex ----