Toy model
Maxwell
Maxwell's equations in vacuum for electromagnetic field evolution.
Overview
This model simulates the propagation of electromagnetic waves in vacuum
using Maxwell's equations without sources. It uses a finite element exterior calculus (FEEC) formulation with the electric field in H(curl) and the magnetic field in H(div) spaces.
Use cases
Propagation of electromagnetic waves in vacuum.
Governing equations
PDEs solved by model:
Ampère's law (no current):
Faraday's law:
Normalization
Velocity and fields are normalized as:
where is the speed of light.
Discretization
Time integration is performed by the following propagators (in sequence):
struphy.propagators.maxwell_weak_ampere.MaxwellWeakAmpere
Diagnostics
The following scalars are tracked during simulation:
- Electric energy:
- Magnetic energy:
- Total energy:
Example
Create and initialize a Maxwell model:
from struphy.models import Maxwell
model = Maxwell()
# Fields are accessible via:
model.em_fields.e_field model.em_fields.b_field