fractaldna.dna_models.dnapositions.triple_overlap_volume

fractaldna.dna_models.dnapositions.triple_overlap_volume(pos1, pos2, pos3, r1, r2, r3)

Calculate volume overlapped by 3 spheres From Gibson and Scheraga (1987)

Note: There are cases where this formula doesn’t work properly, not documented in the paper by Gibson and Scheraga.This corresponds to the case where the center of one circle lies between the line joining the point of intersection of the three cricles, and the line between the center of the two other circles.

This geometry rarely arises for chemical species, but if negative volumes start appearing, or other quantities that seem unlikely, a Monte Carlo integration can be used (provided in this package).