Jump to content

Drag cubes - how to calculate aerodynamic stress?


Recommended Posts

Hello, recently I've been trying to calculate aerodynamic stress on vessels in atmosphere for the purpose of damage when the stresses get too great. To that purpose, I've been trying to calculate pressure on each part, for which I need the aerodynamic force and the surface area of the part.

Getting the aerodynamic forces wasn't hard, but I'm struggling to get the area. Part.aerodynamicArea is very small for parts in the middle of a vessel (like the fuselage of an aircraft). I've tried using Part.DragCubes.GetCubeAreaDir(Part.DragVector), but it suffers the same problem. I've been trying the same thing for the lift force as well, and I think it may suffer from the same problem, although it wasn't as apparent when testing the mod.

Is there anything I can use to calculate the aerodynamic pressure properly?

Link to comment
Share on other sites

The problem I'm having is that for inline parts, area gets smaller much more quickly than drag, meaning they get disproportionally high pressure compared to other parts.

Look at this: a default Osprey modified with the ramjet engine, in level flight:

Spoiler

qZEsBE9.png?1

(F is force, S is area, DragP/LiftP pressures are simply force divided by area)

The inline Mk1 fuel tank gets far higher drag than other parts, including the Tail Connector acting as the nosecone.

 


Here's how it looks like when pitching down as much as possible:

Spoiler

xku8Jae.png?1

(F is force, S is area, DragP/LiftP pressures are simply force divided by area)

 

Pressure is higher for every part... except for the fuel tank, where it dropped because the area got so much bigger.

 

There's no way this can be right. What is it that I'm doing wrong?

Edited by Rahjital
Link to comment
Share on other sites

The line concerning areaDrag, correct? How would I go about using it? The result do seem more reasonable, but I'm unsure what the number actually means and how to actually use it. Do I use it instead of area, or replace the pressure calculation with it entirely?

Link to comment
Share on other sites

Ended up 'solving' this issue by calculating drag force (and from there, drag pressure) independently for each side of the drag cube, and then using the highest of these values. This gives a fairly decent result, but I'm afraid that it will be a fairly hefty computing load for larger vessels. Any help to resolve this properly would still be very much appreciated!

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...