|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Generate a simple bi-ventricular slice geometry, providing a few parameters. More...
Classes | |
| class | BiVSlice |
Functions | |
| def | circle_intersections (centre_1, centre_2, radius_1, radius_2) |
| i | |
Variables | |
| xrange = range | |
| p60m60 = linear_fibre_rule(60, -60) | |
| mesh | |
| fibre_rule = p60m60) | |
| faces | |
Generate a simple bi-ventricular slice geometry, providing a few parameters.
| def carputils.mesh.bivslice.circle_intersections | ( | centre_1, | |
| centre_2, | |||
| radius_1, | |||
| radius_2 | |||
| ) |
i
r1 * * * r2
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
| carputils.mesh.bivslice.faces |
| carputils.mesh.bivslice.fibre_rule = p60m60) |
| carputils.mesh.bivslice.mesh |
| carputils.mesh.bivslice.p60m60 = linear_fibre_rule(60, -60) |
| carputils.mesh.bivslice.xrange = range |
1.8.13