Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Tuesday, September 22, 2009

165: lecture notes

Notes on Physics 156

Just finished the Optics Defense... off to the programming lectures in the new NIP

1. check if the software development is still active... unless you are willing to continue the development. :)


2. sparse matrix, matrix na kakaunti ang laman, iba ang handling compared to your other arrays. STORAGE.

3. dense matrices

4. cells, finer cells = mas maraming malalaman about the cell.

5. for the finite element method, the mesh must be clearly defined

6. frontal crash test, mesh must be finer around the impact. data is much more important around the hood

7. iterators

8. 16x16 mesh, mabilis mag scale-up ang complexity ng partial differential equations

9. mahirap na part ang pag-gawa ng mesh

Tuesday, September 8, 2009

random walking part 1


It's a very wet and cold day here in Quezon City, and what better way to spend the afternoon than catching up with unfinished programs for the Physics 156 class.

Last friday, I started with the ray tracer for the Optics
class (to be posted when its done). The program is supposed to solve for the system matrix of a given set of interfaces and media and the principal planes of the system. Rays should be allowed to launch from a user-defined position, height and angle from the principal axis and interfaces. The path of the rays should then be traced as it is transmitted and refracted.

Another programming task is animating random walkers. Aargh. This one is long overdue, but I managed to start with a simple single random walker with varying number of steps.


Here is a random walker making 500 steps.

...and another one