-
Notifications
You must be signed in to change notification settings - Fork 26
/
runVPP.py
executable file
·45 lines (38 loc) · 948 Bytes
/
runVPP.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/opt/miniconda3/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import logging
logging.basicConfig(level=logging.INFO)
from src.SailMod import Jib, Kite, Main
from src.VPPMod import VPP
from src.YachtMod import Keel, Rudder, Yacht
YD41 = Yacht(
Name="YD41",
Lwl=11.90,
Vol=6.05,
Bwl=3.18,
Tc=0.4,
WSA=28.20,
Tmax=2.30,
Amax=1.051,
Mass=6500,
Ff=1.5,
Fa=1.5,
Boa=4.2,
Loa=12.5,
App=[Keel(Cu=1.00, Cl=0.78, Span=1.90), Rudder(Cu=0.48, Cl=0.22, Span=1.15)],
Sails=[
Main("MN1", P=16.60, E=5.60, Roach=0.1, BAD=1.0),
Jib("J1", I=16.20, J=5.10, LPG=5.40, HBI=1.8),
Kite("A2", area=150.0, vce=9.55),
Kite("A5", area=75.0, vce=2.75),
],
)
vpp = VPP(Yacht=YD41)
vpp.set_analysis(
tws_range=np.arange(4.0, 22.0, 2.0), twa_range=np.linspace(30.0, 180.0, 31)
)
vpp.run(verbose=False)
vpp.write("results")
vpp.polar(3, True)
vpp.SailChart(True)