Sunday, June 29, 2014

VTOL, Vertical Takeoff, Flying Wing

Today I scrapped together some of my old parts to see if I could make something new, the result was this. The airframe is made of some scrap materials and it does not have a real airfoil. The powertrain comes from two brushless motors and accompanying speed controllers from an old scrapped 450 size quadcopter. The flight controller is an extremely cheap NanoWii MultiWii controller configured as a bicopter. I had serious doubts that it would even get off the ground but after a failed attempt with a two cell battery. I slapped a three cell on the plane, the result is below:

There is still a long way to go before this can be called successfull VTOL concept, but it would be really interesting to see how far it is possible to push this hybrid flying wing design.

Stay tuned!

Wednesday, January 29, 2014

Example Smoothed-particle hydrodynamics with C and OpenMP

I am interested in ways of approximating differential equations numerically. Yeasterday I read up on the basics of Smoothed-Particle Hydrodynamics, or SPH for short. It is a way of approximating a PDE using a finite set of particles that represent a quantity, eg. a fluid. To read more about the basics of the method take a look at this PDF.

The algorithm was first prototyped is Octave (Matlab) and found to slow. Then I coded a native C version with SDL graphics and OpenMP to speed up some of the calculations, it worked pretty well. The code is available at my GitHub. A video showing the live rendering is embedded below.

As the video shows the liquid is extremely pressure driven and thus does not represent incompressible liquids, like water. The physical correctness of this simulation as a whole has to be taken with a grain of salt because of the extremely simple implementation. But it serves as a very visual way of communicating how the method works and what strengths/weaknesses it has.
One nice property is that the method conserves mass.