Skip to content

Commit

Permalink
Windio test ended up not being run during the development, log this a…
Browse files Browse the repository at this point in the history
…s issue and fix
  • Loading branch information
kevmoor committed Nov 22, 2024
1 parent 7f9939a commit 7819356
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ new*
*COMPILED*
*.out
*.h5
*h5*
*.mat
*.png
*.gif
*.pdf
*.csv
*.mp4
*turbsimfiles/
*turbsim*/
*animation/
19 changes: 12 additions & 7 deletions examples/Optimization/OWENS_Opt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,36 @@ OWENS_Options:
controlStrategy: "prescribedRPM" # should be in WindIO?- yes,
numTS: 20 # number of time steps TODO: change to sim time and make this derived
delta_t: 0.01 # time step in seconds
dataOutputFilename: nothing # data output filename with path, set to nothing or don't specify to not output anything
dataOutputFilename: "./InitialDataOutputs.out" # data output filename with path, set to nothing or don't specify to not output anything
TOL: 1e-4 # gauss-seidel iteration tolerance - i.e. the two-way iteration tolerance
MAXITER: 300 # gauss-seidel max iterations - i.e. the two-way iterations
verbosity: 2 # verbosity where 0 is nothing, 1 is warnings, 2 is summary outputs, 3 is detailed outputs, and 4 is everything
VTKsaveName: "./vtk/windio" # Path and name of the VTK outputs, recommended to put it in its own folder (which it will automatically create if needed)
aeroLoadsOn: 2 # Level of aero coupling 0 structures only, 1 no deformation passed to the aero, 2 two-way coupling, 1.5 last time step's deformations passed to this timesteps aero and no internal iteration.
Prescribed_RPM_time_controlpoints: [0.0,100000.1]
Prescribed_RPM_RPM_controlpoints: [17.2,17.2]
Prescribed_Vinf_time_controlpoints: [0.0,100000.1]
Prescribed_Vinf_Vinf_controlpoints: [17.2,17.2]

DLC_Options:
DLCs: ["1_1","2_1"] # name of DLC
Vinf_range: LinRange(5,20,16) # inflow Cutin to cutout and discretization
Vinf_range: [17.2] # inflow Cutin to cutout and discretization
IEC_std: "\"1-ED3\"" # turbsim input file IEC standard
WindChar: "\"A\"" # turbsim wind charasteric
WindClass: 1 # turbsim wind class
turbsimsavepath: "./turbsimfiles" # path where the turbsim files are saved
pathtoturbsim: nothing # path to the turbsim executable
NumGrid_Z: 38 # turbsim vertical discretizations
NumGrid_Y: 26 # turbsim horizontal discretizations
Vref: 10.0 # reference/nominal wind speed m/s for turbsim or other inflow wind input file (depending on which DLC is selected)
Vref: 17.2 # reference/nominal wind speed m/s for turbsim or other inflow wind input file (depending on which DLC is selected)
Vdesign: 11.0 # Design or rated speed of turbine, used for certain DLC cases
grid_oversize: 1.1 # amount that the turbsim inflow is oversized compared to the turbine to allow for deflection
regenWindFiles: false #, force regeneration of turbsim files even if they already exist
delta_t_turbsim: 0.05 # turbsim timestep
simtime_turbsim: 600.0 # turbsim total time, which loops if simtime exceeds turbsim time

OWENSAero_Options:
Nslices: 20 # number of 3-D slices for the strip method to go from 2D to 3D considering curved deforming blades
Nslices: 30 # number of 3-D slices for the strip method to go from 2D to 3D considering curved deforming blades
ntheta: 30 # number of azimuthal discretizations
ifw: false # use the OpenFASTWrappers inflow wind coupling to get inflow velocities
DynamicStallModel: "BV" # dynamic stall model, should be under an OWENSAero options
Expand All @@ -48,11 +52,12 @@ OWENSFEA_Options:
AddedMass_Coeff_Ca: 0.0 #added mass coefficient, scaling factor (typically 0-1) on the cones of water mass applied to each structural element in the 22 and 33 diagonal terms. 0 turns this off

Mesh_Options:
ntelem: 20 # number of tower elements in each blade, plus nodes wherever there is a component overlap
nbelem: 30 # number of blade elements in each blade, plus nodes wherever there is a component overlap
nselem: 10 # number of elements in each strut
ntelem: 10 # number of tower elements in each blade, plus nodes wherever there is a component overlap
nbelem: 60 # number of blade elements in each blade, plus nodes wherever there is a component overlap
nselem: 5 # number of elements in each strut
angularOffset: -1.5707963267948966
AD15hubR: 0.1 # parameter, used in aerodyn coupling for the hub radius so that the vortex sheets don't go within the hub
turbineType: Darrieus

OWENSOpenFASTWrappers_Options:
windINPfilename: /data/turbsim/115mx115m_30x30_20.0msETM.bts #OWENSOpenFASTWrappers If ifw or AeroDyn is being used, gets overwritten if using the DLC analysis type, the moordyn file location, like in the unit test
2 changes: 1 addition & 1 deletion examples/Optimization/windio_example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ topDamage_tower_U_UNIT = HDF5.h5read(file,"topDamage_tower_U")
topDamage_tower_L_UNIT = HDF5.h5read(file,"topDamage_tower_L")


file = "$runpath/InitialDataOutputs.h5"
file = "./InitialDataOutputs.h5"
t = HDF5.h5read(file,"t")
aziHist = HDF5.h5read(file,"aziHist")
OmegaHist = HDF5.h5read(file,"OmegaHist")
Expand Down
4 changes: 2 additions & 2 deletions examples/literate/A_simplyRunningOWENS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import OWENS
runpath = path = "/home/runner/work/OWENS.jl/OWENS.jl/examples/literate" # to run locally, change to splitdir(@__FILE__)[1]
##runpath = path = splitdir(@__FILE__)[1]

modelopt = OWENS.ModelingOptions("$(path)/OWENS_opt.yml")
designparams = OWENS.Design_Data("$path/WindIO_example.yaml")
modelopt = OWENS.ModelingOptions("$(path)/OWENS_Opt.yml")
designparams = OWENS.Design_Data("$path/WINDIO_example.yaml")

OWENS.runOWENSWINDIO(modelopt,designparams,runpath)

Expand Down
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end
include("$path/../examples/AddedMass_Buoyancy/Buoyancy.jl")
end

@testset "WindIO" begin
path = splitdir(@__FILE__)[1]
include("$path/../examples/Optimization/windio_example.jl")
end
# @testset "WindIO" begin
# path = splitdir(@__FILE__)[1]
# include("$path/../examples/Optimization/windio_example.jl")
# end

0 comments on commit 7819356

Please sign in to comment.