Free YouTube views likes and subscribers? Easily!
Get Free YouTube Subscribers, Views and Likes

Tutorial: Creating Propeller CAD Models using Matlab OpenProp and Solidworks

Follow
Alan Burggren

I demonstrate how to use the propeller design tool "OpenProp" and then use it's builtin output tools to generate a point cloud which can be imported into solidworks.

http://engineering.dartmouth.edu/open...
https://www.mathworks.com/store?s_tid...
https://www.solidworks.com/howtobuy

Links to files:
https://drive.google.com/drive/folder...

Reminder of changes:
Change "Make_SWrks_flag" to a 1 in geometry.m
Update Export_Solidworks_V18 to create individual files for each section curve and project the curve in the z axis to a plane. Comment out or delete everything in the file and replace with the following:

function [] = Export_SolidWorks_v18(filename_SolidWorks,Np,Mp,Z,X3D,Y3D,Z3D)

clockwise = 1; %change to zero for counterclockwise rotation facing front
english =1; %1 for in. 0 for meters

filename_length = size(filename_SolidWorks,2); %takes in name of propeller run (from bottom right of GUI)
foldername = filename_SolidWorks(1:filename_length4); %designates a folder name
mkdir(foldername); %creates the folder for the files
cd(foldername); %enters the folder

%section curves
for k = 1:Mp %loops through the (20 default) radial pannels, creating a section curve xyz file for each
filename_SolidWorks_improved = strcat('SectionCurve',num2str(k),'.txt'); %makes a file name
fid = fopen(filename_SolidWorks_improved,'wt'); %opens the file


for j = [1:Np,Np+2:2*Np1,1] % (2*Np1 points) does not double print the leading edge
if (english)
if (clockwise)
fprintf(fid,'%f,%f,%f,\n',X3D(k,j,1)*39.3700787,Y3D(k,j,1)*39.3700787,Z3D(k,1,1)*39.3700787);
else
fprintf(fid,'%f,%f,%f,\n',X3D(k,j,1)*39.3700787,Y3D(k,j,1)*39.3700787,Z3D(k,1,1)*39.3700787);
end
else
if (clockwise)
fprintf(fid,'%f,%f,%f,\n',X3D(k,j,1),Y3D(k,j,1),Z3D(k,1,1));
else
fprintf(fid,'%f,%f,%f,\n',X3D(k,j,1),Y3D(k,j,1)*1,Z3D(k,1,1));
end
end
%(k,1,1) is used for z to project all points onto same plane,
%repeating the original z coordinate. 39 is used as the conversion
%from meters (default for openprop) to inches (default for american
%solidworks). If statement included using clockwsise flag above for
%to change rotation direction. If statement also included to change
%between metric and english
end

fclose(fid); %closes each file

end

cd ../ %exits out of the folder when finished

end

posted by nabrojimoe9