feat: 增加平台高度参数,优化电缆长度计算

This commit is contained in:
dmy
2026-01-01 12:23:00 +08:00
parent e7e12745d1
commit e6d98297b1
2 changed files with 52 additions and 12 deletions

View File

@@ -11,7 +11,8 @@ def create_template():
'ID': 'Sub1',
'X': 4000,
'Y': -800,
'Power': 0
'Power': 0,
'PlatformHeight': 0
})
# Add Turbines (Grid layout)
@@ -29,7 +30,8 @@ def create_template():
'ID': i,
'X': x,
'Y': y,
'Power': np.random.uniform(6.0, 10.0)
'Power': np.random.uniform(6.0, 10.0),
'PlatformHeight': 0
})
df = pd.DataFrame(data)