[pstricks] Magnetic Fieldlines in wrong direction

Thomas Söll 1und1 Thomas.Soell at onlinehome.de
Fri Apr 29 15:38:46 CEST 2011


Hallo,

I have tested the following example, but the direction of the fieldlines shows wrong, if the current shows the direction of electrons.
Do anybody knows how I can change the direction?


\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{392.64803pt}
\setlength\parindent{0pt}
\newcommand\Cadre[1]{\psframebox[fillstyle=solid,fillcolor=black,linestyle=none,framesep=0]{#1}}

\usepackage{pst-magneticfield} %\psset{unit=0.7cm}

\begin{document}
\newpsstyle{grille}{subgriddiv=0,gridcolor=blue!50,griddots=10}
\newpsstyle{cadre}{linecolor=yellow!50}

\begin{pspicture}(-7,-6)(7,6)
\psmagneticfieldThreeD[N=8,R=2,L=8,pointsB=1200,linecolor=blue,pointsS=1000,styleCourant={->}](-7,-8)(7,8)
\end{pspicture}

{%
\psset{unit=0.5cm}
\begin{pspicture*}(-7,-7)(7,7)
\psmagneticfield
\rput(0,-6.5){[Standard]}
\end{pspicture*}
\begin{pspicture*}[showgrid](-7,-7)(7,7)
\psframe*[linecolor={[HTML]{99FF66}}](-7,-7)(7,7)
\psmagneticfield[linecolor={[HTML]{006633}},L=5,N=8,nS=1,PasB=0.0025,pointsB=5500,numSpires=1 3 5 7]
\rput(0,-6.5){[\Cadre{\textcolor{white}{L=5}},N=(8,R=2,nS=1]}
\end{pspicture*}
}%

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110429/07828d6a/attachment.html>


More information about the PSTricks mailing list