koeficientai

This commit is contained in:
Motiejus Jakštys 2019-11-28 22:34:47 +02:00
parent 5c610d6609
commit 2111a2e217
3 changed files with 53 additions and 20 deletions

View File

@ -19,7 +19,7 @@ Plotis L1 (duotas)
Visas kelio A-03 plotis Visas kelio A-03 plotis
%.3f""" % L1 + """ %.3f""" % L1 + """
Koeficientas L1 plocio atidejimui (+/-0.001) Koeficientas L1 plocio atidejimui (+/-0.001)
******* +1.0
=== Kelias A-05 === === Kelias A-05 ===
Plotis L2 (duotas) Plotis L2 (duotas)
%.3f""" % L2 + """ %.3f""" % L2 + """
@ -28,9 +28,9 @@ Plotis L3 (duotas)
Visas kelio A-05 plotis Visas kelio A-05 plotis
%.3f""" % A05_plotis + """ %.3f""" % A05_plotis + """
Koeficientas L2 plocio atidejimui (+/-0.001) Koeficientas L2 plocio atidejimui (+/-0.001)
******* %+.3f""" % (-L2/(L2+L3)) + """
Koeficientas L3 plocio atidejimui (+/-0.001) Koeficientas L3 plocio atidejimui (+/-0.001)
******* %+.3f""" % (L3/(L2+L3)) + """
=== Kelias A-08 === === Kelias A-08 ===
Plotis L4 (duotas) Plotis L4 (duotas)
%.3f""" % L3 + """ %.3f""" % L3 + """
@ -47,17 +47,17 @@ Plotis L9 (duotas)
Visas kelio A-08 plotis Visas kelio A-08 plotis
%.3f""" % A08_plotis + """ %.3f""" % A08_plotis + """
Koeficientas L4 plocio atidejimui (+/-0.001) Koeficientas L4 plocio atidejimui (+/-0.001)
******* %+.3f""" % (-L4/(L4+L5+L6+L7+L8+L9)) + """
Koeficientas L5 plocio atidejimui (+/-0.001) Koeficientas L5 plocio atidejimui (+/-0.001)
******* %+.3f""" % (-L5/(L4+L5+L6+L7+L8+L9)) + """
Koeficientas L6 plocio atidejimui (+/-0.001) Koeficientas L6 plocio atidejimui (+/-0.001)
******* %+.3f""" % (-L6/(L4+L5+L6+L7+L8+L9)) + """
Koeficientas L7 plocio atidejimui (+/-0.001) Koeficientas L7 plocio atidejimui (+/-0.001)
******* %+.3f""" % (L7/(L4+L5+L6+L7+L8+L9)) + """
Koeficientas L8 plocio atidejimui (+/-0.001) Koeficientas L8 plocio atidejimui (+/-0.001)
******* %+.3f""" % (L8/(L4+L5+L6+L7+L8+L9)) + """
Koeficientas L9 plocio atidejimui (+/-0.001) Koeficientas L9 plocio atidejimui (+/-0.001)
******* %+.3f""" % (L9/(L4+L5+L6+L7+L8+L9)) + """
=== Griovys G-11 === === Griovys G-11 ===
Plotis L10 (duotas) Plotis L10 (duotas)
%.3f""" % L10 + """ %.3f""" % L10 + """
@ -70,13 +70,13 @@ Plotis L13 (duotas)
Visas griovio G-11 plotis Visas griovio G-11 plotis
%.3f""" % G11_plotis + """ %.3f""" % G11_plotis + """
Koeficientas L10 plocio atidejimui (+/-0.001) Koeficientas L10 plocio atidejimui (+/-0.001)
******* %+.3f""" % (-L10/(L10+L11+L12+L13)) + """
Koeficientas L11 plocio atidejimui (+/-0.001) Koeficientas L11 plocio atidejimui (+/-0.001)
******* %+.3f""" % (-L11/(L10+L11+L12+L13)) + """
Koeficientas L12 plocio atidejimui (+/-0.001) Koeficientas L12 plocio atidejimui (+/-0.001)
******* %+.3f""" % (L12/(L10+L11+L12+L13)) + """
Koeficientas L13 plocio atidejimui (+/-0.001) Koeficientas L13 plocio atidejimui (+/-0.001)
******* %+.3f""" % (L13/(L10+L11+L12+L13)) + """
=== Apskaiciuoti keliu ir grioviu plociai BRAIZYMUI (0.001 tikslumu) === === Apskaiciuoti keliu ir grioviu plociai BRAIZYMUI (0.001 tikslumu) ===
Kelio A-03 plotis Kelio A-03 plotis
%.3f""" % KA03_plotis + """ %.3f""" % KA03_plotis + """

