Questions tagged [electromagnetics]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
116 views

Cavity resonator modeling with Wolfram Mathematica

I am attempting to determine eigenfrequencies and the corresponding electric field distribution in a rectangular cavity resonator with perfectly conducting walls. In the simplest case of a rectangular ...
Ian's user avatar
  • 41
5 votes
0 answers
135 views

What is resistivity function of a 3-bar electric switch?

I answered a question on Physics StackExchange - considered as homework - numerically. The question is: What is the resistance of three stacked identical blocks, the middle bar shifted by its half ...
Roland F's user avatar
  • 3,263
2 votes
1 answer
214 views

Machine overflow when defining boundary conditions

Recently I have been trying to code Maxwell's equations over a closed surface and have been facing some trouble defining the boundary conditions for the magnetic field. The equation for the normal of ...
Jole Stock's user avatar
3 votes
1 answer
151 views

Creating a plot for a summation function

I have this potential function which I believe is representative of a grounded cube in a 3D plane. I'm not entirely sure if this is it, but here is the general solution of the function: v(x,y,z) = G(...
Carson Joseph's user avatar
3 votes
2 answers
158 views

FEM Capacitor Not Converging with Parallel Plate Model

I am trying to model a 3D electrostatics finite element model of a capacitor to see if I can accurately model the behavior of a parallel plate capacitor before I alter the geometry of the electrodes ...
Dallon Penney's user avatar
11 votes
3 answers
762 views

Calculating the 3D magnetic vector field of a permanent magnet, with shape given by STL File

following my earlier question Link, I am trying to calculate the magnetic field of a permanent magnet. The shape of the magnet was generated with FreeCAD and is provided to Mathematica by an .STL file....
Tschibi's user avatar
  • 877
2 votes
1 answer
393 views

Properly Updating Particle Motion in 3D Electric Field Simulation

I have a code (very bottom of post) which plots a static electric field as it passed through some metal sheet with an aperture in it. I seek to observe the motion of some N charged particles (point ...
Zach's user avatar
  • 373
9 votes
1 answer
751 views

Calculating the 3D Vector field of a permanent magnet with FEM

trying to calculate the magnetic field of a permanent magnet using the finite element method I struggle setting up the equation system properly. In the end I want to be able to calculate the magnetic ...
Tschibi's user avatar
  • 877
0 votes
0 answers
182 views

Magnetostatics analysis of Switched Reluctance Motor in Mathematica

Accidentally stumbled upon magnetostatic calculation in Mathematica. https://www.wolfram.com/language/12/nonlinear-finite-elements/magnetostatics.html?product=mathematica I would like to ask a ...
dtn's user avatar
  • 2,394
2 votes
1 answer
399 views

FEM: Getting Resulting Electric Force on each body from electric field

Based on this excellent answer FEM: Electric Field between two arbitrary defined shapes I can compute the electric field ef between two conducting objects. $$ F = ...
james's user avatar
  • 3,033
8 votes
1 answer
433 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: ...
james's user avatar
  • 3,033
10 votes
1 answer
1k 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. ...
james's user avatar
  • 3,033
0 votes
0 answers
144 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 ...
kjcole's user avatar
  • 353
1 vote
1 answer
431 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 ...
kjcole's user avatar
  • 353
5 votes
1 answer
843 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 ...
Enter's user avatar
  • 1,229
16 votes
1 answer
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 ...
Andre Reis Guimaraes's user avatar
3 votes
2 answers
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: ...
space bobcat's user avatar
7 votes
1 answer
830 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 ...
Young's user avatar
  • 7,485
21 votes
2 answers
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 ...
AxelF's user avatar
  • 977
13 votes
3 answers
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 ...
AxelF's user avatar
  • 977
15 votes
1 answer
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 ...
Quit007's user avatar
  • 1,255
5 votes
0 answers
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 ...
Tom's user avatar
  • 3,416
15 votes
1 answer
628 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 ...
chris's user avatar
  • 22.8k