If you want 24VAC RMS sinusoidal, then you will need to boost your 24VDC to about 35V. There are various ways to do this, but it would possibly be easier to start with a higher voltage.
Edit: I don't really know what you're doing. If it a model train controller? What current is required?