If you are talking about SPICE simulation or a similar electronic circuit simulator then get a triangular waveform generator as one input to a comparator and use the error signal as the other input to the comparator. You will have to mess around with the signal offset and gain factors to get the proportional gain settings correct.
This simulation is non-trivial.
I am of course assuming that you are talking about proportional control of an on/off type of valve, where the duty cycle controls the proportional output. If you have a linear actuated valve then the simulation would simply consist of a few opamps, R's, C's and L's, to simulate the various system components.