In my first message, I turn the device counterclockwise. But like that the energy recovered by the black arm is lower than the energy needed by the external device to turn the pink wall (the angle between the black arm and the pink arm is constant, the external device must do that). Even, I supposed there is no friction in theory, it is possible to lost an energy somewhere. So I turn the black arm clockwise, like that the energy recovered by the external device is higher than the energy needed by the black arm.
Like I calculated the moments on 2 different axes, this is not necessary to have the sum of moments at 0. But I have a problem with the sum of energy in that case.
I changed my formulas to have variables in the equations:
height of water : 0.1 m
pressure at top:
pressure at the middle:
pressure at the bottom:
law for the pressure:
, from the bottom.
with:
the height of the water
the radius of the circle
length of the pink part of circle in absisse
Moment of the magenta arm on the orange dot:
on y:
on x:
Moment of the black arm around the black dot:
I calculated the moments only, and to have the energy I calculated with a very small angle
but even like that I need to supposed the functions are continuous. The difference in the sum of torques is high (relatively) so if the functions are continuous, the energy needed by the black arm is lower than the energy recovered by the external device. I calculated the sum of energy to take in account all data and I come back when it's done.
At final, i think the calculations of my torques are correct, I just need a confirmation to go further, please.