Class ElectromagneticTensor
This rank-2 antisymmetric tensor encapsulates both the electric field $\mathbf{E}$ and the magnetic field $\mathbf{B}$ into a single geometric object.
Components (in Cartesian coordinates with $c=1$): $$ F_{\mu\nu} = \begin{pmatrix} 0 invalid input: '&' -E_x invalid input: '&' -E_y invalid input: '&' -E_z \\ E_x invalid input: '&' 0 invalid input: '&' B_z invalid input: '&' -B_y \\ E_y invalid input: '&' -B_z invalid input: '&' 0 invalid input: '&' B_x \\ E_z invalid input: '&' B_y invalid input: '&' -B_x invalid input: '&' 0 \end{pmatrix} $$ Note: Signs might vary depending on metric signature $(-, +, +, +)$ vs $(+, -, -, -)$. Here we assume $(-, +, +, +)$ signature standard in GR, but $F_{\mu\nu}$ definition is often consistent.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionElectromagneticTensor(Tensor<Real> tensor) Creates an EM tensor from explicit components. -
Method Summary
Modifier and TypeMethodDescriptionextractElectricField(Tensor<Real> uObserver) Extracts the electric field 4-vector seen by an observer with 4-velocity $u^\mu$.static ElectromagneticTensorfromVectors(Vector3D E, Vector3D B) Creates an EM tensor from Electric and Magnetic fields vectors.Returns the raw tensor object.
-
Constructor Details
-
ElectromagneticTensor
-
-
Method Details
-
fromVectors
Creates an EM tensor from Electric and Magnetic fields vectors.Assumes a local inertial frame where these vectors are measured.
- Parameters:
E- Electric field vectorB- Magnetic field vector- Returns:
- ElectromagneticTensor instance
-
getTensor
-
extractElectricField
Extracts the electric field 4-vector seen by an observer with 4-velocity $u^\mu$.$E^\mu = F^{\mu\nu} u_\nu$
- Parameters:
uObserver- 4-velocity of the observer- Returns:
- Electric field 4-vector
-