編輯

編輯

我無法建立上傳圖片中所示的電容器的電場線。有人可以給我提示嗎?提前致謝。 這就是我所需要的:-)

答案1

對於評論來說這太長了,您要求的是推動,而不是解決方案,所以我將其作為答案發布。

查看該套件的文檔,pst-electricfield我發現了以下範例:

\documentclass[border=5pt,pstricks]{standalone} 
\usepackage{pst-electricfield} 
\usepackage{xcolor} 
\begin{document} 
\begin{pspicture*}(-10,-5)(6,5) 
        \psframe*[linecolor=lightgray!40](-10,-5)(6,5) 
        \psgrid[subgriddiv=0,gridcolor=lightgray,griddots=10] 
        \psElectricfield[Q={[600 -60 0 false][-4 0 0] },N=50,points=500,runit=0.8] 
        \psEquipotential[Q={[600 -60 0 false][-4 0 0]},linecolor=blue,Vmax=100,Vmin=50,stepV 
        =2](-10,-5)(6,5) 
        \psframe*(-10,-5)(-9.5,5) 
        \rput(0,0){\textcolor{white}{\large$-$}} 
        \multido{\rA=4.75+-0.5}{20}{\rput(-9.75,\rA){\textcolor{white}{\large$+$}}} 
\end{pspicture*} 
\end{document}

我認為,如果你能弄清楚如何在右側創建帶負電的牆,並繪製更大的區域,那麼你就差不多完成了。

話雖這麼說,我對這個包了解不多(我每次看都覺得它很酷)精美的科學圖片炫耀

編輯

程式碼產生: 在此輸入影像描述

編輯2

所以我嘗試自己製作電容器,我認為結果相當糟糕,但無論如何:

\documentclass[border=5pt,pstricks]{standalone}
\usepackage{pst-electricfield}
\usepackage{xcolor}
\begin{document}
\begin{pspicture*}(-7,-7)(7,7)
        \psframe*[linecolor=lightgray!40](-10,-5)(6,5)
        \psgrid[subgriddiv=0,gridcolor=lightgray,griddots=10]
        \psElectricfield[Q={
        [-6 -3 0 PtoC][6 3 0 30]
        [-6 -3 1 30][6 3 1 30]
        [-6 -3 2 30][6 3 2 30]
        [-6 -3 3 30][6 3 3 30]
        [-6 -3 -1 30][6 3 -1 30]
        [-6 -3 -2 30][6 3 -2 30]
        [-6 -3 -3 30][6 3 -3 30]
        [-6 -3 0.5 30][6 3 0.5 30]
        [-6 -3 -0.5 30][6 3 -0.5 30]
        [-6 -3 1.5 30][6 3 1.5 30]
        [-6 -3 2.5 30][6 3 2.5 30]
        [-6 -3 3.5 30][6 3 3.5 30]
        [-6 -3 -1.5 30][6 3 -1.5 30]
        [-6 -3 -2.5 30][6 3 -2.5 30]
        [-6 -3 -3.5 30][6 3 -3.5 30]
}
,N=50,points=500,runit=0.8]
\end{pspicture*}
\end{document}

產量:

在此輸入影像描述

為了創造出更接近您願望的東西,我需要知道如何控制場線的密度以及如何抑制實際電荷的繪製。

相關內容