As a novice in TikZ I tried to draw the four so called Euler-cases (Knickfälle/Buckling; https://en.wikipedia.org/wiki/Buckling).
But it should rather look like this:
As you can see the third and the fourth bended line aren't correct. How can I achieve the correct bended form?
I take every hint I can get - even to make my TikZ look similar to the original one.
Thats me code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usetikzlibrary{arrows}
\pgfdeclarepatternformonly{north east lines wide}{\pgfqpoint{-1pt} {-1pt}}{\pgfqpoint{10pt}{10pt}}{\pgfqpoint{9pt}{9pt}}%
{
\pgfsetlinewidth{0.2pt}
\pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
\pgfpathlineto{\pgfqpoint{10pt}{10pt}}
\pgfusepath{stroke}
}
\tikzset{%
body/.style={inner sep=0pt,outer sep=0pt,shape=rectangle,draw,thick,pattern=north east lines wide},
dimen/.style={<->,>=latex,thin,every rectangle node/.style= {fill=white,midway,font=\sffamily}},
symmetry/.style={dashed,thin},
}
\begin{document}
\begin{tikzpicture}
\node [body,minimum height=0.5cm,minimum width=2cm,anchor=north] (ground) at (0,0) {};
\node[anchor=north] at (0,0) (A) {};%ground
\node[anchor=south] at (0,4.7) (B) {};%straight end
\node[anchor=south] at (1.5,4.7) (C) {};%bended end
\draw[line width=1mm, dashed, blue!30](A) -- (B);
\draw[line width=1mm, bend left=20,blue](A) edge (C);
\draw (-1.5,0) -- ++(.1,0) coordinate (A’) -- +(15pt,0);
\draw (-1.5,4.7) -- ++(.1,0) coordinate (B’) -- +(15pt,0);
\draw [dimen] (A’) -- (B’) node {L};%Dimension
\draw [-latex, line width=.7mm, red] (1.5,6) -- node[pos=0.7,left]{F}(C); %arrow
\end{tikzpicture}
\begin{tikzpicture}
\node [body,minimum height=0.5cm,minimum width=2cm,anchor=north] (ground) at (0,0) {};
\node at (0,.5) (A) {};%ground
\node at (0,5) (B) {};%straight end
\node at (0,5) (C) {};%bended end
\draw[line width=1mm, dashed, blue!30](A) -- (B);
\draw[line width=1mm, bend right,blue](A) edge (C);
\draw (-1.5,0.5) -- ++(.1,0) coordinate (A’) -- +(15pt,0);
\draw (-1.5,5) -- ++(.1,0) coordinate (B’) -- +(15pt,0);
\draw [dimen] (A’) -- (B’) node {L};
\draw [-latex, line width=.7mm, red] (0,6) -- node[pos=.7,left]{F}(C) ;
\draw[line width = 0.5mm](-.25,0) -- (0,.5);
\fill (A) circle [radius=4pt];
\draw[line width = 0.5mm](.25,0) -- (0,.5);
%
\node [body,minimum height=1cm,minimum width=.25cm,anchor=east] (topleft) at (-.5,5) {};
\node [body,minimum height=1cm,minimum width=.25cm,anchor=west] (topright) at (.5,5) {};
\draw[line width = 0.5mm](-.5,4.8) -- (.5,5.2);
\fill (B) circle [radius=4pt];
\draw[line width = 0.5mm](-.5,5.2) -- (.5,4.8);
\end{tikzpicture}
\begin{tikzpicture}
\node [body,minimum height=0.5cm,minimum width=2cm,anchor=north] (ground) at (0,0) {};
\node[anchor=north] at (0,0) (A) {};%ground
\node at (0,4.8) (B) {};%straight end
\node at (0,4.8) (C) {};%bended end
\draw[line width=1mm, dashed, blue!30](A) -- (B);
\draw[line width=1mm, bend right,blue](A) edge (C);
\draw (-1.5,0) -- ++(.1,0) coordinate (A’) -- +(15pt,0);
\draw (-1.5,4.8) -- ++(.1,0) coordinate (B’) -- +(15pt,0);
\draw [dimen] (A’) -- (B’) node {L};
\draw [-latex, line width=.7mm, red] (0,6) -- node[pos=.7,left]{F}(C) ;
%
\node [body,minimum height=1cm,minimum width=.25cm,anchor=east] (topleft) at (-.5,4.8) {};
\node [body,minimum height=1cm,minimum width=.25cm,anchor=west] (topright) at (.5,4.8) {};
\draw[line width = 0.5mm](-.5,4.6) -- (.5,5);
\fill (B) circle [radius=4pt];
\draw[line width = 0.5mm](-.5,5) -- (.5,4.6);
\end{tikzpicture}
\begin{tikzpicture}
\node [body,minimum height=0.5cm,minimum width=2cm,anchor=north] (ground) at (0,0) {};
\node[anchor=north] at (0,0) (A) {};%ground
\node [anchor=south] at (0,4.8) (B) {};%straight end
\node [anchor=south] at (0,4.8) (C) {};%bended end
\draw[line width=1mm, dashed, blue!30](A) -- (B);
\draw[line width=1mm, bend right,blue](A) edge (C);
\draw (-1.5,0) -- ++(.1,0) coordinate (A’) -- +(15pt,0);
\draw (-1.5,4.8) -- ++(.1,0) coordinate (B’) -- +(15pt,0);
\draw [dimen] (A’) -- (B’) node {L};
\draw [-latex, line width=.7mm, red] (0,6) -- node[pos=.7,left]{F}(C) ;
%
\node [body,minimum height=1cm,minimum width=.25cm,anchor=east] (topleft) at (-.15,4.4) {};
\node [body,minimum height=1cm,minimum width=.25cm,anchor=west](topright) at (.15,4.4) {};
\end{tikzpicture}
\end{document}
looseness in
andlooseness out
(IIRC the name of the keys) and within
andout
angles, and for the last one, just add a middle point where you want it to go through.