Modeling the flow of basaltic magma into subsurface nuclear facilities