IMFD What is the correct "Rad" setting?

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
When I program a course to a moon or planet I never know what the correct "Rad" setting should be. I know Apollo uses 8M for the moon but how do I know what is the correct setting for other planets and moons?

Thanks
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,218
Reaction score
1,566
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
"Rad" stands for "Radius", so that value indicates the radius of the orbit you want as measured from the center of the orbital body. To determine the correct value for a given planet or moon, look up the radius of the planet or moon in question and then add however many kilometers you want your orbit to be. For example, the moon's mean radius is 1737 kilometers, so if you wanted to orbit the moon at 100 km above the surface you would set your RAD to be 1737 + 100 = 1837 km.
 

Tommy

Well-known member
Joined
Aug 14, 2008
Messages
2,019
Reaction score
86
Points
48
Location
Here and now
To truly explain this I'll have to explain a bit about how Target Offsetting works in IMFD. If you already know this, please bear with me.

Target Intercept's default behavior is to "aim" for the center of the target body's mass. This provides the largest margin of error, soldiers and police are taught to aim for the target's "center of mass" for the same reason. This is a good thing when planning a transfer burn for an interplanetary trip. For a shorter flight like a Moon trip, or MCC's later in an interplanetary flight, it's not so desirable. After all, we don't want to collide with the target, we want a very near miss.

Target Offsetting allows us to adjust that "aiming point" away from the center of mass. This aiming point is defined in spherical coordinates, which is a bit confusing. Rad (Radius) determines the distance of the offset vector, and Lon (Longitude) and Lat (Latitude) determine the direction of the vector.

Adjusting the Rad alone is adequate for setting up a Free Return trajectory, but note that 8M is a starting value that will need to be adjusted some to attain the desired PeA. Note also that 8M is much more than the 1837k suggested by dbeachy - his method can provide a starting point but the actual Rad will typically be very different.

Keep in mind that Target Intercept uses a simplified two-body solution and has limited accuracy. IMFD's Map program uses a much more precise multi-body solution, so it's important to use Map (with Plan enabled) to "fine tune" the offset. Doing this allows us to adjust the offset to make up for the inaccuracies of Target Intercept's simple solution.

In order to use Offsetting effectively and efficiently, it's important to understand how the spherical coordinate system works. Rad is pretty simple - it's a distance (in meters). Lon and Lat are a bit more complicated.

Lon is referenced to the target bodies prograde direction (as determined by the reference frame selected - P30 (LVLH) or velocity frame. The IMFD manual explains the diference between these two modes. Lon can range between -179 and +180, and is measured in degrees. This "wraps around", so 180 +1 = -179. To put it simply, a Lon = 0 is "in front of", or "leading" the target, and a Lon = 180 is "behind", or "trailing" the body. A positive Lon is "outward" and a negative Lon is "inward". See the attached diagram for a visual explanation.

Lat (also in degrees) is referenced to the target's orbital plane, with zero being parallel to the target plane, +90 being perpendicular to the targets plane to the "north", and -90 being perpendicular to the "south".

So, if we want to enter a retrograde orbit around the Moon, a Lon of zero is fine. Same for entering a retrograde orbit around a planet farther from the Sun than we started from, or entering a prograde orbit around a planet closer to the Sun. To enter a prograde orbit around the Moon (or a outward planet) a Lon of 180 will work.

To use Offsetting efficiently, especially for interplanetary flights, it gets even more complicated. I'll use an Earth - Mars off-plane transfer for an example. Of course, Target Offsetting only works when the source is ourself, so you'll only be using offsetting for MCC's, after we've left Earth's SOI.

I'll assume we want a prograde orbit around Mars. First, I'll use Map with Plan enabled to check my current trajectory and find out which way I need to move the "aiming point" (this point is shown in Target Intercept, hitting the CNT button in Target Intercept will center the display on the "aiming point") and set the Lon to zero or 180, accordingly. I could, at this point, simply adjust the Rad to attain the desired PeA, but this will be inefficient. Doing this will most likely change my PeT, which means I'm changing my forward velocity (dVf in Burn View), and this is very inefficient during a MCC when I'm far from a gravity source.

So, after I've determined the general direction ("ahead", or "behind"), but BEFORE I increase the RAD above zero, I'll use Map with Plan DISABLED (trajectory shown in green) to find my current trajectory's PeT. I will then set the TIn in Target intercept to match the PeT shown in Map. Then I will enable Plan (trajectory shown in blue).

Map should be set with Ref = Sun, TGT = Mars, CNT = p-mars, and Plan, SOI, and Int should be enabled.

For a successful Off-Plane intercept, it is essential that the intercept occur at a node between our transfer plane and the target's orbital plane - this node is displayed as a blue box (and a blue dashed line if the node is outside our target's SOI)

