3D simulations of the electrothermal and THz emission properties of Bi
2Sr
2CaCu
2O
8 intrinsic Josephson junction stacks
We simulate a $250 \times 70\,\mu\mathrm{m}^2$ Bi$_2$Sr$_2$CaCu$_2$O$_8$ intrinsic Josephson junction stack, grouping 700 junctions into 20 segments. With coupled 2D sine-Gordon and 3D heat diffusion equations, we find that a hot spot forms at high input power. The (1,0) cavity mode, deemed most favorable for THz emission, can be stabilized by a small magnetic field along the stack's length, and a field around 5.9 mT experimentally enhances emission power.