# Questions tagged [electromagnetics]

The tag has no usage guidance.

32 questions
Filter by
Sorted by
Tagged with
104 views

### How to solve electric drift and diffusion PDE using NDSolveValue?

I am trying to learn how to use NDSolveValue with various boundary conditions. After going through several examples here, I thought I'd try it on what I thought ...
• 2,877
1 vote
84 views

### EM Wave Equation: Insufficient initial conditions for NDSolve?

I am trying to model a EM wave propagation through a region of free space. However, Mathematica tells that there are insufficient initial conditions, even though I specify all values at ...
• 11
1 vote
98 views

• 3,093
468 views

### FEM Simulation: Meshing Two Arbitrary Objects in an "Air" Mesh

Based on this excellent answer to my previous question: FEM: Electric Field between two arbitrary defined shapes I wanted to try out other shapes: ...
• 3,093
2k views

### FEM: Electric Field between two arbitrary defined shapes

I was wondering how to do the following: I would like to compute the electrostatic field between two shapes using the FEM method. ...
• 3,093
150 views

### Ways to decrease computational time?

I have created a 2D axisymmetric simulation of the motion of charged particles in an electric field. The electric field is created by a needle attached to a top plate both of which are at -3800V with ...
• 353
1 vote
442 views

### How to create an animation of charged particles' motion in an electric field?

I am trying to create an animation of 3 particles' motion in an electric field. The electric field is created by a needle attached to a top plate both of which are at -3800V with a grounded plate ...
• 353
888 views

### Electric field produced by a capacitor consisting of two parallel plates of different lengths

I need to visualize the electrostatic field produced by a capacitor consisting of two parallel 1D plates of different lengths, as shown in the following figure (sorry for the crude drawing), in which ...
• 1,229
2k views

### Solving Maxwell's Equations in Mathematica

For the sake of demonstration (for my students) and practice, I wanted to numerically calculate the electric and magnetic field (3D) for a sphere of uniform density moving slightly to the right and ...
1k views

### Setting Up Boundary Conditions for Magnetostatic PDE

Bug introduced in 11.2.0 and fixed in 11.3.0 The system is a hollow cylinder (thin solenoid) with a current density $\text{J}$ and I'm looking to solve the magnetic potential ($\text{A}$) inside the ...
• 7,515
1k views

### Electric field calculation from Laplace's equation

I have a solution of Laplace's equation which shows electric potential. I would like to get some data on electric field strength, that is to say a negative gradient of the potential. Here is the code: ...
• 548
885 views

### Solution of electromagnetic wave in frequency domain seems strange

Bug introduced in 10, fixed in 11.1. I want to solve the electromagnetic wave equation in frequency domain. A known solution, a plane wave Exp[ I k0 x] is used to ...
• 111
861 views

### Solve 3D Electric Field Using FEA

The objective is to solve the 3D electric fields for the geometry below and generate the continuous function eField3D[x_,y_,z_]. The method I was planning on using ...
• 7,515
2k views

### How to access FEM shape functions?

A couple of days ago I asked here about surface meshes and plotting on surfaces. Now I have another question: How can I access the surface or boundary element shape functions? I would like to ...
• 977
2k views

### How to create a surface mesh embedded in 3D?

I am working on a problem where I want to optimize current densities on 2D surfaces embedded in 3D to generate magnetic fields. The current density on a surface can be written as a scalar function ...
• 977
2k views

### Frequency domain Maxwell equations with PML boundary conditions

I'm trying to solve a full-vectorial wave equation for an arbitrarily shaped wave guide, by using NDSolve and perfectly matched layer (PML) conditions. The PML ...
• 1,255
2k views

### FDTD Electromagnetic Simulations with Mathematica

Mathematica has some Finite Element capabilities (as explained here). Do you think mathematica is a realistic/sensible option for electromagnetic simulations? (aka making a movie of electric fields ...
• 3,416
638 views

### How to specify PDE Boundary condition on a B-spline?

Context I would like to solve a PDE on a boundary which is parametrized as a BSpline. I am trying to solve the force-free Grad-Shafranov equation on a boundary ...
• 23.1k