This document describes a simplified Savitsky method for calculating ship resistance and parameters. It includes:
1) Input variables such as hull geometry, speed, sea state conditions.
2) Calculation of lift, drag, and other resistances at incremental speeds through an iterative loop. Parameters like lift coefficient and critical pitch damping are estimated.
3) Storage of results like resistance components, velocities, trim, and stability parameters in arrays.
4) Output of the results arrays to a results section of the spreadsheet.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
276 views
Savitsky Short Prog-1
This document describes a simplified Savitsky method for calculating ship resistance and parameters. It includes:
1) Input variables such as hull geometry, speed, sea state conditions.
2) Calculation of lift, drag, and other resistances at incremental speeds through an iterative loop. Parameters like lift coefficient and critical pitch damping are estimated.
3) Storage of results like resistance components, velocities, trim, and stability parameters in arrays.
4) Output of the results arrays to a results section of the spreadsheet.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10
Prof.
Marco Ferrando Metodo di Savitsky Semplificato
Pagina 1 di 10
' Dati di input Dim carena As String Dim caso As String Dim disl0, beta, betat, lcg0, b, bt, atr, wsskeg, lskeg, flapno Dim flapsp, flapch, flappo, flapde, dcf, flapp, hs, lp, vv, vi, vf, dv
' Vettori dei risultati Dim vkn(41), vmps(41), cvu(41), fnv(41), tequ(41), tauc(41), lamb(41) Dim lke(41), lch(41), lm(41), dft(41), lcge(41) Dim rtbhu(41), rapdgs(41), rair(41), rflp(41), rawve(41), rskg(41), drg(41) Dim rtot(41), efhp(41), mbl(41)
' Vettori di calcolo
' Grandezze di calcolo Dim nv As Integer Dim esito As String Dim disl, drag, raa, rflap, raw, rskeg, rtbh, vms, vk, rt, ehp, tau, taucr Dim vol, cv, fv, lam, lk, lc, d, lcg, mblo, vvms Dim home As Range Dim results As Range Dim startdat As Range Dim startres As Range
Sub savshort() ' rev. 98-05-18 ' res. appendici secondo Blount & Fox, MT Jan 1976 pag. 18 formule 4 & 5 ' rev. 97-06-30 ' resistenza Skeg secondo Hadler, SNAME Transactions, 1966 ' rev. 97-04-30 ' res. agg. sea state SNAME Transactions, Vol.91, 1983, pp. 49-87 ' equazione n. 30 a pag. 57 ' rev. 97-03-22 ' verifica porpoising SNAME Transactions, Vol.91, 1983, pp. 49-87 ' equazioni n. 54 a pag. 60
' costanti Prof. Marco Ferrando Metodo di Savitsky Semplificato Pagina 2 di 10 esito = " " Set home = ActiveSheet.Range("a1:a1") Set results = ActiveSheet.Range("a28.z68") Set startdat = ActiveSheet.Range("h2.h2") Set startres = ActiveSheet.Range("a28.a28") Set Status = ActiveSheet.Range("j2.j2")
Static Function log10(x) log10 = LOG(x) / LOG(10#) End Function
Sub nextcell() ActiveCell.Offset(1, 0).Activate End Sub
Sub nextrow() ActiveCell.Offset(-nv, 1).Activate End Sub
Sub output()
startres.Select For iiv = 1 To nv ActiveCell.Value = vkn(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = vmps(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = cvu(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = fnv(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = tequ(iiv) Call nextcell Next iiv Call nextrow Prof. Marco Ferrando Metodo di Savitsky Semplificato Pagina 8 di 10 For iiv = 1 To nv ActiveCell.Value = tauc(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = lamb(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = lke(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = lch(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = lamb(iiv) * b Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = dft(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = lcge(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = mbl(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = rtbhu(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = rapdgs(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv Prof. Marco Ferrando Metodo di Savitsky Semplificato Pagina 9 di 10 ActiveCell.Value = rskg(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = rair(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = rflp(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = rawve(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = drg(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = rtot(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = efhp(iiv) Call nextcell Next iiv Call nextrow For iiv = 1 To nv ActiveCell.Value = efhp(iiv) * cvkw Call nextcell Next iiv
With Charts("Tau") .HasTitle = True .ChartTitle.Text = "Carena: " + carena End With With Charts("RT") .HasTitle = True .ChartTitle.Text = "Carena: " + carena End With With Charts("PE") .HasTitle = True .ChartTitle.Text = "Carena: " + carena End With Prof. Marco Ferrando Metodo di Savitsky Semplificato Pagina 10 di 10 home.Select