Question Ranger (and other ships) from Interstellar?

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
Not sure what you mean. But I think yes. You might have a 2010 and 2016 dll. The think that is holding us up and some code and Lander dynamics. And for 2016 Ummu
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
Ok some thoughts on the aerodynamics of the Lander:
Check the API guide section 1.9, 1.9.1, 1.9.4, & 1.9.5. Here’s my impression:

Drag is a force acting on the vessel in the direction of the freestream airflow. It is composed
from several components:
1. The skin friction drag caused by the boundary layer surrounding the airfoil.
2. The pressure drag caused by separation of flow from the surface.
3. The wave drag at supersonic velocities.
4. Induced drag, caused by airflow around the wingtip (finite wing) from the lower to the
upper surface.
The combination of components 1-3 is defined as profile drag or parasite drag.

Lift is an upward force (perpendicular to the airflow) caused by the shape of the airfoil and its
orientation to the airflow.

Drag D and lift L of an airfoil are expressed by the drag and lift coefficients cD and cL, with
cD = D/qS , cL = L/qS
where q = 1/2 rV2 is the freestream dynamic pressure, and S is the wing area. Generally, cD
and cL, will be functions of the angle of attack, the Mach number, and the Reynolds number.
We now split cD in the components of profile and induced drag.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,605
Reaction score
2,327
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Yes, very basic aerodynamics.

Airfoil_lift_and_drag.jpg


Now, you just need to plan, how the lift and drag arrows look like and how the resulting total force should be.

Also, you should plan, how the torque (aerodynamic moment) should be on your spacecraft, in the sense of "how does it rotate relative to the wind?"

Essentially, you just need to define some reference data points and then interpolate the full circle around them.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
So:
Lander%20schematic%20E%5B1%5D.jpg

Lander%20schematic%20F'%5B1%5D.jpg

Lander%20schematic%20F%5B3%5D.jpg


Where A equals the length of the Lander, B it’s width, and C it’s height.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
So the wing shape we can get from the area. But not sure about the rest
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,605
Reaction score
2,327
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
So the wing shape we can get from the area. But not sure about the rest

There is a very simple way of getting at least tolerable results with a shape, that is less aerodynamic than a brick.

https://www.grc.nasa.gov/www/k-12/airplane/wrong2.html

[FONT=Arial, Helvetica, sans-serif]BUT..... this theory is not totally inaccurate. In certain flight regimes, where the velocity is very high and the density is very low, few molecules can strike the upper airfoil surface and the Newtonian theory gives very accurate predictions. These are the conditions which occur on the Space Shuttle during the early phases of its re-entry into the Earth's atmosphere at altitudes above about 50 miles and at velocities above 10,000 mph (hypersonic conditions). For these flight conditions, the theory gives a good prediction. However, for most normal flight conditions, like those on an airliner (35,000 feet, 500 mph), this theory does not give the right answer.
[/FONT]

---------- Post added at 04:05 PM ---------- Previous post was at 04:00 PM ----------

If there is a MSH2STL converter, I can also teach you how to calculate pretty accurate aerodynamics by OpenFOAM...
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX


If there is a MSH2STL converter, I can also teach you how to calculate pretty accurate aerodynamics by OpenFOAM...


Thanks. Not sure what that is MSH2STL, though. I use Meshwizard and Anim8or
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,605
Reaction score
2,327
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Thanks. Not sure what that is MSH2STL, though. I use Meshwizard and Anim8or

MSH: Orbiters mesh format
2: to
STL: Stereo Lithography

https://en.wikipedia.org/wiki/STL_(file_format)


STL is created by various coordinate measurement systems and is used as input in various CFD software suites to define the shape of parts. OpenFOAM can use files of this type to create the volume geometry of a flow simulation

http://www.openfoam.com/documentation/user-guide/snappyHexMesh.php

This would then result in data like if you placed a styrofoam model of your lander into a wind tunnel.

But since you are not talking about a real vehicle, but about a sci-fi vessel, I would recommend you to use fictional aerodynamics for a fictional shape, so it flies right, even if it should not in reality.
 
