Skip to content
Snippets Groups Projects
Commit 129d0bc8 authored by jumu's avatar jumu
Browse files

Added look_up tables and remove pywake dependency

parent 5e76e34b
No related branches found
No related tags found
No related merge requests found
Pipeline #38528 passed
File added
File added
...@@ -10,11 +10,6 @@ import pandas as pd ...@@ -10,11 +10,6 @@ import pandas as pd
import xarray as xr import xarray as xr
import openmdao.api as om import openmdao.api as om
# pywake imports
import py_wake as pw
from py_wake.wind_turbines.generic_wind_turbines import GenericWindTurbine
from py_wake.examples.data.iea37 import IEA37Site
class genericWT_surrogate(om.ExplicitComponent): class genericWT_surrogate(om.ExplicitComponent):
""" """
Metamodel of WT Metamodel of WT
...@@ -222,4 +217,4 @@ class wpp(om.ExplicitComponent): ...@@ -222,4 +217,4 @@ class wpp(om.ExplicitComponent):
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
def get_rotor_area(d): return np.pi*(d/2)**2 def get_rotor_area(d): return np.pi*(d/2)**2
def get_rotor_d(area): return 2*(area/np.pi)**0.5 def get_rotor_d(area): return 2*(area/np.pi)**0.5
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment