Simulating the magnetic field in the local supercluster