- Electromagnetism in Minkowski spacetime [ipynb] (Electromagnetic field 2-form from E and B, Maxwell equations, conserved current, Lorentz force, Poynting vector)
M = Manifold(4, 'M', latex_name=r'\mathcal{M}', structure='Lorentzian')
BL.<t,x,y,z> = M.chart(r"t x y z")
var('E_x E_y E_z')
dt, dx, dy, dz = BL.coframe()[:]
E = E_x * dx + E_y * dy + E_z * dzE.set_name('E')
(E.wedge(BL.coframe()[0])).exterior_der()
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In [66], line 1 ----> 1 (E.wedge(BL.coframe()[Integer(0)])).exterior_der() File /private/var/tmp/sage-10.1-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/structure/element.pyx:488, in sage.structure.element.Element.__getattr__ (build/cythonized/sage/structure/element.c:4846)() 486 AttributeError: 'LeftZeroSemigroup_with_category.element_class' object has no attribute 'blah_blah' 487 """ --> 488 return self.getattr_from_category(name) 489 490 cdef getattr_from_category(self, name): File /private/var/tmp/sage-10.1-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/structure/element.pyx:501, in sage.structure.element.Element.getattr_from_category (build/cythonized/sage/structure/element.c:4958)() 499 else: 500 cls = P._abstract_element_class --> 501 return getattr_from_other_class(self, cls, name) 502 503 def __dir__(self): File /private/var/tmp/sage-10.1-current/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/cpython/getattr.pyx:357, in sage.cpython.getattr.getattr_from_other_class (build/cythonized/sage/cpython/getattr.c:2706)() 355 dummy_error_message.cls = type(self) 356 dummy_error_message.name = name --> 357 raise AttributeError(dummy_error_message) 358 cdef PyObject* attr = instance_getattr(cls, name) 359 if attr is NULL: AttributeError: 'DiffFormFreeModule_with_category.element_class' object has no attribute 'exterior_der'
The example here https://sagemanifolds.obspm.fr/examples.html of
- Electromagnetism in Minkowski spacetime [ipynb] (Electromagnetic field 2-form from E and B, Maxwell equations, conserved current, Lorentz force, Poynting vector)
Fails with the error in the title and in more detail below.
Sorry about posting the same thing twice.