I am trying to simulate a three phase grid connected inverter for voltage and reactive power control purpose. After my simulation is done I want to implement it in OPAL-RT real time simulation and later do the experiment. My question is how should I design my model so that it is easily implementable in real time simulator and then later for experiment. To be specefic, what sample time I should choose? How much should be switching frequency, using discrete or continous powergui? Also, which solver should I choose? Because all of these parameters can effect the performance of my model especially when implementing on real time simulator.