Last edited:

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
We are using AeroBrake MFD. AeroBrake MFD must get it’s reentry data from the aerodynamic properties defined in the dll must get it’s reentry data from the aerodynamic properties defined in the dll. So the Lander when entering the Atmosphere is like an inverted capsule.
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,605
Reaction score
2,327
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
We are using AeroBrake MFD. AeroBrake MFD must get it’s reentry data from the aerodynamic properties defined in the DLL. So the Lander when entering the Atmosphere is like an inverted capsule.

AerobrakeMFD measures the properties first if it does not already know them.

Still, the big question in your case should be "How should it fly?"

Inverted capsule is wrong. You fly at 90° AOA (Nose 90° up from velocity vector symbol), if I remember your plan correctly.

So, ideally, you should have no lift at 90° AOA and a huge amount of drag.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
Well, the lander enters the atmosphere if you will upside down so the top enters the atmosphere to protect the cargo. Then the lander rights its self up and lands.

So it is inverted when it enters the atmosphere

I found this:
mkd5jf2.png


From The wiki which seems to contradict this:

" Design Edit
LndrRngr

The stark design contrast between the Lander and the Ranger

Unlike the Ranger's sleek, aerodynamic design, Landers appear as faceted, boxy spacecraft, loosely resembling the Apollo Lunar Module. In the official novelization, Cooper compared the Ranger and the Lander with racehorse versus a draft horse. The Lander's design was not optimized for fast and efficient atmospheric flight like the Ranger, but instead for effective and reliable atmospheric deceleration while carrying a heavy payload to a planetary surface. The high drag design removes the need for parachutes, spoilers, and other potentially failure prone drag devices.

Lander's heat shield is located on its upper surface, thus performs atmospheric entry inverted, protecting the belly-mounted payload. The seats can rotate around the craft's forward axis. This maintains a comfortable upright position for its passengers and pilots while rotating and listing. To maintain visibility in any orientation, the lander has windows both top and bottom. The windows on its upper surface are made of sapphire to withstand the heat of reentry. The windows on the nose and sides of the Lander are protected by thermal insulation tiles that slide on top of the windows like a closet door. Flanking its fuselage are four faceted fuel pods, each tipped with electric air jet nozzles for atmospheric flight and reaction control system (RCS) thrusters for maneuvers in space. The RCS thrusters are fueled by hydrazine and nitrogen tetroxide. "
 
Last edited:

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,605
Reaction score
2,327
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Well, the lander enters the atmosphere if you will upside down so the top enters the atmosphere to protect the cargo. Then the lander rights its self up and lands.

So it is inverted when it enters the atmosphere

So, just -90° AOA instead of 90°.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
Code for LAnder.
Code:
void Lander_MomentCoeff(double aoa, double M, double Re, double *cl, double *cm, double *cd)
{
	int i;
	const int nabsc = 7;
	static const double AOA[nabsc] = { -180 * RAD, -90 * RAD, -30 * RAD, 0 * RAD, 60 * RAD, 90 * RAD, 180 * RAD };
	static const double CL[nabsc] = { 0, 0, -0.004, 0, 0.008, 0, 0 };
	static const double CM[nabsc] = { 0, 0, 0.0014, 0, -0.0012, 0, 0 };

	for (i = 0; i < nabsc - 1 && AOA[i + 1] < aoa; i++);
	double f = (aoa - AOA[i]) / (AOA[i + 1] - AOA[i]);
	*cl = CL[i] + (CL[i + 1] - CL[i]) * f;  // aoa-dependent lift coefficient
	*cm = CM[i] + (CM[i + 1] - CM[i]) * f;  // aoa-dependent moment coefficient
	double saoa = sin(aoa);
	double pd = 0.045 + 0.4*saoa*saoa;  // profile drag
	*cd = pd + oapiGetInducedDrag(*cl, 0.1, 0.7) + oapiGetWaveDrag(M, 0.75, 1.0, 1.1, 0.04);
	// profile drag + (lift-)induced drag + transonic/supersonic wave (compressibility) drag


	ClearAirfoilDefinitions();
	CreateAirfoil(LIFT_VERTICAL, _V(0, 0, 0), Lander_MomentCoeff, 8, 140, 0.1);



}
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
Well I made a lander with the flight dynamics of the ranger just to see: I got this comment:
The Lander with Ranger flight dynamics was a mixed bag. The L/D properties were predictable so I could fly the reentry inverted, but the AoA was only -1.5 degrees. That's just about a flat approach. So while it's flyable, it doesn't offer any shielding to the cargo pods. Technically successful but not realistic.

