`Max VCG with the RINA Loss-Of-Lift criterion

proj rinaloss

read sv
report

variables b, T1,P,D,M
set T1 = -10
\Maximum allowed heel angle during lifting = {T1:1ps}\
set p = 20
set d = 12
set m={p} times {d}
\p = {p:2} d = {d:2} heeling moment = {m:1}\

hmmt {m} /C1

`A2/A1>1
limit residual ratio from ABS {T1} to ABS 30 OR FLD > 1

`TR-T2>20
limit angle from ABS 30 TO FLD > 0
limit angle from ABS 30 TO RA0 > 20

`Note: The angle 30 degrees as used above is conservative.
`For a method of finding the angle Theta3, see THETA3.
`However, note that Theta3 will vary and hence the Limits
`will have to be redefined for each draft.

maxvcg 2 3 4

draft 3.5
solve weight, lcg
vcg max
ra /lim /graph:clean:3

print /preview
report off
end