View File

@ -6,11 +6,35 @@ from measure import *
fig, ax = plt.subplots() fig, ax = plt.subplots()
KA03_l = LineString([Points[i].xy for i in [11,12,13,14,15,16,17,18] ]) KA08_l = LineString([Points[i].xy for i in [1,2,3] ])
KA03_offset = KA03_l.parallel_offset(KA03_plotis, 'right', join_style=2) KA08_Lwidth = (L7+L8+L9)/A08_plotis
KA08_Rwidth = (L6+L5+L4)/A08_plotis
ax.plot(*(KA03_l.xy), linewidth=1) KA08_offsetR1 = KA08_l.parallel_offset(L6, 'right', join_style=2)
ax.plot(*(KA03_offset.xy), linewidth=1, dashes=[5,5]) KA08_offsetR2 = KA08_l.parallel_offset(L6+L5, 'right', join_style=2)
KA08_offsetR3 = KA08_l.parallel_offset(L6+L5+L4, 'right', join_style=2)
KA08_offsetL1 = KA08_l.parallel_offset(L7, 'left', join_style=2)
KA08_offsetL2 = KA08_l.parallel_offset(L7+L8, 'left', join_style=2)
KA08_offsetL3 = KA08_l.parallel_offset(L7+L8+L9, 'left', join_style=2)
ax.plot(*KA08_l.xy, dashes=[5,5], zorder=KAT3)
ax.plot(*KA08_offsetR1.xy, zorder=KAT1)
ax.plot(*KA08_offsetR2.xy, dashes=[5,5], zorder=KAT1)
ax.plot(*KA08_offsetR3.xy, dashes=[5,5], zorder=KAT1)
ax.plot(*KA08_offsetL1.xy, zorder=KAT1)
ax.plot(*KA08_offsetL2.xy, dashes=[5,5], zorder=KAT1)
ax.plot(*KA08_offsetL3.xy, dashes=[5,5], zorder=KAT1)
KA03_l = LineString([Points[i].xy for i in [11,12,13,14,15,16,17,18] ])
KA03_offsetR = KA03_l.parallel_offset(KA03_plotis, 'right', join_style=2)
ax.plot(*KA03_l.xy, zorder=KAT3)
ax.plot(*KA03_offsetR.xy, dashes=[5,5], zorder=KAT3)
KA05_l = LineString([Points[i].xy for i in [4,5,6,7,8,9,10] ])
KA05_offsetL = KA05_l.parallel_offset(L2, 'left', join_style=2)
KA05_offsetR = KA05_l.parallel_offset(L3, 'right', join_style=2)
ax.plot(*KA05_l.xy, zorder=KAT2)
ax.plot(*KA05_offsetL.xy, dashes=[5,5], zorder=KAT2)
ax.plot(*KA05_offsetR.xy, dashes=[5,5], zorder=KAT2)
ax.set_title('Užliejamų plotų brėžinys') ax.set_title('Užliejamų plotų brėžinys')

View File

@ -39,6 +39,9 @@ class Vertex:
"""xy returns a tuple of lksx and lksy coordinates""" """xy returns a tuple of lksx and lksy coordinates"""
return (self.coords.lksx, self.coords.lksy) return (self.coords.lksx, self.coords.lksy)
# Kategorijos
KAT1, KAT2, KAT3, KAT4 = range(4,0,-1)
A = Dec('6.094') A = Dec('6.094')
B = Dec('-2.923') B = Dec('-2.923')
C = Dec('-13.462') C = Dec('-13.462')
@ -61,9 +64,15 @@ L11 = Dec('3.305')
L12 = Dec('2.210') L12 = Dec('2.210')
L13 = Dec('4.381') L13 = Dec('4.381')
A05_plotis = L2 + L3 # this is incorrect
A08_plotis = sum([L4,L5,L6,L7,L8,L9]) #A05_plotis = L2 + L3
G11_plotis = sum([L10,L11,L12,L13]) #A08_plotis = sum([L4,L5,L6,L7,L8,L9])
#G11_plotis = sum([L10,L11,L12,L13])
A03_plotis = Dec('17.401') + A
A05_plotis = Dec('13.705') + B
A08_plotis = Dec('29.006') + C
G11_plotis = Dec('14.776') + N
# Directional coords + angle # Directional coords + angle
X11 = Dec('6091968.055') X11 = Dec('6091968.055')