Maxwell equations with time-dependent boundary conditions

AI Thread Summary
The discussion centers on coding a Maxwell solver for scenarios with time-dependent boundary conditions, particularly involving an electrode with a varying potential. The original poster, Andrew, expresses uncertainty about maintaining self-consistency while calculating electric and magnetic fields using the Poisson equation and Maxwell's curl equations. A suggestion is made to utilize the Finite Difference Time Domain (FDTD) method with the Yee algorithm, which effectively handles the differential equations in both time and space. However, concerns are raised about incorporating time-dependent boundary conditions based solely on potential. Recommendations include exploring various computational electromagnetics methods and consulting relevant texts for guidance on handling excitations.
checkfrogger
Messages
2
Reaction score
0
Hi folks,

I was wondering how to code a Maxwell solver for a problem with time-dependent boundary conditions. This is not my homework, but I love programming and would like to implement what I learned in my physics undergrad course to get a better understanding.
More precisely, if I have an electrode with a time-dependent potential, how do I obtain the electric and magnetic field around it?
I basically came up with two ways, which both seem inappropriate to me:
1)
- calculate the potential using the Poisson equation with boundary conditions at time t=0
- then obtain E as the neg. gradient of the potential.
- calculate E and B at the next time step using the two curl equations of Maxwell equations
- repeat steps 1 and 2 at the next step and it might not be consistent with the third step...
I have the feeling that I mix electrostatics and electrodynamics here
2)
- set a boundary condition for E, solve the divergence equations of Maxwell equations at t=0
- calculate the next time step using the curl equations of Maxwell equations. The obtained E at t=1 might be inconsistent with the new potential at t=1.
-> similar problem here: I am not sure how to make this self-consistent

Thanks for your help!
Andrew
 
Physics news on Phys.org
Easiest way is the Finite Difference Time Domain (FDTD) analysis using the Yee algorithm which discretizes the differential equations in both time and position.
 
Born2bwire said:
Easiest way is the Finite Difference Time Domain (FDTD) analysis using the Yee algorithm which discretizes the differential equations in both time and position.

Thanks, but as far as I understand this algorithm only solves the two curl equations. It is fine if you start with a solution that satisfies the divergence equations.
My problem is still how to incorporate boundary conditions which are time-dependent and given in terms of the potential only.
 
Many excitations in computational electromagnetics are given as voltages. The simplest is to do a delta gap source which is simple to do in FDTD as well. More complex methods would involve say finding the principle excitation mode of your source (like in a transmission line) and exciting the principle mode's field. Without having been given what the excitation is we can't really begin to provide any advice on how to model it. Still, any time or frequency domain computational solver like FDTD, finite element method (FEM) or method of moments (MOM) will probably be satisfactory for you. I would suggest looking at an appropriate text to see how excitations are handled. Taflove is good for FDTD and I like a recent text by Walter Gibson for MOM.
 
This is from Griffiths' Electrodynamics, 3rd edition, page 352. I am trying to calculate the divergence of the Maxwell stress tensor. The tensor is given as ##T_{ij} =\epsilon_0 (E_iE_j-\frac 1 2 \delta_{ij} E^2)+\frac 1 {\mu_0}(B_iB_j-\frac 1 2 \delta_{ij} B^2)##. To make things easier, I just want to focus on the part with the electrical field, i.e. I want to find the divergence of ##E_{ij}=E_iE_j-\frac 1 2 \delta_{ij}E^2##. In matrix form, this tensor should look like this...
Thread 'Applying the Gauss (1835) formula for force between 2 parallel DC currents'
Please can anyone either:- (1) point me to a derivation of the perpendicular force (Fy) between two very long parallel wires carrying steady currents utilising the formula of Gauss for the force F along the line r between 2 charges? Or alternatively (2) point out where I have gone wrong in my method? I am having problems with calculating the direction and magnitude of the force as expected from modern (Biot-Savart-Maxwell-Lorentz) formula. Here is my method and results so far:- This...
Back
Top