Code:
// 1. vertical lift component (wings and body)
void VLiftCoeff(VESSEL *v, double aoa, double M, double Re, void *context, double *cl, double *cm, double *cd)
{
	int i;
	const int nabsc = 9;
	static const double AOA[nabsc] = { -180 * RAD, -60 * RAD, -30 * RAD, -2 * RAD, 15 * RAD, 20 * RAD, 25 * RAD, 60 * RAD, 180 * RAD };
	static const double CL[nabsc] = { 0, 0, -0.4, 0, 0.7, 1, 0.8, 0, 0 };
	static const double CM[nabsc] = { 0, 0, 0.014, 0.0039, -0.006, -0.008, -0.010, 0, 0 };
	for (i = 0; i < nabsc - 1 && AOA[i + 1] < aoa; i++);
	double f = (aoa - AOA[i]) / (AOA[i + 1] - AOA[i]);
	*cl = CL[i] + (CL[i + 1] - CL[i]) * f;  // aoa-dependent lift coefficient
	*cm = CM[i] + (CM[i + 1] - CM[i]) * f;  // aoa-dependent moment coefficient
	double saoa = sin(aoa);
	double pd = 0.015 + 0.4*saoa*saoa;  // profile drag
	*cd = pd + oapiGetInducedDrag(*cl, 1.5, 0.7) + oapiGetWaveDrag(M, 0.75, 1.0, 1.1, 0.04);
	// profile drag + (lift-)induced drag + transonic/supersonic wave (compressibility) drag
}

// 2. horizontal lift component (vertical stabilisers and body)
void HLiftCoeff(VESSEL *v, double beta, double M, double Re, void *context, double *cl, double *cm, double *cd)
{
	int i;
	const int nabsc = 8;
	static const double BETA[nabsc] = { -180 * RAD, -135 * RAD, -90 * RAD, -45 * RAD, 45 * RAD, 90 * RAD, 135 * RAD, 180 * RAD };
	static const double CL[nabsc] = { 0, +0.3, 0, -0.3, +0.3, 0, -0.3, 0 };
	for (i = 0; i < nabsc - 1 && BETA[i + 1] < beta; i++);
	*cl = CL[i] + (CL[i + 1] - CL[i]) * (beta - BETA[i]) / (BETA[i + 1] - BETA[i]);
	*cm = 0.0;
	*cd = 0.015 + oapiGetInducedDrag(*cl, 1.5, 0.6) + oapiGetWaveDrag(M, 0.75, 1.0, 1.1, 0.04);
}
Code:
CreateAirfoil3(LIFT_VERTICAL, _V(0, 0, -0.3), VLiftCoeff, 0, 5, 90, 1.5);
	// wing and body lift+drag components

	CreateAirfoil3(LIFT_HORIZONTAL, _V(0, 0, -4), HLiftCoeff, 0, 5, 15, 1.5);
 

BenSisko

Donator
Donator
Joined
Feb 18, 2008
Messages
420
Reaction score
45
Points
28
We've hit a wall here in creating a flyable Lander reentry. With the code shown above in Gattispilot's post we get somewhat predictable L/D behavior but a relatively flat AoA
www.4shared.com/photo/8_VllTrHce/Lander_Reentry.html

We need a little help writing the code for a more realistic L/D profile an a more realistic Lander reentry
 

BenSisko

Donator
Donator
Joined
Feb 18, 2008
Messages
420
Reaction score
45
Points
28
Gatttispilot is refining the coding. The Endurance, Ranger and Lander are modeled and flyable. Still working out some bugs with respect to cockpit rendering.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,691
Reaction score
2,670
Points
203
Location
Dallas, TX
Yes. All that we really lack is to fix the view code so that the view follows the animation. Lisias helped write this and he is busy with life. Its on a bitbucket if someone wants to help:)
 
Top