carputils
Doxygen code documentation for the python framework controlling openCARP
Classes | Functions | Variables
carputils.mesh.bivslice Namespace Reference

Classes

class  BiVSlice
 

Functions

def circle_intersections (centre_1, centre_2, radius_1, radius_2)
 i

More...
 

Variables

 xrange = range
 
 p60m60 = linear_fibre_rule(60, -60)
 
 mesh
 
 fibre_rule = p60m60)
 
 faces
 

Function Documentation

◆ circle_intersections()

def carputils.mesh.bivslice.circle_intersections (   centre_1,
  centre_2,
  radius_1,
  radius_2 
)

i


r1 * * * r2

  • *h *
    c1 ************************** c2 a b
    d = a + b
From Pythagoras

r1^2 = a^2 + h^2 r2^2 = b^2 + h^2

Rearranging and combining gives:

a^2 = b^2 + r1^2 - r2^2

Substituting b = d - a gives:

a = (r1^2 - r2^2 + d^2) / 2d

And h is found by:

h^2 = r1**2 - a**2

Variable Documentation

◆ faces

carputils.mesh.bivslice.faces

◆ fibre_rule

carputils.mesh.bivslice.fibre_rule = p60m60)

◆ mesh

carputils.mesh.bivslice.mesh
Initial value:
1 = BiVSlice(25, 30, 10, 5, 5,
2  #tetrahedrise=False,
3  div_rvtrans=3,
4  div_height=3, div_lvtrans=3,#)

◆ p60m60

carputils.mesh.bivslice.p60m60 = linear_fibre_rule(60, -60)

◆ xrange

carputils.mesh.bivslice.xrange = range