1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
%%
%% A DANTE-Edition example
%%
%% Example 33-03-65 on page 724.
%%
%% Copyright (C) 2011 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[]{article}
\pagestyle{empty}
\setlength\textwidth{375.57637pt}
\setlength\parindent{0pt}
\def\ParCol#1#2#3{%
\tabular{@{}c@{}}\bfseries#1 (\textcolor{Blue}{#2})\\
\bfseries(\textcolor{Brown}{#3})\endtabular}
\usepackage[dvipsnames,svgnames]{pstricks}
\usepackage{pst-pad,graphicx}
\begin{document}
\resizebox{0.9\linewidth}{!}{%
\begin{pspicture}(-5,-4)(7.5,4)
\PstPad[FluidMaxRadius=4,FluidMinRadius=3,FluidHeight=1,FSphereHeight=2,
FSphereFillColor=green!20!white,FluidFillColor=blue!10!white,FluidLineWidth=1.5pt,
FSphereLineWidth=0.1pt,WallLineWidth=3pt,WallLineColor=blue,
FSphereLineColor=magenta,FluidLineColor=green!50!black](0,0)
\sffamily\footnotesize%
\psset{linecolor=gray, linewidth=0.2pt} %% "Crosshair" for orientation:
\psline[linestyle=dashed](-5,0)(5,0)
\psline[linestyle=dashed](0,-3)(0,1.5)
%% Node definitions:
\pnode(0,0){center}
\pnode(-4,-2.25){maxradiusLeft}\pnode(0,-2.25){maxradiusRight}
\pnode(-3,0){minradiusLeft} \pnode(3,0){minradiusRight}
\pnode([nodesep=4.5]center){fluidheightCenter}
\pnode([nodesep=4.5,offset=-1]center){fluidheightBottom}
\pnode([offset=-1]fluidheightBottom){wallThicknessBottom}
\pnode([nodesep=5.2,offset=1]center){fsphereheightBottom}
\pnode([offset=1]fsphereheightBottom){fsphereheightTop}
\psset{arrows=|<->|,linewidth=0.8pt,linecolor=red,arrowscale=1.5}
\rput[l]([nodesep=.2,offset=.2]center){\textbf{(0,0)}}%% Center:
\ncline{minradiusLeft}{center}\nbput{\ParCol{FluidMinRadius}{0.5}{3}}
\ncline{maxradiusLeft}{maxradiusRight}\nbput{\ParCol{FluidMaxRadius}{1}{4}}
\ncline{fluidheightCenter}{fluidheightBottom}\naput{\ParCol{FluidHeight}{.5}{1}}
\ncline{fluidheightBottom}{wallThicknessBottom}\naput{\ParCol{WallThickness}{1}{1}}
\ncline{fsphereheightBottom}{fsphereheightTop}\nbput{\ParCol{FSphereHeight/2}{2}{2}}
\psline{->}(-.1,2.2)(-.3,1.6)
\rput(-.1,2.6){\ParCol{FSphereFillColor}{"lightgray"}{"green!20!white"}}
\psline{->}(4,2.2)(2.5,.6)
\rput(4,2.6){\ParCol{FluidFillColor}{"yellow"}{"blue!10!white"}}
\psline{->}([offset=.5,nodesep=3]minradiusRight)(minradiusRight)
\rput[l]([offset=-.1,nodesep=3.2]minradiusRight){\ParCol{FluidLineWidth}{1pt}{1.5pt}}
\rput[l]([offset=.8,nodesep=3.2]minradiusRight){%
\ParCol{FluidLineColor}{"black"}{"green!50!black"}}
\psline{->}(-4.3,2.2)(-3.5,1)\rput(-4.3,2.6){\ParCol{FSphereLineWidth}{1pt}{0.1pt}}
\rput(-4.3,3.4){\ParCol{FSphereLineColor}{"black"}{"magenta"}}
\psline{->}(1.5,-2.25)(1.5,-1)\rput[t](1.5,-2.5){\ParCol{WallLineWidth}{1pt}{3pt}}
\rput[t](1.5,-3.4){\ParCol{WallLineColor}{"black"}{"blue"}}
\end{pspicture}}
\end{document}
|