Real-time simulation requires the model to be updated and solved strictly within the time corresponding to each simulation step — one simulated second takes one real second. Offline simulation often needs far more than one second of computation for one second of operating condition. Power electronics typically needs step sizes on the order of 1 μs, which calls for multi-core CPUs or FPGAs plus algorithm optimization.
A real-time simulator has physical IO and can connect to real controllers, combining the flexibility of software modeling with closed-loop validation against real hardware.
| Real-time simulation | Offline simulation | |
|---|---|---|
| Pros | Synchronized with real time, so system response can be observed live; IO signal exchange with controllers enables controller-in-the-loop testing. | No dedicated hardware required — a PC with the software is enough; a wide variety of modeling methods, including fine-grained SPICE models. |
| Cons | Requires a dedicated simulator; fewer and less comprehensive modeling methods than offline simulation. | Computation time is highly unpredictable; no IO signal interaction capability. |
Advantages of real-time simulation systems: during R&D, design changes and tests can be carried out quickly in the simulation environment without modifying hardware. Extreme operating conditions and fault scenarios that are difficult or unsafe to create on physical systems can be reproduced. Hands-on operating experience is available for education and professional training without risking expensive equipment. New technologies can be researched and developed without disturbing the operation of the physical system.
Limitations of real-time simulation systems: high-performance computing resources are needed to meet real-time requirements, which limits simulation scale and complexity. If the model does not accurately reflect all characteristics of the physical system, results may deviate. Physical systems are affected by environmental factors such as temperature and humidity, which are hard to reproduce accurately in simulation. For some applications, users may prefer a physical system that has been tested and validated in practice.
RCP (rapid control prototyping) deploys control algorithms written in environments such as Simulink directly onto prototype hardware with IO, and uses them to control a real plant. HIL does the opposite: a real controller controls a simulated plant. RCP validates the algorithm; HIL validates the controller.
RCP removes low-level code translation and custom hardware work, supports online parameter tuning, and can noticeably shorten development cycles.
Advantages of RCP systems: control algorithms can be developed and deployed quickly, which suits early-stage testing and validation of control strategies. Compatibility is good, with rich software tools and libraries for algorithm development and testing; human-machine interaction is more responsive and controllability is stronger. Algorithm changes and updates are easy, with no hardware replacement or redesign.
Advantages of DSP controllers: low cost; hardware and software can be customized and optimized for a specific application, giving strong application-specific performance. Purpose-designed and tested, they run stably in harsh environments.
Large steps of 25 μs run on the CPU and suit power grids, EMS and energy dispatch. Small steps of 1 μs run on the FPGA and suit switching detail and high-frequency harmonics; as a rule, the simulation frequency should be 50–100 times the PWM frequency.
ModelingTech already delivers 100 ns detailed models and 200 kHz high-frequency simulation.
LC (constant admittance) modeling: the admittance matrix stays constant regardless of switching state or system state, only the injected current source calculation changes. This makes it very well suited to small-step real-time simulation of arbitrary power electronics topologies. However, LC modeling introduces extra parasitic parameters and produces energy loss at switching transitions. As switching frequency rises (above 20 kHz), the energy loss becomes significant and cannot be ignored.
RonRoff modeling: no overshoot or ringing at the switching node during transitions, and low energy loss — close to an ideal switch equivalent, well suited to high switching frequency simulation. However, the circuit parameter matrix changes with every switching state, which means the inverse matrix must be recomputed repeatedly to solve the circuit equations; once node count grows, real-time solving at a 1 μs step becomes very difficult.
A single FPGA has limited resources and IO, and struggles to host large-scale systems such as renewable plants, multiple inverters or MMCs. ModelingTech uses Master/Slave fiber-optic cascading with a dedicated synchronization algorithm to guarantee synchronized inputs and outputs across devices; communication latency under the Aurora protocol is below 1 μs, with support for up to 16 SFP+ fiber links.
In a typical case, three simulators jointly simulated detailed models of 15 storage inverters plus aggregated models of 19 VSCs.
Clock line: provides a synchronous clock signal as the timing reference, ensuring that all processors or simulation units operate at the same clock frequency and that events occur at the correct instant.
Fiber SFP: data transmission.
ModelingTech automated testing uses Python scripts (PyCharm) to chain the workflow: setting project and report paths, issuing simulation commands, switching fault conditions, recording and analyzing waveforms, and generating Word reports from templates. Tests such as high/low voltage ride-through complete in about two minutes.
It reduces manual and repetitive work, guarantees consistency of test conditions and accuracy of results, and suits batch R&D testing in industry.