Magnetic dynamo model