Plucked string instruments are one of the simpler classes of instruments for physical modelling. Waveguide synthesis uses delay lines and filters to model a wave propagating along a string and reflecting off the bridge and nut.
The famous Karplus–Strong algorithm used a burst of white noise as the excitation, but I've had more success using an asymetric triangle-shaped impulse that resembles the shape of the drawn string.