Group Abstract Group Abstract

Message Boards Message Boards

Abelian Sandpile Model Simulation with C++ and LTemplate

Posted 5 years ago
Attachments:
POSTED BY: Shenghui Yang
5 Replies

Thanks so much for the demonstration Shengui!

Best regards, Eleazar

Nice to see LTemplate in action :-)

You can also use

ImageCrop@Colorize[
  sp@"CreateSandpile"[100000],
  ColorRules -> {0 -> Black, 1 -> Magenta, 2 -> Red, 3 -> Blue}
 ]

Since LTemplate works with classes/objects, one could store the state in the object, then have more member functions: one to propagate the model, one to retrieve the current state, and one to reset the state and choose N_size

POSTED BY: Szabolcs Horvát

Of course. Your package is great and I just scratch the surface in the demo. I am working on a more comprehensive version from here with better OOP design. I learned many useful things from the documentations and tutorial examples coming with your package.

POSTED BY: Shenghui Yang

Very nice! I don't fully understand how your code works, but the images are impressive! Keep up the good work!

POSTED BY: Sander Huisman

enter image description here -- you have earned Featured Contributor Badge enter image description here

Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard