Circular Loop
We approximate a circular ring as a 40-sided polygon, placed in a close-packed, triangular lattice.
using PSSFSS, Plots
sheet = polyring(s1=[1, 0], s2=[0.5, √3/2], a=[0.25], b=[0.4], sides=40, units=cm, ntri=600)
p1 = plot(sheet, linecolor=:red, unitcell=true)
p2 = plot(sheet, linecolor=:blue, rep=(4,3))
plot(p1, p2, layout = (1,2), size=(800,400))
This page was generated using DemoCards.jl and Literate.jl.