|
| | position = Matrix(symbols("x0:3", real=True)) |
| |
| | time = symbols("t", real=True) |
| |
| | momentum = Matrix(symbols("p0:3", real=True)) |
| |
| | velocity = Matrix(symbols("v0:3", real=True)) |
| |
| | charge |
| |
| | mass = symbols("q m", nonzero=True, real=True) |
| |
| | potential = Function("phi")(*self.position, self.time) |
| |
| | vector_potential |
| |
| | hamiltonian = mechanical.dot(mechanical) / (2 * self.mass) |
| |
| | canonical_velocity = self.hamiltonian.diff(self.momentum) |
| |
| | canonical_force = -self.hamiltonian.diff(self.position) |
| |
| | electric_field = Matrix(symbols("E0:3", real=True)) |
| |
| | induction = Matrix(symbols("B0:3", real=True)) |
| |
| | mechanical_force |
| |
| | electric_force |
| |
| | magnetic_force = self.mechanical_force - self.electric_force |
| |
| | electric_power = self.velocity.dot(self.electric_force) |
| |
| | magnetic_power = simplify(self.velocity.dot(self.magnetic_force)) |
| |
| | charge_density = symbols("charge_density", real=True) |
| |
| | current = Matrix(symbols("J0:3", real=True)) |
| |
| | electric_force_density |
| |
| | magnetic_force_density |
| |
| | fluid_energy_source = simplify(self.electric_power.subs(carrier_sum)) |
| |
Definition at line 27 of file electromagnetic_coupling.py.
◆ __init__()
| electromagnetic_coupling.ElectromagneticInteraction.__init__ |
( |
| self | ) |
|
◆ position
| electromagnetic_coupling.ElectromagneticInteraction.position = Matrix(symbols("x0:3", real=True)) |
◆ time
| electromagnetic_coupling.ElectromagneticInteraction.time = symbols("t", real=True) |
◆ momentum
| electromagnetic_coupling.ElectromagneticInteraction.momentum = Matrix(symbols("p0:3", real=True)) |
◆ velocity
| electromagnetic_coupling.ElectromagneticInteraction.velocity = Matrix(symbols("v0:3", real=True)) |
◆ charge
| electromagnetic_coupling.ElectromagneticInteraction.charge |
◆ mass
| electromagnetic_coupling.ElectromagneticInteraction.mass = symbols("q m", nonzero=True, real=True) |
◆ potential
| electromagnetic_coupling.ElectromagneticInteraction.potential = Function("phi")(*self.position, self.time) |
◆ vector_potential
| electromagnetic_coupling.ElectromagneticInteraction.vector_potential |
Initial value:= Matrix(
[Function(f"A{i}")(*self.position, self.time) for i in range(3)]
)
Definition at line 35 of file electromagnetic_coupling.py.
◆ hamiltonian
| electromagnetic_coupling.ElectromagneticInteraction.hamiltonian = mechanical.dot(mechanical) / (2 * self.mass) |
◆ canonical_velocity
| electromagnetic_coupling.ElectromagneticInteraction.canonical_velocity = self.hamiltonian.diff(self.momentum) |
◆ canonical_force
| electromagnetic_coupling.ElectromagneticInteraction.canonical_force = -self.hamiltonian.diff(self.position) |
◆ electric_field
| electromagnetic_coupling.ElectromagneticInteraction.electric_field = Matrix(symbols("E0:3", real=True)) |
◆ induction
| electromagnetic_coupling.ElectromagneticInteraction.induction = Matrix(symbols("B0:3", real=True)) |
◆ mechanical_force
| electromagnetic_coupling.ElectromagneticInteraction.mechanical_force |
Initial value:= mechanical_force.subs(
substitutions, simultaneous=True
).applyfunc(simplify)
Definition at line 71 of file electromagnetic_coupling.py.
◆ electric_force
| electromagnetic_coupling.ElectromagneticInteraction.electric_force |
◆ magnetic_force
| electromagnetic_coupling.ElectromagneticInteraction.magnetic_force = self.mechanical_force - self.electric_force |
◆ electric_power
| electromagnetic_coupling.ElectromagneticInteraction.electric_power = self.velocity.dot(self.electric_force) |
◆ magnetic_power
| electromagnetic_coupling.ElectromagneticInteraction.magnetic_power = simplify(self.velocity.dot(self.magnetic_force)) |
◆ charge_density
| electromagnetic_coupling.ElectromagneticInteraction.charge_density = symbols("charge_density", real=True) |
◆ current
| electromagnetic_coupling.ElectromagneticInteraction.current = Matrix(symbols("J0:3", real=True)) |
◆ electric_force_density
| electromagnetic_coupling.ElectromagneticInteraction.electric_force_density |
◆ magnetic_force_density
| electromagnetic_coupling.ElectromagneticInteraction.magnetic_force_density |
◆ fluid_energy_source
| electromagnetic_coupling.ElectromagneticInteraction.fluid_energy_source = simplify(self.electric_power.subs(carrier_sum)) |
The documentation for this class was generated from the following file: