Hi @sampathkumar,
You could use a function of time as the voltage value (please search intrinsic function in help), or use a wavform defined in design dataset. You could also use a external Maxwell circuit, or choose co-simulation with simplorer if you would like to do a closed-loop control.
GL