Actuator in VHDL-AMS with SystemVision®

Modeling an electromagnetic actuator in a systems context is sometimes required to accurately simulate the dynamic interaction between drive circuit, actuator, and load. Co-simulation, where a systems simulator and MagNet run parallel transient solves, is one method that can be used. An alternative approach, Response Surface Modeling (RSM), creates a functionally equivalent model of the actuator by performing a large number of static analyses at different currents and positions. Presented here is an example of an RSM embedded in a VHDL-AMS model of the actuator, used in conjunction with the SystemVision system simulator from Mentor Graphics. The procedure is automated with Infolytica's Actuator RSM Wizard, which drives MagNet to execute its static solver and then generates the VHDL-AMS code which implements the RSM. VHDL-AMS is an IEEE standard (1076.1) supported by many circuit and system simulators.


Results

Click image to see full size version
Shown here is the SystemVision circuit diagram of the actuator and drive circuit. In this example, the coil is driven by a capacitor charged to 12 V. A spring holds the plunger against the upper stop. At time t=0, a switch closes to connect the charged capacitor to the coil. On the mechanical side the spring, viscous damper, and upper and lower stops are modeled using appropriate mechanical components which, in fact, are themselves described using VHDL-AMS. This system is simple enough to be simulated in the Educational Version of SystemVision, which is a free download.

Click image to see full size version
The MagNet mesh of the actuator model is shown at right. Since this device has axial symmetry, the MagNet Static 2d solver is used to calculate force and flux-linkage at different positions and currents. (Note - This solver is also available in the MagNet Trial Edition, which is a free download.) The solution setup to create the VHDL-AMS Response Surface Model (RSM) is automated with the use of the Actuator RSM Wizard.

Click image to see full size version
The RSM of the force as a function of coil current and plunger position is shows at right. The response surface models for both flux and force were created using Infolytica's Actuator RSM Wizard and required a total of 460 Magnetostatic 2d solutions. The code to evaluate these RSM's is embedded in the VHDL-AMS file.

Click image to see full size version
This graph shows the position of the plunger as a function of time. The complicated behaviour arises from the transfer of energy between the potential energy of the capacitor, the energy stored in the magnetic field, the potential energy in the spring, and the kinetic energy of the plunger.

Click image to see full size version
This system can be modeled directly in MagNet's Transient with Motion solver, as shown at right. The position is slightly different because MagNet can simulate an ideal bounce (instant velocity reversal), whereas a very large spring constant was used in the VHDL-AMS implementation of the spring in SystemVision. This small error at each bounce is amplified over time. Although the transient solution time is comparable to the time required to generate the RSM, the RSM allows changes in the drive circuit to be made and the result simulated almost instantly in SystemVision.

Number of time steps: 600
Transient solution time: 6 minutes 12 seconds
Number of static solutions in RSM: 460
Static solution time (total): 5 minutes 10 seconds
SystemVision simulation time: 1.234 seconds