Beruflich Dokumente
Kultur Dokumente
## Homework #4
## Aucoin
## last update: Nov 7
##
import numpy as np
import math
import matplotlib.pyplot as plt
FF =
0.93+0.487118*C14*((B/LPP)**1.06806)*((T/LPP)**0.46106)*((LPP/LR)**0.121563)*(((LPP
**3)/DISP)**0.36486)*((1-CP)**-0.604247)
# Form factor (1+k1) describing the viscous resistance of the hull form in
relation to RF
########## APPENDAGE RESISTANCE ##########
#finding lambd
#finding C15
if (LWL**3)/DISP < 512.:
C15 = -1.69385 # less than 512
elif 512. < (LWL**3)/DISP < 1726.91: # Between 512 and 1726.91
C15 = -1.69385 + ((LWL/(DISP)**1/3)-8)/2.36
else: # Between 1726.91 to INFINITY
C15 = 0
#found C15
m4 = C15*0.4*np.exp(-0.034*(Fn**-3.29))
#finding C16
if CP < 0.8:
C16 = 8.07981*CP-13.8673*(CP**2)+6.984388*(CP**3) # CP < 0.8
else: # CP > 0.8
C16 = 1.73014-0.7067*CP
#found C16
m1 = 0.0140407*(LWL/T)-1.75254*((DISP**1/3)/LWL)-4.79323*(B/LWL)-C16
C5 = 1.-0.8*AT/(B*T*CM)
C3 = 0.56*(ABT**1.5)/(B*T*(0.31*np.sqrt(ABT)+TF-hB))
C2 = np.exp(-1.89*np.sqrt(C3))
iE = 1.+89.*np.e**((-(LWL/B)**0.80856)*((1.-CWP)**0.30484)*((1.-CP-
0.0225*lcb)**0.6367)*((LR/B)**0.34574)*(100.*(DISP/LWL**3.)**0.16302))
#iE- Angle of the waterline at the bow in degrees with reference to the center
plane
#findind C7
C1 = 2223105.*(C7**3.78613)*((T/B)**1.07961)*((90.-iE)**-1.37565)
C17 = 6919.3*((CM)**-1.3346)*((DISP/(LWL**3))**2.00977)*(((LWL/B)-2)**1.40692)
m3 = -7.2035*((B/LWL)**0.326869)*((T/B)**0.605375)
#finding RW
if Fn > 0.55:
RW = C17*C2*C5*DISP*DEN*G*np.exp(m3*(Fn**d)+m4*np.cos(lambd*(Fn**-2)))
elif Fn < 0.4:
RW = C1*C2*C5*DISP*DEN*G*np.exp(m1*(Fn**d)+m4*np.cos(lambd*(Fn**-2)))
else: # Between 0.4 and 0.55
RW = (C17*C2*C5*DISP*DEN*G*np.exp(m3*(Fn**d)+m4*np.cos(lambd*(Fn**-
2))))+(C1*C2*C5*DISP*DEN*G*np.exp(m1*(Fn**d)+m4*np.cos(lambd*(Fn**-2))))
#RW found
RB = 0.11*np.exp(-3*(PB**-2))*(Fni**3)*(ABT**1.5)*DEN*G/(1+(Fni**2)) # additional
resistance due to the presence of a bulbous bow near the surface of the water
########## TRANSOM IMMERSION PRESSURE RESISTANCE ##########
if FnT >= 5:
c6 = 0
else: # FnT < 5
c6 = 0.2*(1-0.2*FnT)
CA = 0.006*((LWL+100)**-0.16)-0.00205+0.003*np.sqrt(LWL/7.5)*(CB**4)*C2*(0.04-c4)#
correlation allowance coefficient