The MATLAB source code is for designing springs under static pressure load. User choose spring wire material, wire diameter range and load properties. And then by running the code, spring diameter, spring index, effective turns, critical length and pitch will be determined. The code also supports spreadsheet output.
Download SpringDesigning.m
1 KB MATLAB 2008 MFile
Tuesday, June 28, 2011
Saturday, April 9, 2011
TomyadAuto® Subliminal Concept
Saturday, February 5, 2011
Wednesday, December 22, 2010
MATLAB Project
Here is the source of Drawing N Cubes function, written in MATLAB 2008. Enjoy the code and try to optimize it.
function lego(w,r,n)
%%clf
s=0;
for i=1:n
s=s+w/2;
cubeplot(0,0,s,w)
s=s+w/2;
w=w*r;
end
view(45,30)
%%
function cubeplot(a,b,c,l)
hold on
[x,y,z] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+b,(l/2)+b],l/2+c);
surf(x,y,z)
[x,y,z] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+b,(l/2)+b],-(l/2)+c);
surf(x,y,z)
[z,y,x] = meshgrid([-(l/2)+c,(l/2)+c],[-(l/2)+b,(l/2)+b],l/2+a);
surf(x,y,z)
[z,y,x] = meshgrid([-(l/2)+c,(l/2)+c],[-(l/2)+b,(l/2)+b],-(l/2)+a);
surf(x,y,z)
[x,z,y] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+c,(l/2)+c],l/2+b);
surf(x,y,z)
[x,z,y] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+c,(l/2)+c],-(l/2)+b);
surf(x,y,z)
end
end
Saturday, September 18, 2010
TJ Notepad
Friday, September 10, 2010
TomyadAuto® Fedora Concept
Tuesday, August 24, 2010
Using SolidWorks to design an hourglass
Designing an hourglass by Solidworks is so easy:
- Create a 2D Sketch on Front-plane.
- Start drawing a glass profile on the plane.
- Use Revolve Extrude to create a glass.
- Then make a new 2D Sketch on Top-plane for drawing a lid.
- Draw a circle on the Top-plane Sketch.
- Create the lid via Extruding the circle.
- After that use Mirror feature to make the copy the body in other side.
- Now you can create a support.
- To have three supports, use Circular pattern.
- Finally filleting edges.
Subscribe to:
Posts (Atom)