Mathematical methods in nuclear-reactor thermal hydraulics