Skip to content

Commit

Permalink
Update paths to work for automated deployment of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoor committed Sep 9, 2024
1 parent 542baac commit b2d453f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 23 deletions.
6 changes: 6 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Composites = "d0d699f6-c662-11e8-0fb1-1b30104ab829"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
FLOWMath = "6cb5d3fb-0fe8-4cc2-bd89-9fe0b19a99d3"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
OWENS = "51d15398-4eaf-40f9-a029-79ae1c4a3867"
OWENSAero = "ac8500f8-acb1-479a-8630-5dcb97b7c093"
OWENSFEA = "5906b1e7-6737-4278-91ec-d653c88addb4"
OWENSOpenFASTWrappers = "1f4f357c-c864-4b71-8437-d48f9e1bb3e6"
OWENSPreComp = "7fd84261-8b17-47b6-a87d-1cc34e69440e"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
Expand Down
45 changes: 26 additions & 19 deletions examples/literate/A_simplyRunningOWENS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,35 @@

import OWENS

runpath = path = splitdir(@__FILE__)[1]
runpath = path = "/home/runner/work/OWENS.jl/OWENS.jl/examples/literate" # to run locally, change to splitdir(@__FILE__)[1]
#md runpath = path = splitdir(@__FILE__)[1]

Inp = OWENS.MasterInput("$runpath/sampleOWENS.yml")

OWENS.runOWENS(Inp,runpath)

# Here is an example of using the same model against the automated DLC run script.
# Note that for a setup cutom to a specific design, you'll want to go to the B level to get all of the detailed inputs correct
# One of these is the controller where a discon controller library can be coupled instead of the specified RPM control.

simulated_time = 2.0 #seconds
DLCs = ["1_1"] #"normal"
# DLCs = ["1_3"] #"normal"
# DLCs = ["1_4"] #"normal"
# DLCs = ["1_5"] #"normal"
# DLCs = ["2_1"] #"freewheelatNormalOperatingRPM"
# DLCs = ["2_3"] #"freewheelatNormalOperatingRPM"
# DLCs = ["3_1"] #"startup"
# DLCs = ["3_2"] #"startup"
# DLCs = ["3_3"] #"startup"
# DLCs = ["4_1"] #"shutdown"
# DLCs = ["4_2"] #"shutdown"
# DLCs = ["5_1"] #"emergencyshutdown"
# DLCs = ["6_1"] #"parked"
# DLCs = ["6_2"] #"parked_idle"
# DLCs = ["6_4"] #"parked"
# DLCs = ["7_1"] #"parked"
# DLCs = ["2_3","3_1","3_2","3_3","4_1","4_2","5_1"]
#md DLCs = ["1_3"] #"normal"
#md DLCs = ["1_4"] #"normal"
#md DLCs = ["1_5"] #"normal"
#md DLCs = ["2_1"] #"freewheelatNormalOperatingRPM"
#md DLCs = ["2_3"] #"freewheelatNormalOperatingRPM"
#md DLCs = ["3_1"] #"startup"
#md DLCs = ["3_2"] #"startup"
#md DLCs = ["3_3"] #"startup"
#md DLCs = ["4_1"] #"shutdown"
#md DLCs = ["4_2"] #"shutdown"
#md DLCs = ["5_1"] #"emergencyshutdown"
#md DLCs = ["6_1"] #"parked"
#md DLCs = ["6_2"] #"parked_idle"
#md DLCs = ["6_4"] #"parked"
#md DLCs = ["7_1"] #"parked"
#md DLCs = ["2_3","3_1","3_2","3_3","4_1","4_2","5_1"]


