|
Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
|
Abstract base class for all magnetic field sources. More...
#include <MagneticSource.hpp>

Public Member Functions | |
| virtual | ~MagneticSource ()=default |
| virtual Vector3< Quantity< Tesla > > | GetMagneticFieldAt (const Vector3< Quantity< Meter > > &point) const =0 |
| Compute the magnetic field at a point in space. | |
Abstract base class for all magnetic field sources.
MagneticSource defines the interface for any object that produces a magnetic field. Subclasses represent specific sources such as:
Example: class MagneticDipole : public MagneticSource { [[nodiscard]] Vector3<Quantity<Tesla>> GetMagneticFieldAt(const Vector3<Quantity<Meter>>& point) const override { // Compute dipole field at point return B; } };
Definition at line 27 of file MagneticSource.hpp.
|
virtualdefault |
|
pure virtual |
Compute the magnetic field at a point in space.
| point | Position in 3D space (meters) |
Subclasses must implement this method according to their specific geometry and current distribution.
Implemented in Phyth::Electromagnetics::CurrentSegment, Phyth::Electromagnetics::MagneticDipole, and Phyth::Electromagnetics::PointCharge.