Manomètre :

B = Point(xAxis)
E = Point(xAxis)
F = Point(xAxis)
hauteur = 0.4 (slider from 0 to 1, step 0.2)
I: ((-2), hauteur)
J: (2, hauteur)
poly3, b_1, e_1, j, i = Polygon(B, E, J, I)
K = (-0.4, 0)
L = (0.4, 0)
M = (0.4, 0.08)
N = (-0.40257261410789114, 0.08307882420985628)
poly4, l, m, n, k = Polygon(L, M, N, K)
O = (-7.695396585217772, 0.8625330338218969)
P = (-7.713642985675906, 0.6811242564591518)
Q = (-6.107959745360046, 0.6857757635710171)
R = (-6.107959745360046, 0.8625330338218969)
S = (-7.293975775138806, 2.4393939447442197)
T = (-7.312222175596941, 2.1696065322560347)
U = (-4.7759725119162075, 2.1649550251441694)
V = (-4.794218912374342, 2.4393939447442197)
W = (-4.940190116039427, 1.3090777165609617)
Z_1 = (-0.12314039509184692, 0.03921627502174603)
C_1 = (-5.086161319704505, 0.0020042181268239536)
D_1 = (5.277794140516046, -0.0026472889850413057)
p = Segment(C_1, D_1)
K_1 = (-8.702198639179104, 2.5742876509883126)
L_1 = (-8.645827893456707, 2.2858942100526667)
M_1 = (-4.756246438611249, 2.2812427029408013)
N_1 = (-4.756246438611249, 2.578939158100178)
poly5, k_1, l_1, m_1, n_1 = Polygon(K_1, L_1, M_1, N_1)
Z = (-12.112628755384199, 1.667243764174587)
D = Intersect(p, xAxis)
A = (-4, 0)
A1 = (-4, 1.8)
B1 = (-2, 1.8)
E1 = (-2, 0)
poly1, a1, a, e1, b1 = Polygon(A1, A, E1, B1)
F1 = (2, 0)
I1 = (4, 0)
J1 = (2, 1.8)
O1 = (4, 1.8)
poly2, f1, j1, o1, i1 = Polygon(F1, J1, O1, I1)
texte1: "P = " + ((25 * hauteur) + 101.3) + " kN/m²"
C = (-6.531924928866798, 1.6998043139576422)
G = Point(yAxis)
u = Vector(C, G)
H = (10.5, 0.7)
texte2: "hauteur de béton liquide = " + hauteur + " m"