Various schemes proposed for the creation of the spheromak in the Princeton S1 experiment are simulated by our two-dimensional, time-dependent, compressible, resistive hydromagnetic code. In these schemes, the toroidal fields and poloidal currents in the plasma are induced by a solenoidal discharge in a core, while a toroidal coil inside the core produces the major part of the initial poloidal fields, as well as the main plasma toroidal current. Poloidal fields are reversed by programming current reversal in the toroidal coil. Poloidal field reconnection, toroidal field compression, and plasma accumulation into a spheromak geometry are achieved in the various schemes with or without the aid of pinching coils. For several schemes, using proper programming of currents, realistic parameter values give effective spheromak formation.