OWENS.runDLC(DLCs,Inp,runpath;
Expand All @@ -56,8 +61,10 @@ OWENS.runDLC(DLCs,Inp,runpath;
Vdesign=11.0,
grid_oversize=1.25,
Vinf_range=[10.0],#LinRange(4,24,21),
regenWindFiles=false,
regenWindFiles=true,
delta_t_turbsim=0.05,
simtime_turbsim=30.0,
pathtoturbsim="$localpath/../openfast/build/modules/turbsim/turbsim",
pathtoturbsim="$runpath/../../../OWENSOpenFASTWrappers.jl/deps/openfast/build/modules/turbsim/turbsim",
runScript=OWENS.runOWENS)

nothing
2 changes: 1 addition & 1 deletion examples/literate/B_detailedInputs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import OWENS
import OWENSAero
# import PyPlot
path = runpath = splitdir(@__FILE__)[1]#splitdir(@__FILE__)[1]#joinpath(@__DIR__, "examples", "literate")
runpath = path = "/home/runner/work/OWENS.jl/OWENS.jl/examples/literate" # to run locally, change to splitdir(@__FILE__)[1]

Inp = OWENS.MasterInput("$runpath/sampleOWENS.yml")

Expand Down
2 changes: 1 addition & 1 deletion examples/literate/C_customizablePreprocessing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import PyPlot
import OWENSOpenFASTWrappers


path = runpath = splitdir(@__FILE__)[1]#joinpath(@__DIR__, "examples", "literate")
runpath = path = "/home/runner/work/OWENS.jl/OWENS.jl/examples/literate" # to run locally, change to splitdir(@__FILE__)[1]

Inp = OWENS.MasterInput("$runpath/sampleOWENS.yml")

Expand Down
8 changes: 6 additions & 2 deletions src/topRunDLC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ mass_breakout_blds,mass_breakout_twr,system,assembly,sections,AD15bldNdIdxRng, A
topFexternal_hist,rbDataHist = OWENS.Unsteady_Land(inputs;system,assembly,
topModel=feamodel,topMesh=mymesh,topEl=myel,aero=aeroForces,deformAero)

if AModel=="AD"
OWENSOpenFASTWrappers.endTurb()
end

nothing

# Like described above, we can output vtk files viewable in paraview. Here it is done for each time step and shows the
Expand All @@ -385,7 +389,7 @@ mass_breakout_blds,mass_breakout_twr,system,assembly,sections,AD15bldNdIdxRng, A
saveName = "$path/vtk/SNL5MW"
OWENS.OWENSVTK(saveName,t,uHist,system,assembly,sections,aziHist,mymesh,myel,
epsilon_x_hist,epsilon_y_hist,epsilon_z_hist,kappa_x_hist,kappa_y_hist,kappa_z_hist,
FReactionHist,topFexternal_hist;tsave_idx)
FReactionHist,topFexternal_hist)

nothing

Expand All @@ -402,7 +406,7 @@ mass_breakout_blds,mass_breakout_twr,system,assembly,sections,AD15bldNdIdxRng, A
topDamage_blade_L,topDamage_tower_U,topDamage_tower_L = OWENS.extractSF(bld_precompinput,
bld_precompoutput,plyprops_bld,numadIn_bld,lam_U_bld,lam_L_bld,
twr_precompinput,twr_precompoutput,plyprops_twr,numadIn_twr,lam_U_twr,lam_L_twr,
mymesh,myel,myort,number_of_blades,epsilon_x_hist,kappa_y_hist,kappa_z_hist,epsilon_z_hist,
mymesh,myel,myort,B,epsilon_x_hist,kappa_y_hist,kappa_z_hist,epsilon_z_hist,
kappa_x_hist,epsilon_y_hist;verbosity, #Verbosity 0:no printing, 1: summary, 2: summary and spanwise worst safety factor # epsilon_x_hist_1,kappa_y_hist_1,kappa_z_hist_1,epsilon_z_hist_1,kappa_x_hist_1,epsilon_y_hist_1,
LE_U_idx=1,TE_U_idx=6,SparCapU_idx=3,ForePanelU_idx=2,AftPanelU_idx=5,
LE_L_idx=1,TE_L_idx=6,SparCapL_idx=3,ForePanelL_idx=2,AftPanelL_idx=5,
Expand Down

0 comments on commit b2d453f

Please sign in to comment.