cpadavis / weak_sauce

weak pixel area distortions
2 stars 0 forks source link

create __add__ methods for sources and movers #8

Closed cpadavis closed 9 years ago

cpadavis commented 9 years ago

I noticed this when making a bigger pixel grid. I should be able to make e.g. multiple treering patterns at different locations using movers and just add the objects together (ie mover = mover_ring1 + mover_ring2; mover(source) should work)

cpadavis commented 9 years ago

decided not to add a add method for sources since then you have to deal with the question of what to do with different vertices. The solution is probably to put all the vertices in and then calculate the fluxes in each vertex using the deposit method, but that is a bit more work than I think is worth doing