
db = 5;  %Bore Diameter
dr = 1.5; %Rod Diameter

Au = 0.25*pi*db^2;
Al = 0.25*pi*(db^2-dr^2);

F_Spring =  LowerSpringPressure*Al-UpperSpringPressure*Au;

PTO_WeightInWater = 800;

F_PTO = LoadCellForce-PTO_WeightInWater-F_Spring;

Aoil = 0.25*pi*(2^2-1.5^2);

P_PTO = F_PTO/Aoil;
