ZOH and sensing issue by using plecs

For the dab simulation, i caught the issue of unbalanced current.

As it used zoh for input voltage(which has a ripple value), it introduced the unbalanced current, as shown in the picture.

so how to configure the zoh application,

![Screenshot 2025-05-21 at 8.37.34 AM|690x432]
(upload://gXzRb3gX7GDHZhebmVehFEgbB83.png)
vg_sen is come from grid voltage.

zoh settings:

the PWM frequency is 100khz,

and simulation settings as:

how should I optimize the zoh setting to solve this issue.

thanks a lot.

There’s not enough information to debug your model. I cannot see a ZOH in any of your screenshots. Is one missing? How does the PFC PLL on vg_sen relate to the DAB current imbalance?

I will note that the PLL implementation can be sensitive to a DC offset, but it looks like you’re directly measuring vg_sen from an ideal AC source.

A model will be necessary for further guidance.