Simulating the Solar Dynamo