Slowly but surely I'm getting there. Thanks for the help so far.
 
I am including an Excel file with the airfoil data, function 
"LinInterpolate" and functions "Floor" and "Ceiling". None of these are my 
own, as I found them on the interweb.
 
I have commented out my attempt at automating the linear interpolation 
process, although I suspect it actually works after all of the above. 
However, I am now getting "error 424: Object required" It seems the arrays 
don't enter "LinInterpolate".

On Monday, 3 March 2014 21:21:45 UTC+2, Rajan Verma wrote:

> Hi 
>
> make your array as "double" data type not "Long"
>
> Thanks
> Rajan.
>
>
>
>
> n Wednesday, 26 February 2014 07:07:45 UTC-7, Gerrit Grundling  wrote:
>
> Greetings, all
>>  
>> I have attached some aerofoil data for a Clark Y foil. This data is also 
>> available in my spread sheet.
>>  
>> The Reynolds number is given in the heading as 
>> 5.00E+04, 1.00E+05, 5.00E+05, 1.00E+06 and 3.00E+06. I need to find Cl and 
>> Cd at an AoA for a Reynolds number:
>>  
>> GetCl(AoA, Re)
>> GetCd(AoA, RE)
>>  
>> Interpolation functions are easy enough to find. 
>> Here<http://www.vbaexpress.com/forum/showthread.php?41522-Linear-Interpolation&p=263514&viewfull=1#post263514>is
>>  one that also includes sorting. But I need to run this over the 
>> "two-dimensional" array that is the aerofoil data. Not all aerofoil AoA's 
>> are the same for the different Re (xfoil was used to obtain this data). 
>> This means that creating an array would have blanks at some AoA's, unless I 
>> interpolate to fill in the gaps.
>>  
>> I was thinking that I might write a code to create an array of cl and cd 
>> for each Re-number at the AoA, but the AoA is not always a neat number. 
>> However, neither is the Reynolds number.
>>  
>> How would you do it? Could you use an interpolation function such as the 
>> one I linked to (not a preference, so I'm impartial)?
>>  
>> Thanks in advance
>>  
>>  
>>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Attachment: AIRFOIL_DATA.xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12

Reply via email to