We use Rad to adjust the PeA, Lon to adjust the PeT, and Lat to adjust the position of the node. However, adjusting one value will change the others as well. For instance, adjusting the Rad will change not just our PeA, but will also affect our PeT and move the node.

It's often easiest to adjust one thing first, then two things, then all three. For instance, I'll adjust the Rad to get my PeA (as shown in Map) about where I want it. Then I'll alternate between adjusting the Rad and the Lon until both PeA and PeT are about right, then I'll alternate adjusting the Rad, Lon, and Lat until I've got the PeA, PeT and Node where I want. It's a very painstaking process, and you will need to redo the offset for every MCC you make.

This will be explained more completely (with screenshots and flight recordings) in the IMFD Full Manual V2, in the Target Offsetting and Advanced Concepts sections. I'm way past my "deadline" on this, I know. I swear to the probe I'll have my part done in time for a Christmas release.
 

Attachments

  • Vectors.png
    Vectors.png
    13.1 KB · Views: 31

jambooger

Defender of the Stupid
Donator
Joined
Jan 24, 2010
Messages
241
Reaction score
0
Points
0
Location
Earth for now
Yet another one of Tommys great explanations that I am printing for future reference. I thought I knew how to program IMFD pretty well but not now.
:tiphat: as always.... and dont kill yourself Tommy over trying to rush the new release. We will all appreciate it when you find time to finish.
 

Tommy

Well-known member
Joined
Aug 14, 2008
Messages
2,019
Reaction score
86
Points
48
Location
Here and now
Not that much left to do - but it's the boring stuff (trimming screenshots, mostly) and I've had a hard time making myself do it on the little free time I have available. I really should just bring my computer over to my sister's (I babysit most nights so I'm rarely home) because I'm often bored once the kids go to bed - and there's no cable!

I could probably finish up that last section in about 6 hours, then Mark and I just have to put it together and post it - that should take less than 4 hours. So Christmas isn't "killing myself" by any means.

As an aside, I usually use Delta Velocity for MCC's, it's easier than dealing with offsets (at least for me). Also, offsetting before the plane change in a planar transfer can cause some problems - not sure if the problem is in IMFD or if it's operator error. It's not that big a deal, it's rare that you need a course correction before the plane change anyway. The nice thing about using Delta-V or offsets for MCC's are that you can start to tune the approach from a LONG ways away, when it's cheap, and eliminate using Planet Approach (which is usually rather expensive since you can't use it until you are close to your target). Offsetting can also be used to directly target a planet's moons from a distance. So you could get from Earth to Titan without ever inserting into a Saturn orbit - you can target Titan directly and aerobrake. Advanced Concepts does the EJS sling to landed on Titan with less than 30 seconds of burntime (stock DG) after leaving Earth's SOI, and that includes an almost 10 second plane change burn enroute to Jupiter. It get's a stock DG from Canaveral to landed on Titan without refueling, and leaves over a third of a tank of fuel left!

That's one of the things I like about IMFD, when you are a new pilot it can make planet hopping fairly simple (but inefficient). Then as you learn more about the mechanics involved IMFD offers advanced options to make the flights more efficient.
 
Top