How can I use Jool to put a spacecraft into a solar polar orbit?
Solution 1:
So you're correct in using Jool for a gravitational slingshot into a high inclination, and you're also correct in assuming that you can only get about 40° from an encounter prior to switching the spheres of influence. Trying to set up burns prior to switching SoI is an exercise in futility. What you do want to do is set up your encounter so that you're coming in close to over a pole. 200m/s early (about a month out from switching SoI) can save a lot down the road.
Getting your trans-Joolian burn correct is actually one of the biggest factors for saving fuel. Not only do you minimize delta-V on the transfer burn, but you'll also minimize delta-V on the polar injection burn. You want to start your transfer about 65° after crossing the terminator into night when Jool is leading Kerbin by about 95°. When it comes to the phase angle, burning too early is really bad, as delta-V costs go up exponentially with the amount of time before optimal. Burning late isn't so bad, as costs go up much slower (quadratically maybe? Don't know for sure). This is a utility for determining optimal burn patterns.
So you've done your transfer burn, and you've done your final correction burn before switching SoI, and you're just waiting those last few seconds before that Jool orbit line changes from yellow to green. When that happens, you'll want to immediately plop down a maneuver node not too far in front of you. You're basically going to be doing a bunch of min-maxing to get your inclination into the high eighties. First, set your incoming inclination for best result inclination. Next, add about 500m/s of prograde velocity. You're doing this because you essentially have to kill something like 4000m/s of horizontal velocity and turn that into vertical. Next, reduce your periapse using the ground vector until optimal. Rinse and repeat, adding the most velocity in the prograde direction. Eventually, you'll get to a point where the inclination of the resulting orbit is correct, but the periapse will be in the sun, or the apoapse will be way out of the system. You're three options are to try and fix it now, try to fix it at Jool periapse, or (easily) fix it once you achieve polar orbit.
It's a tough operation, but with patience and experimentation, you should be able to get it every time.
Solution 2:
if you're no stickler for transit time you can do a multi-planet banking shot from an inclined orbit around kerbin. each shot, provided it's angled right, will put you closer to polar insertion at jool.
the maneuver controls(click on your orbit path and it'll say 'add maneuver') have a predictive pathing feature. learn to love it. it makes reaching other planets incredibly easy, no mechjeb needed. if you're really good a bare few hundred meters/sec delta shift can easily punt you around the entire system.
Solution 3:
Like MBraedley says in their answer, you want to start by optimizing your Kerbin-to-Jool transfer. With a proper Hohmann transfer, you should encounter Jool right at the apoapsis of your transfer orbit, where your spacecraft will be moving in the same direction as Jool around the Sun, but slower, with Jool effectively catching up with you from behind.
Next you should fine-tune your transfer orbit so that you'll be coming in over one of Jool's poles. This should put your Jool periapsis (which you'll want to get as low as possible without dipping into Jool's atmosphere) at about a 45° angle to the ecliptic.
The next thing to do is to put a maneuver node right at your Jool periapsis and plan a prograde burn there. Since you'll be burning at 45° to the plane of Jool's orbit (and of the solar system in general), you will be simultaneously slowing your equatorial velocity relative to the Sun and increasing your polar velocity, both of which you want. And since you'll be doing the burn way deep in Jool's gravity well, you get to take maximum advantage of the Oberth effect.
Ideally, you should adjust your periapsis burn so that you'll end up leaving Jool's SOI straight up (or down, as it might be) out of the ecliptic. Your solar polar orbit probably will not be circular, but if you're just trying to replicate the Ulysses mission, that may be fine. You can always adjust the orbit with additional burns at solar apo/periapsis if you need to.
(Ps. As a disclaimer, I should note that I haven't actually tested this maneuver in KSP yet. I believe it should work, based on what I know of orbital mechanics and my experience with the game, but I'm quite aware that saying that something should be doable and actually doing it are very different things. I'll try to run a test mission later and maybe post some screenshots, but that'll probably have to wait until I'm on another computer that isn't quite as slow as this ancient laptop.)