A tool for JSBsim Airfoil Modelling

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: A tool for JSBsim Flight Modelling

Postby IAHM-COL » Tue Jun 09, 2020 7:13 pm

With that parenthesis above being done

I'll tell you my design idea, if I understand the first problem we will tackle correctly

We have a wing. And this wing has airfoil shape definitions (the transversal sections). One or more at different locations within 0 (the root==Required) and 1 (the tip)
[ie we could use additional specifications like lets say, introduce one airfoil shape at 0.3, so it knows where to define the airfoil shape (30% from the root towards the tip]. And we could add as many as wanted.

The task of the program is to take these shape definitions in, then output segments desired, assuming lineal extrapolates of the forms through any specified segment. We could say, do something like

Code: Select all

airfoil.segment(0,0.25,0.5,0.75,1);


Such that the output of the segment function will then create the extrapolates at every quarter of the wing length.

I think that is doable.

Your concern of different points on the wing airfoil spec is valid. This is how I would propose to solve it

  • Redefine airfoils by splitting the airfoil data on upper and lower boundaries of the shapes. Such that each of these frontiers is a riemann integrable function
  • Using a spline function to smooth the data introduced on each lower and upper (which should be doable as (1) above is true
  • Define a series of common points across (0->1), and using the spline determine the location on the airfoil boundaries
  • for each cartesian obtained above, assuming lineal decay, determine the location of the point on the following requested segment using the following defined airfoil. (if not defined) then assume it's the same as current
  • output all boundaries determined
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: A tool for JSBsim Flight Modelling

Postby IAHM-COL » Tue Jun 09, 2020 7:16 pm

bomber wrote:Javafoil is designed to model airplane airfoils....


Cant' find it s source code thou. With the source code, maybe we could reimplement it from scratch.

in other words, we would need to know what are the underlying calculations.
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: A tool for JSBsim Flight Modelling

Postby IAHM-COL » Tue Jun 09, 2020 7:40 pm

ok
maybe we are up to something with xfoil
https://pypi.org/project/xfoil/

Which is GPLed already

We might be able to get the airfoils processed and then xfoiled to get the polars
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: A tool for JSBsim Flight Modelling

Postby bomber » Tue Jun 09, 2020 7:44 pm

I suspect all the ducks won't be lined up on day one.... I think that's just the nature of this task.

It might be clunky to start with.... it might require knifing and forking data from one tool into another, simply to get the end to end process understood and then got back and refine modules.

I don't find it onerous to copy and paste data from one tools output into another tools input.... as long as the data's in the correct format from the output to the input, it's where you have to muck about with it that it gets to be a pain.

Simon
Last edited by bomber on Tue Jun 09, 2020 7:46 pm, edited 3 times in total.
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: A tool for JSBsim Flight Modelling

Postby bomber » Tue Jun 09, 2020 7:45 pm

yeh xfoils an alternative....
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: A tool for JSBsim Flight Modelling

Postby bomber » Fri Jun 12, 2020 3:26 pm

As I said earlier this can be done via the use of other 3d and 2d modeling tools, and a bit of knife and forking.

And I'd forgotten to say I'd already done it for this wing, as it's the Ask13's.

But if you're interested still in solving this using an alternative method, you can have the results I got for comparison if you want ?

Simon
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: A tool for JSBsim Flight Modelling

Postby IAHM-COL » Fri Jun 12, 2020 11:28 pm

@Bomber
It makes sense to benchmark my method with your outputs, too
Off course!

:_]

IH-COL
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: A tool for JSBsim Flight Modelling

Postby bomber » Sat Jun 13, 2020 3:21 pm

"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: A tool for JSBsim Flight Modelling

Postby IAHM-COL » Wed Jun 17, 2020 9:50 pm

@Bomber

A Teaser

I think I got somewhere

This video shows the progression of the G535 wing shape as it moves on the span from chord to tip:

VIDEO
DOWNLOAD VIDEO

My output is pushed here,

Can you verify it this is making some sense?
(the csv files are from 1 to 10 given 1 chord -> 10 tip)

IH-COL
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: A tool for JSBsim Flight Modelling

Postby bomber » Thu Jun 18, 2020 8:21 am

this is spot on...

I did a comparison on the output of javafoil of both your polars and the original for the root section... 1

https://drive.google.com/file/d/14kz_Pm ... sp=sharing

the red line is the original the green is yours... the extra polars in yours smooths out the graph, and gives more details negative AoA results

I like it

Simon
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell


Return to “JSBsim”

Who is online

Users browsing this forum: No registered users and 43 guests