summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_6_de/24-04-27.ltx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/PSTricks_6_de/24-04-27.ltx
Initial commit
Diffstat (limited to 'info/examples/PSTricks_6_de/24-04-27.ltx')
-rw-r--r--info/examples/PSTricks_6_de/24-04-27.ltx52
1 files changed, 52 insertions, 0 deletions
diff --git a/info/examples/PSTricks_6_de/24-04-27.ltx b/info/examples/PSTricks_6_de/24-04-27.ltx
new file mode 100644
index 0000000000..511f4c79f9
--- /dev/null
+++ b/info/examples/PSTricks_6_de/24-04-27.ltx
@@ -0,0 +1,52 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%%
+%% Copyright (C) 2008 Herbert Voss
+%%
+%% It may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%%
+%% See http://www.latex-project.org/lppl.txt for details.
+%%
+%%
+%% ====
+% Show page(s) 1
+%%
+\documentclass[]{exaarticle}
+\pagestyle{empty}
+\setlength\textwidth{352.81416pt}
+\setlength\parindent{0pt}
+\StartShownPreambleCommands
+\usepackage{pst-circ}
+\newcommand*\pswall[3]{% ll ur lr
+ \psframe[linecolor=white,fillstyle=hlines,hatchcolor=black](#1)(#2)% (ll)(ur)
+ \psline[linecolor=black](#1)(#3)}
+\StopShownPreambleCommands
+\begin{document}
+\begin{pspicture}(0.5,1)(8,10)
+ \rput(3,9.5){\sffamily \textbf{Viscoelasticity}}
+ % Kelvin-Voigt model (spring and dashpot parallel): ===========
+ \rput[c](1.75,8.85){\sffamily Kelvin-Voigt}
+ \pswall{1,8}{2.5,8.5}{2.5,8}% top
+ \psline(1.75,8)(1.75,7)% top vertical line
+ % node definitions:
+ \pnode(1,7){ul1}\pnode(2.5,7){ur1} \pnode(1,3){ll1}\pnode(2.5,3){lr1}%
+ \psline(ul1)(ur1)% top line
+ \psline(ll1)(lr1)% bottom line
+ \resistor[dipolestyle=zigzag,linewidth=0.5pt](ul1)(ll1){}% spring
+ \dashpot[linewidth=0.5pt](ur1)(lr1){}% dashpot
+ \psline[arrowscale=3]{->}(1.75,3)(1.75,2)% force
+ % Maxwell model (spring and dashpot serial): ==================
+ \rput[c](4.5,8.85){\sffamily Maxwell}
+ \pswall{4,8}{5,8.5}{5,8}% top
+ \pnode(4.5,8){t}\pnode(4.5,4){b}% node definitions
+ \resistor[dipolestyle=zigzag,linewidth=0.5pt,labeloffset=1.8](t)(b)% spring
+ {\sffamily\small\begin{tabular}{c}\textbf{elasticity}\\(Hookean solid)\end{tabular}}% end spring
+ \dashpot[linewidth=0.5pt,labeloffset=1.8](4.5,5)(4.5,3)% dashpot
+ {\sffamily\small\begin{tabular}{c}\textbf{viscosity}\\(Newtonian fluid)\end{tabular}
+ }% end dashpot
+ \psline[arrowscale=3]{->}(4.5,3)(4.5,2)% force
+\end{pspicture}
+\end{document}