OneSimulation docs Website Free books Plans on Gumroad

Docs › Physics API reference › onesim.physics.electromagnetics

A.5 onesim.physics.electromagnetics

AveragedBuckConverter class

AveragedBuckConverter(*, domain: object, model_id: str = <factory>, input_voltage: object, duty_cycle: object, inductance: float, capacitance: float, load_resistance: float, series_resistance: float = 0.0) -> None

Integrate inductor current and output voltage with an averaged duty-cycle drive and resistive load.

Declared fields. supply (V, input), duty (1, input), inductor_current (A, differential), output_voltage (V, differential), input_current (A, derived), input_power (W, derived), output_power (W, derived), conduction_loss (W, derived), voltage_residual (V, derived), current_residual (A, derived), duty_cycle (1, derived).

CircularWaveguideMode class

CircularWaveguideMode(name: str, polarization_angle: float = 0.0) -> None

Select a named circular waveguide mode and its polarization angle.

cold_electron_permittivity_property function

cold_electron_permittivity_property(property_id, *, electron_density='electron_density', collision_frequency='collision_frequency', magnetic_components=('Bx', 'By', 'Bz'), angular_frequency='omega', phasor_convention)

Declare a lab-frame cold-electron epsilon tensor with explicit phasors.

DCMotor class

DCMotor(*, domain: object, model_id: str = <factory>, resistance: float, inductance: float, motor_constant: float, inertia: float, viscous_friction: float = 0.0, applied_voltage: object = 0.0, load_torque: object = 0.0) -> None

Integrate electrical current and mechanical rotation under applied voltage and load torque.

Declared fields. voltage (V, input), torque (N*m, input), current (A, differential), angular_velocity (rad/s, differential), angle (rad, differential), back_emf (V, derived), electromagnetic_torque (N*m, derived), electrical_power (W, derived), mechanical_power (W, derived).

FrequencyDomainMaxwell class

FrequencyDomainMaxwell(*, domain: object, model_id: str = <factory>, frequency: float, material: object, phasor_convention: str, amplitude_convention: str, impressed_current: object = (0.0, 0.0, 0.0)) -> None

Solve for complex electric phasors and derive magnetic flux density and absorbed power at one frequency.

Declared fields. electric_field (V/m, algebraic, x/y/z), magnetic_flux_density (T, derived, x/y/z), absorbed_power_density (W/m^3, derived), impressed_current_density (A/m^2, input, x/y/z). Selected methods.

components()

ImpedanceBoundary class

ImpedanceBoundary(*, boundary: object, physics: object, admittance: object, incident_electric_field: object = (0.0, 0.0, 0.0)) -> None

Local tangential admittance in S, with an incident electric field in V/m.

Selected methods.

bind_trace(*, model, mesh, space, facets)

MagneticDiffusion class

MagneticDiffusion(*, domain: object, model_id: str = <factory>, permeability: float, conductivity: float) -> None

Advance magnetic induction with diffusivity equal to the reciprocal of permeability times conductivity.

Declared fields. magnetic_induction (T, differential), magnetic_energy_density (J/m^3, derived).

operators namespace

Electromagnetics / operators.

PerfectElectricConductor class

PerfectElectricConductor(*, boundary: object, physics: object) -> None

Apply the PEC tangential electric-field condition on the selected boundary.

SeriesRLC class

SeriesRLC(*, domain: object, model_id: str = <factory>, resistance: float, inductance: float, capacitance: float, source_voltage: object = 0.0) -> None

Integrate charge and current for the series circuit with an applied supply voltage.

Declared fields. supply (V, input), charge (C, differential), current (A, differential), capacitor_voltage (V, derived), stored_energy (J, derived), source_voltage (V, derived), resistor_voltage (V, derived), inductor_voltage (V, derived), voltage_residual (V, derived).

WaveguideModeBasis class

WaveguideModeBasis(modes: tuple, amplitudes: tuple) -> None

Explicit propagating port basis and relative complex incident amplitudes.

Selected methods.

bind(*, incident_power, **arguments)

WaveguidePort class

WaveguidePort(*, boundary: object, physics: object, mode: object, incident_power: float) -> None

Attach a mode and incident power to the Maxwell model on the selected boundary.