Custom Solenoid with Magnetic Hysteresis
This example shows a limited travel solenoid with return spring. Magnetic hysteresis is modeled using the Reluctance with Hysteresis library block.
Solenoid with Magnetic Effects Subsystem
Simulation Results from Simscape Logging
The plot below shows the solenoid position when pulsed on and off, plus the corresponding B-H trajectory.