summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-05-17 16:38:24 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-05-17 16:38:24 -0400
commit1e939e597964fa081b347e40af2be1069867b906 (patch)
tree395de78337d7ed85971fa3e84860ee4f4e5a5956 /lib/include
parent456d748b8cbf141e1fe6e82a7c0106f469e28ba6 (diff)
downloadfuse_networks-1e939e597964fa081b347e40af2be1069867b906.tar.gz
fuse_networks-1e939e597964fa081b347e40af2be1069867b906.tar.bz2
fuse_networks-1e939e597964fa081b347e40af2be1069867b906.zip
added support for running percolation using the fuse network rules
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/network.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/include/network.hpp b/lib/include/network.hpp
index dd11342..15cb8ea 100644
--- a/lib/include/network.hpp
+++ b/lib/include/network.hpp
@@ -82,3 +82,18 @@ class elastic_network : public network {
current_info get_current_info() override;
};
+class percolation_network : public network {
+ private:
+ double weight;
+ public:
+ problem hook_x;
+ problem hook_y;
+
+ percolation_network(const graph&, cholmod_common*);
+ percolation_network(const percolation_network&);
+
+ void fracture(hooks&, double weight = 0.5, double cutoff = 1e-10);
+ void break_edge(unsigned, bool unbreak = false) override;
+ current_info get_current_info() override;
+};
+