| 1 |
\DocumentMetadata{lang=en} |
| 2 |
%% $Id: pst-nutation-doc.tex 1199 2025-12-20 13:34:36Z herbert $ |
| 3 |
\documentclass[fontsize=11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false, |
| 4 |
headings=small, headinclude=false,footinclude=false,twoside]{pst-doc} |
| 5 |
\usepackage{pst-plot} |
| 6 |
\usepackage{animate} |
| 7 |
\usepackage{enumitem,minted-code} |
| 8 |
\setlist{nosep} |
| 9 |
\usepackage{pst-tools,pst-nutation} |
| 10 |
\let\PSTfileversion\fileversion |
| 11 |
\let\PSTfiledate\filedate |
| 12 |
|
| 13 |
\renewcommand\bgImage{\begin{pspicture}(-4,-4)(4,4) |
| 14 |
\psset{viewpoint=500 30 30 rtp2xyz,Decran=500,solidmemory} |
| 15 |
\psNutation[dtheta=0,frequency=0,LargeSphere=false] |
| 16 |
\psSolid[object=plan,definition=equation,args={[0 0 1 -4]},action=none,RotX=0,name=sensRotationOz] |
| 17 |
\psProjection[object=cercle,linewidth=0.025,resolution=360,range=-120 120, |
| 18 |
plan=sensRotationOz,args=0 0 0.5]% |
| 19 |
\psProjection[object=vecteur,linewidth=0.05,plan=sensRotationOz, |
| 20 |
args=-0.5 -0.342 sub 0.5 mul 0.866 0.94 sub 0.5 mul ](-0.25,0.433)% |
| 21 |
\psPoint(0,0,3.8){Z}\uput[dr](Z){$\alpha$} |
| 22 |
\psSolid[object=plan,definition=normalpoint,args={0 2 3.464 [0 0.5 0.866 ]}, |
| 23 |
action=none,RotX=0, name=sensRotationAxe] |
| 24 |
\psProjection[object=cercle,linewidth=0.025,resolution=360,range=-120 120,linecolor=red, |
| 25 |
plan=sensRotationAxe,args=0 0 0.5]% |
| 26 |
\psProjection[object=vecteur,linewidth=0.05,linecolor=red,plan=sensRotationAxe, |
| 27 |
args=-0.5 -0.342 sub 0.5 mul 0.866 0.94 sub 0.5 mul ](-0.25,0.433)% |
| 28 |
\psPoint(0,2,3.464){Axe}\uput[ur](Axe){\textcolor{red}{$\omega$}} |
| 29 |
\psSolid[object=plan,definition=normalpoint,args={0 0 0 [1 0 0 180] }, |
| 30 |
action=none,RotX=0,name=inclinaison] |
| 31 |
\psProjection[object=cercle,linewidth=0.025,resolution=360,range=0 -30,linecolor=blue, |
| 32 |
plan=inclinaison,args=0 0 3]% |
| 33 |
\psProjection[object=vecteur,linewidth=0.05, |
| 34 |
plan=inclinaison,linecolor=blue, |
| 35 |
args=-0.073 -0.136 ](2.67,-1.36)% |
| 36 |
\psProjection[object=line,linewidth=0.05,linestyle=dashed, |
| 37 |
plan=inclinaison,linecolor=orange, |
| 38 |
args= -2.6 1.5 2.6 -1.5]% |
| 39 |
\psPoint(0,0.776,2.9){T}\uput[u](T){\blue$\theta$} |
| 40 |
\axesIIID(2,2,2)(4,4,4) |
| 41 |
\end{pspicture}} |
| 42 |
|
| 43 |
\addbibresource{\jobname.bib} |
| 44 |
\begin{document} |
| 45 |
|
| 46 |
\title{\texttt{pst-nutation}} |
| 47 |
\subtitle{Rotation, Precession, Nutation with pst-nutation; v.\PSTfileversion} |
| 48 |
\author{Manuel Luque\\ Herbert Voß} |
| 49 |
\docauthor{} |
| 50 |
\date{\today} |
| 51 |
\settitle |
| 52 |
|
| 53 |
\begin{abstract} |
| 54 |
This exercise illustrates the concepts of rotation, precession, and |
| 55 |
nutation.~\parencite{wikipedia,fitzpatrick} |
| 56 |
\LPack{pst-nutation} |
| 57 |
package is designed for this purpose, using the command |
| 58 |
\Lcs{psNutation}\Largs{options}. |
| 59 |
\end{abstract} |
| 60 |
|
| 61 |
\section{The options} |
| 62 |
\begin{center} |
| 63 |
\begin{pspicture}(-4,-4)(4,4) |
| 64 |
\psset{viewpoint=500 30 30 rtp2xyz,Decran=500,solidmemory} |
| 65 |
\psNutation[dtheta=0,frequency=0,LargeSphere=false] |
| 66 |
\psSolid[object=plan,definition=equation,args={[0 0 1 -4]}, |
| 67 |
action=none,RotX=0, |
| 68 |
name=sensRotationOz] |
| 69 |
\psProjection[object=cercle,linewidth=0.025,resolution=360,range=-120 120, |
| 70 |
plan=sensRotationOz, |
| 71 |
args=0 0 0.5]% |
| 72 |
\psProjection[object=vecteur,linewidth=0.05, |
| 73 |
plan=sensRotationOz, |
| 74 |
args=-0.5 -0.342 sub 0.5 mul 0.866 0.94 sub 0.5 mul ](-0.25,0.433)% |
| 75 |
\psPoint(0,0,3.8){Z}\uput[dr](Z){$\alpha$} |
| 76 |
\psSolid[object=plan,definition=normalpoint,args={0 2 3.464 [0 0.5 0.866 ]}, |
| 77 |
action=none,RotX=0, |
| 78 |
name=sensRotationAxe] |
| 79 |
\psProjection[object=cercle,linewidth=0.025,resolution=360,range=-120 120,linecolor=red, |
| 80 |
plan=sensRotationAxe, |
| 81 |
args=0 0 0.5]% |
| 82 |
\psProjection[object=vecteur,linewidth=0.05,linecolor=red, |
| 83 |
plan=sensRotationAxe, |
| 84 |
args=-0.5 -0.342 sub 0.5 mul 0.866 0.94 sub 0.5 mul ](-0.25,0.433)% |
| 85 |
\psPoint(0,2,3.464){Axe}\uput[ur](Axe){\textcolor{red}{$\omega$}} |
| 86 |
\psSolid[object=plan,definition=normalpoint,args={0 0 0 [1 0 0 180] }, |
| 87 |
action=none,RotX=0, |
| 88 |
name=inclinaison] |
| 89 |
\psProjection[object=cercle,linewidth=0.025,resolution=360,range=0 -30,linecolor=blue, |
| 90 |
plan=inclinaison, |
| 91 |
args=0 0 3]% |
| 92 |
\psProjection[object=vecteur,linewidth=0.05, |
| 93 |
plan=inclinaison,linecolor=blue, |
| 94 |
args=-0.073 -0.136 ](2.67,-1.36)% |
| 95 |
\psProjection[object=line,linewidth=0.05,linestyle=dashed, |
| 96 |
plan=inclinaison,linecolor=orange, |
| 97 |
args= -2.6 1.5 2.6 -1.5]% |
| 98 |
\psPoint(0,0.776,2.9){T}\uput[u](T){\blue$\theta$} |
| 99 |
\axesIIID(2,2,2)(4,4,4) |
| 100 |
\end{pspicture} |
| 101 |
\end{center} |
| 102 |
|
| 103 |
All angles are in degrees. |
| 104 |
|
| 105 |
\begin{description} |
| 106 |
\item[\LKeyset{theta=-30}]: tilt of the axis relative to $Oz$; |
| 107 |
\item[\LKeyset{omega=0}]: angle of rotation around the sphere's axis; |
| 108 |
\item[\LKeyset{alpha=0}]: angle of rotation of the entire system around $Oz$; |
| 109 |
\item[\LKeyset{dtheta=5}]: amplitude of the tilt variations in the case of nutation; |
| 110 |
\item[\LKeyset{frequency=6}]: frequency of the axis's oscillations in the case of nutation. |
| 111 |
\item[\LKeyset{LargeSphere=true}]: A Boolean to draw the large sphere on which the curves will be inscribed. |
| 112 |
\end{description} |
| 113 |
|
| 114 |
\section{The rotation} |
| 115 |
|
| 116 |
%\begin{center} |
| 117 |
%\begin{animateinline}[controls,loop, |
| 118 |
% begin={\begin{pspicture}[showgrid=](-5,-5)(5,5)}, |
| 119 |
% end={\end{pspicture}}]{20}% 20 images/s |
| 120 |
%\multiframe{19}{i=0+1}{ |
| 121 |
%\psset{viewpoint=500 0 40 rtp2xyz,Decran=500} |
| 122 |
%\psNutation[omega=\i,dtheta=0,frequency=0,theta=-30]} |
| 123 |
%\end{animateinline} |
| 124 |
%\end{center} |
| 125 |
|
| 126 |
\begin{center} |
| 127 |
\begin{pspicture}[showgrid=](-5,-5)(5,5) |
| 128 |
\psset{viewpoint=500 0 40 rtp2xyz,Decran=500} |
| 129 |
\psNutation[omega=10,dtheta=0,frequency=0,theta=-30] |
| 130 |
\end{pspicture} |
| 131 |
\end{center} |
| 132 |
|
| 133 |
\begin{codeblockA}[title=Animation of first image] |
| 134 |
\begin{animateinline}[controls,loop, |
| 135 |
begin={\begin{pspicture}[showgrid=](-5,-5)(5,5)}, |
| 136 |
end={\end{pspicture}}]{20}% 20 images/s |
| 137 |
\multiframe{19}{iA=0+1}{% |
| 138 |
\psset{viewpoint=1000 0 40 rtp2xyz, Decran=1000} |
| 139 |
\psNutation[omega=\iA,dtheta=0,frequency=0,theta=-30]} |
| 140 |
\end{animateinline} |
| 141 |
\end{codeblockA} |
| 142 |
|
| 143 |
By default on the sphere, the meridians are spaced 20 degrees apart |
| 144 |
\LKeyset{ngrid=9 18}. The loop rotates the sphere by 1 degree at each step, |
| 145 |
thus creating the illusion of a complete rotation with the \Lkeyword{loop} |
| 146 |
option of the animate package. |
| 147 |
|
| 148 |
|
| 149 |
\section{Rotation and Precession} |
| 150 |
\begin{center} |
| 151 |
\begin{pspicture}[showgrid=](-5,-5)(5,5) |
| 152 |
\psset{viewpoint=500 0 40 rtp2xyz,Decran=500} |
| 153 |
\psNutation[omega=0,alpha=0,frequency=0,dtheta=0] |
| 154 |
\end{pspicture} |
| 155 |
\end{center} |
| 156 |
|
| 157 |
\begin{codeblockA}[title=Animation of second image] |
| 158 |
\begin{animateinline}[controls,loop, |
| 159 |
begin={\begin{pspicture}[showgrid=](-5,-5)(5,5)}, |
| 160 |
end={\end{pspicture}}]{20}% 20 images/s |
| 161 |
\multiframe{73}{n=0.00+0.25,N=0.0+5.0}{ |
| 162 |
\psset{viewpoint=500 0 40 rtp2xyz,Decran=500} |
| 163 |
\psNutation[omega=\n,alpha=\N,frequency=0,dtheta=0]} |
| 164 |
\end{animateinline} |
| 165 |
\end{codeblockA} |
| 166 |
|
| 167 |
\section{Rotation with Precession and Nutation} |
| 168 |
\begin{center} |
| 169 |
\begin{pspicture}[showgrid=](-5,-5)(5,5) |
| 170 |
\psset{viewpoint=500 0 40 rtp2xyz,Decran=500} |
| 171 |
\psNutation[omega=0,alpha=0,frequency=6,theta=25,linecolor={[rgb]{0.8 0 0}}] |
| 172 |
\end{pspicture} |
| 173 |
\end{center} |
| 174 |
|
| 175 |
\begin{codeblockA}[title=Animation of third image] |
| 176 |
\begin{animateinline}[controls,loop, |
| 177 |
begin={\begin{pspicture}[showgrid=](-5,-5)(5,5)}, |
| 178 |
end={\end{pspicture}}]{10}% 10 images/s |
| 179 |
\multiframe{73}{n=0.00+0.25,N=0.0+5.0}{ |
| 180 |
\psset{viewpoint=1000 0 40 rtp2xyz,Decran=1000} |
| 181 |
\psNutation[omega=\n,alpha=\N,frequency=6,theta=25]} |
| 182 |
\end{animateinline} |
| 183 |
\end{codeblockA} |
| 184 |
|
| 185 |
\section{Animation} |
| 186 |
The conversion to \Lext{gif} is done by the program \Lprog{magick}, formerly known |
| 187 |
as \Lprog{convert}: |
| 188 |
|
| 189 |
\begin{codeblock}[minted language=bash, title=Converting pdf to gif] |
| 190 |
magick convert -delay 5 -density 100x100 -alpha remove anim1.pdf -loop 0 anim1.gif |
| 191 |
\end{codeblock} |
| 192 |
|
| 193 |
\printbibliography |
| 194 |
|
| 195 |
\printindex |
| 196 |
|
| 197 |
\end{document} |