spanning_probability Function

public function spanning_probability(p, L, num_samples)

Calculate the probability of having a spanning/percolating cluster, given a system size L and probability for a site to have transport p.

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: p

Probability for a site to allow transport.

integer, intent(in) :: L

Size of the system.

integer, intent(in) :: num_samples

Number of Monte Carlo samples.

Return Value real(kind=dp)

The probability of having a percolating cluster, calculated as the number of times a percolating cluster is found, divided by the number of attempts (num_samples).


Called by

proc~~spanning_probability~~CalledByGraph proc~spanning_probability spanning_probability proc~spanning_probability_inverse spanning_probability_inverse proc~spanning_probability_inverse->proc~spanning_probability

Contents

None