#include #include #include #include #include #include #include #include #include #include "analysis_tools.hpp" class ma : public hooks { // need: // - interface for turning on and off specific measurements // private: unsigned Mx; unsigned My; unsigned num; // measurement storage std::vector sn; // non-spanning cluster size distribution std::vector ss; // minimal spanning cluster size distribution std::vector sm; // spanning cluster size distribution std::vector sl; // final avalanche size distribution std::vector sb; // final avalanche size distribution std::vector sd; // final avalanche size distribution std::vector sa; // non-final avalanche size distribution std::vector sA; // non-final avalanche size distribution std::vector si; std::vector sI; std::vector cn; std::vector cs; std::vector cm; std::vector cl; std::vector cb; std::vector ca; std::vector cA; std::vector cp; std::vector cq; public: long double lv; std::list> avalanches; std::list last_avalanche; std::string model_string; ma(unsigned Lx, unsigned Ly, double beta, double w); ma(unsigned n, double a, double beta, double w); ~ma(); void pre_fracture(const network &) override; void bond_broken(const network& net, const current_info& cur, unsigned i) override; void post_fracture(network &n) override; };