MoI discussion forum
MoI discussion forum

Full Version: Anyone wish to develop a custom script?

Show messages:  1-9  …  130-149  150-169  170-189  190-209  210-223

From: Karsten (KMRQUS)
16 Feb 2019   [#190] In reply to [#189]
Hello Anthony,

Thank you very much!
I got it. I will try to correct the positioning of the profiles tomorrow.

Karsten
From: Anthony (PROP_DESIGN)
16 Feb 2019   [#191] In reply to [#190]
yw karsten. i'm concerned I created an issue with certain chord distribution options. the sweep should really be defined at the aerodynamic center for all chord distribution options. I was surprised to see that wasn't the case on the a400m. I suspect options 3-5 are messed up. I'm not entirely sure how to fix that right now. hopefully this won't mess you up too much. if I have to make a code change then I also have to make new input files etc... so the example geometry may change slightly. I have to figure out what's going wrong first. seems like I fixed some things only to break others. i'm really glad you brought this to my attention. for now stick to options 1 and 2 and you should be fine to use the total sweep angles output by the code.
From: Karsten (KMRQUS)
17 Feb 2019   [#192]
@Barry,

It seems something is wrong with the email system. I'm not sure if this is what you looking for. Please replace the links for the csv files and adjust the extrusions.

Have a nice day
Karsten

Attachments:
AirfoilXX2.nod


From: Anthony (PROP_DESIGN)
17 Feb 2019   [#193]
hi karsten,

I finally made some progress understanding that bug. I think ultimately nothing is going to change as far as for you. I just need to make some changes so the analysis is correct. Unfortunately, understanding the angles is pretty difficult. More so than I thought. I will have to make some pictures and things to try and explain it for the documentation. But basically the total sweep angle is measured in the top view (x-y). It would be about the local z axis of each cross section. In the videos I was saying the global z axis but that's not the case. So if you are using the total sweep angles from the file that is how to use them. I will have a new version of PROP_DESIGN out at some point but I don't think it will change much from what you are seeing and dealing with.

although on second thought. I can now compute the total sweep angle at the aerodynamic center. so I can output it as well. that may fix the whole mess of different reference points. In that case, you could measure everything from the ac. which is how it's supposed to be. i'll see about doing that. not sure what will happen. but i'll get back with you.
From: Anthony (PROP_DESIGN)
18 Feb 2019   [#194]
hi karsten,

I got the bug fixed. you can now use the angle of attack and total sweep angle files at the aerodynamic center, as was always intended. I checked them out using the a400m model you asked about. there is an updated version of prop design on my website. download that. all the input files were updated as well. so re-run the a400m example. I posted the file I talk about in the screencasts. the links to the updated answer to your question are here:

rhino 5 3dm file for the a400m example; edit - this file was replaced with a more detailed version. the link is in a later post.

screencast part 1; https://youtu.be/lJ7FFXkQr9c

screencast part 2; https://youtu.be/mQMdhpCeoZA

screencast part 3; https://youtu.be/Ns2GiYCnL80

I deleted all the old files and screencasts that I posted in previous forum messages. let me know if you have any more questions.
From: Karsten (KMRQUS)
19 Feb 2019   [#195] In reply to [#194]
Hello Anthony,

I had some problems with flipping coordinate systems for clockwise and counterclockwise rotation. I think that I solved it now, but I have to download and compile your updated software. What I saw while testing the script for A400M and Predator example, is that the Profile A is on top for A400M and on the bottom for Predator. For a symmetric profile no problem. Do you use also asymmetric profiles in your software or am I generally wrong? Problem with my script or my interpretation of the data? I don't know.

Do you have the possibility to test the node scripts already?

Have a nice day
Karsten
From: Anthony (PROP_DESIGN)
19 Feb 2019   [#196] In reply to [#195]
hi karsten,

yes the airfoil is symmetric. I believe you are right that a and b will switch depending on the blade. that isn't something that affects me but if it is messing you up, let me know. I know in the code there are four outcomes that I had to program. clockwise, counter-clockwise, swept forward, and swept back. so you may run into that as well. I don't have moi yet. I was waiting for v4 to come out, to try and make the switch easier. I don't know anything about the node editor or all of max's custom scripts. I have been reading the forum for years though. so I kind of know what all has been going on. but I haven't used any of it. I'm sure i'll have lots of questions once I get started.
From: Karsten (KMRQUS)
19 Feb 2019   [#197] In reply to [#196]
Hello Anthony,

if the profiles always symmetric - there is no Problem. I use only the rails, span and profiles in the script.

>>>> I'm sure i'll have lots of questions once I get started.

I think that's a forum is made for.

Have a nice day
Karsten
From: Barry-H
25 Feb 2019   [#198] In reply to [#196]
Hi Anthony,
can you take a look at the attached curves that I produced with the node editor to see if they are what you require.
At the moment I produced the 2 sets with different nod files with the node editor but will see if I can incorporate both into one nod file.

Anyway hope this helps.
Barry



Image Attachments:
Screenshot (326).png 


From: Anthony (PROP_DESIGN)
25 Feb 2019   [#199] In reply to [#198]
hi barry,

thanks for continuing to work on this. i will take a look. i downloaded the file and right away noticed something odd. the second airfoil from the origin seems rotated 90deg out of phase to the rest of the airfoils. i'll continue to look at the file though. the rest seem like they could be right.
From: Anthony (PROP_DESIGN)
25 Feb 2019   [#200] In reply to [#198]
hi barry,

the swept fan blade appears to be more inline with the needed outcome. it will take me some time to do exact comparisons. but i could do a two rail sweep on the geometry you provided and the airfoils visually seem like what you would want. the a400m blade though has some problems. the second airfoil in is about 90degs from the others. but none of the airfoils seem to have their sweep value. when i try a 2 rail sweep the blade is wavy at the tip and the surface is very heavy. it's really slow in rhino. it seems like the airfoil curves might have too much definition if that makes sense. i didn't seem to have that issue with the swept fan blade you provided. but i will work on my manual models so i can do more of a comparison for you. but it seems like you are getting close. i can visually see you have them onto cylinders which is great. and you have two kinds of profiles which is really useful too.

here is a link to the updated a400m model. there is tons of info in there you can use to compare to. i manually created everything in the file. when doing the 2 rail sweep i ignore two of the profiles that deviate a lot from the curve fit rails. this is to smooth out the wavyness. this is kind of a bad example to use for comparisons. but since you picked it, i went ahead and detailed the model the best i could. i will work on the swept fan blade next. that one is a better test case.
From: Barry-H
25 Feb 2019   [#201] In reply to [#200]
Hi Anthony,
your right the Airfoil profile was reversed I have corrected it.
The kink 4th foil from tip the curve is not a thro points curve in that area and doesn't match the airfoil profile tip.
I think you showed that issue in one of your screen casts.
If you have another example I can trial that would be helpful.
Cheers
Barry
From: Anthony (PROP_DESIGN)
25 Feb 2019   [#202] In reply to [#201]
hi barry,

i think we posted at the same time. see the post above this one with my reply. also, i updated the swept fan blade. you asked about this earlier, but i didn't have it completed at the time. this should help with comparisons as well. all the info to compare to should be there now. everything was manually created. there is a bit of extra info you probably don't need in there. i had also did fea on the model to check some other things with PROP_DESIGN. everything wrt PROP_DESIGN seems to look alright the best i can tell.

so this model and the one from the previous post are what i would use to compare to. i will import your geometry into the files and see how it looks.

update 1; so it looks like maybe we aren't using the same input files for the swept fan blade. your geo doesn't match up with mine. on the a400m the sweep seems to be missing on your geo. but you are getting close.

update 2; doing this comparison on the a400m blade shows there still may be an issue with PROP_DESIGN. chord distribution options 3-5 seem like they are causing some blade sweep when measured at the quarter chord. i thought i fixed this but even the non-swept stations look like they may get some sweep just due to how the geometry is constructed. i will have to look into this some more.
From: Anthony (PROP_DESIGN)
25 Feb 2019   [#203]
i just updated the link to the a400m file. prop design has been updated as well. i made another attempt at fixing the bug related to chord distribution options 3-5.

i don't know if it's possible for you to do, but if you could script the addition of dimensions for the radius, twist, and sweep angles, that would make checking your files a lot easier. you could then check them against the xyz output files. but you should now have everything you need to check the automatically created files for the a400m example and the swept computer case fan example.

i haven't checked my fix for chord distribution options 3 and 5 yet. hopefully it works ok without more bug fixes. i will look into that next. but it shouldn't affect the two cases you are running now.

update; I finished checking cds 3 and 5. found no issues. so hopefully all the bugs are fixed now. this bug was the same as the last one. all i did to fix it this time was apply the previous fix for any sweep angle. before i applied it only for sweep angles greater than zero. i hadn't realized that when you define zero it gets changed for cds 3-5.
From: Barry-H
27 Feb 2019   [#204] In reply to [#203]
Hi Anthony,
attached latest results of the test fan model and the A400M.
On the A400M I used the point files to generate the Span , A & B curves as these had no modification in the tip area.
The result seems to reduce the kink at the tip end also I tried the network command using the Foils plus A & B curves this again seems to give a smooth result.
I have used the cord distance between the span curve point & B curve point as my scaling factor is this correct ?
Let me know if there any problems with the attached files.

Barry

Attachments:
Test Curves.zip


From: Anthony (PROP_DESIGN)
27 Feb 2019   [#205] In reply to [#204]
hi barry,

the swept fan blade seems to overlay to my manual geometry exactly, the best i can tell. i think on your a400m you have the old xyz points. i did a bug fix after the last geometry you sent me. i found i still hadn't fixed that bug correctly. i believe i have it fixed now. if you could use the new xyz points, then i'd be able to compare better. but visually just looking at what you sent it looks good. i suspect you have it working, but can't say for sure.

if i understand your question about scaling, yes i think that's right. for the a400m blade i have to orient the original profile. then do a separate 2d scale. i set the c-plane to the profile in question then scale it using the span point as the center and the leading edge rail point as the reference size.

i'll look into network. i have never really messed with that command before. i have just been 2 rail sweep or loft up until now.

there is a new version of prop design if you haven't gotten it yet. it has the updated bug fix. it's the same fix as before i just apply it even when no sweep is specified. it seems cds 3-5 end up with some sweep even for the straight blades. it's a result of the span moving off of the x-y plane. i hadn't noticed it before, until i was doing the comparison for you. so i'm glad you helped me find it. it affects the performance computations, so it's something i have to account for.

update; i tried the network command i got weird results with your a400m geometry, so i tried mine. on my geometry it worked a lot better. so i then tried 2 rail sweep. again with your geo on got weird results. so there may be something going on with your profiles or rails. i'm not entirely sure.

on the fan blade network worked the same with both are files. so the issue seems to be just with your a400m file. on closer inspection though, the network command severely distorts the profiles. so that doesn't seem to be a viable option. if you look at the surface compared to the profiles they are drastically different. i would stick with 2 rail sweep with multiple profiles or loft.
From: Barry-H
27 Feb 2019   [#206] In reply to [#205]
Hi Anthony,
I used the a400m updated file you posted for Karsten is there a later version in the new Prop Designer ?
Re the scaling factor I used the distance from Span to B curve points for my calculations and if I understand you use Span to A (leading edge) curve points I will check what difference that might make.
Regards the network option see attached photo and just to be sure I only use the A & B curves plus the airfiol profiles the span curve is not used.
Barry


Image Attachments:
Screenshot (114).png 


From: Anthony (PROP_DESIGN)
27 Feb 2019   [#207] In reply to [#206]
hi barry,

sorry to cause you trouble. i updated the link to the a400m files a few days ago. if you download it again you should be good. i tried not using the span before i posted before but rhino wouldn't do it. perhaps moi is better in this regard. i will play with the network command some more and see if i can get what you are showing.

technically you probably could use either rail to scale the profiles. however, i trimmed the trailing edge on my model. so that voids the trailing edge rail. i would have to make a new rail based off the shorter profile, if i wanted to scale off the te rail. so it's not really worth the extra trouble, when i can just use the le rail instead.

update; yeah rhino says it needs 3 or more open curves to do a network surface. so perhaps moi is better there
From: Anthony (PROP_DESIGN)
28 Feb 2019   [#208]
hey barry,

i was trying to make a different blade for the a400m, so that the kink would no longer be there. i wanted to make a straight blade with airfoil sweep. as i started to work on that, i noticed something seems broke with prop design opt. i need to look into what's run. once i get that fixed i think the blade you are working with will change again. it was made using the broken version of opt. so it's not sized to the inputs specified. i'll get back with you when i get this fixed.
From: Karsten (KMRQUS)
28 Feb 2019   [#209] In reply to [#208]
Hello Anthony,

while my experiments I saw that for some examples with an outdated Version of your Software where the number of Points for Span and the rails differ. 19 for A, 18 for the span and 17 for B.

Is this correct?

Have a nice day

Show messages:  1-9  …  130-149  150-169  170-189  190-209  210-223