Simulated midlatitude summer nighttime anomaly in realistic geomagnetic fields