How to Convert Ampere's Law to Laplace Equations and Solve Numerically?

yoyobarn
Messages
4
Reaction score
0

Homework Statement


I need to write ampere's law (differential form) in the form of Laplace equations / Poisson equations and then solve them numerically using Matlab.


Homework Equations


Del x H = J


The Attempt at a Solution


pls see my attachment


I need help from someone who is good at electromagnetics, and also have some numerical programming background.

Thank you very much for help!
 

Attachments

Physics news on Phys.org
Ok now I have come up with code for one wire..

Now i need to code for two wires!

Any idea how to do that?
 

Attachments

  • wire_square.png
    wire_square.png
    20.1 KB · Views: 482
<br /> \nabla \times B=\mu_0J<br />
<br /> B=\nabla \times A<br />
so then we substitute this into amperes law.
<br /> \nabla \times(\nabla \times A)<br />
then we use the vector identity to re-write the curl of the curl.
so we get
<br /> \nabla(\nabla \cdot A) - (\nabla)^2A=\mu_0J<br />
<br /> \nabla \cdot A = 0
I did this in terms of the B field but
<br /> B=\mu H<br />
So now we have reduced this to Poisson equation.
On your second post you said you need code for two wires . well the B fields obey superposition so you can just add the field to the other based on distance.
 
Last edited:
##|\Psi|^2=\frac{1}{\sqrt{\pi b^2}}\exp(\frac{-(x-x_0)^2}{b^2}).## ##\braket{x}=\frac{1}{\sqrt{\pi b^2}}\int_{-\infty}^{\infty}dx\,x\exp(-\frac{(x-x_0)^2}{b^2}).## ##y=x-x_0 \quad x=y+x_0 \quad dy=dx.## The boundaries remain infinite, I believe. ##\frac{1}{\sqrt{\pi b^2}}\int_{-\infty}^{\infty}dy(y+x_0)\exp(\frac{-y^2}{b^2}).## ##\frac{2}{\sqrt{\pi b^2}}\int_0^{\infty}dy\,y\exp(\frac{-y^2}{b^2})+\frac{2x_0}{\sqrt{\pi b^2}}\int_0^{\infty}dy\,\exp(-\frac{y^2}{b^2}).## I then resolved the two...
Hello everyone, I’m considering a point charge q that oscillates harmonically about the origin along the z-axis, e.g. $$z_{q}(t)= A\sin(wt)$$ In a strongly simplified / quasi-instantaneous approximation I ignore retardation and take the electric field at the position ##r=(x,y,z)## simply to be the “Coulomb field at the charge’s instantaneous position”: $$E(r,t)=\frac{q}{4\pi\varepsilon_{0}}\frac{r-r_{q}(t)}{||r-r_{q}(t)||^{3}}$$ with $$r_{q}(t)=(0,0,z_{q}(t))$$ (I’m aware this isn’t...
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
Back
Top