Skip to content

Commit

Permalink
Merging of example folders
Browse files Browse the repository at this point in the history
The example folders are merged, to only contain examples relevant for the semi-Markov availability paper.
  • Loading branch information
Glemmers committed Jan 22, 2024
1 parent 3087011 commit c300fd5
Show file tree
Hide file tree
Showing 41 changed files with 668 additions and 3,037 deletions.
2,414 changes: 0 additions & 2,414 deletions examples/LVDC_Battery_systems/Pluto.jl_notebook/LVDC1.jl

This file was deleted.

655 changes: 655 additions & 0 deletions examples/lvdc/LVDC_Battery_systems/Pluto.jl_notebook/LVDC1.jl

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ function battery_system_availability(i, T, ntw_av, μ, σ)
end

# Include the stochastic models for the wind turbines and cables
stdᵃᶜᵈᶜ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/acdc.jl"));
stdᵈᶜᵈᶜ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/dcdc.jl"));
stdⁱⁿᵛ¹ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/inv1.jl"));
stdⁱⁿᵛ² = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/inv2.jl"));
stdᶜᵃᵖᵃᶜ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/CAP_ac.jl"));
stdᶜᵃᵖᵈᶜ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/CAP_dc.jl"));
stdᶜᵃᵖᴸ¹ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/CAP_L1.jl"));
stdᶜᵃᵖᴸ² = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/CAP_L2.jl"));
stdᵇᵃᵗ = include(joinpath("C:/Users/gemmers/Documents/GitHub/MultiStateSystems.jl/examples/LVDC_Battery_systems/elements/battery.jl"));
stdᵃᶜᵈᶜ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/acdc.jl"));
stdᵈᶜᵈᶜ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/dcdc.jl"));
stdⁱⁿᵛ¹ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/inv1.jl"));
stdⁱⁿᵛ² = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/inv2.jl"));
stdᶜᵃᵖᵃᶜ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/CAP_ac.jl"));
stdᶜᵃᵖᵈᶜ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/CAP_dc.jl"));
stdᶜᵃᵖᴸ¹ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/CAP_L1.jl"));
stdᶜᵃᵖᴸ² = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/CAP_L2.jl"));
stdᵇᵃᵗ = include(joinpath(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/elements/battery.jl"));

# Solve the state transition diagrams
solve!(stdᵃᶜᵈᶜ, cls; tsim, dt)
Expand All @@ -62,9 +62,11 @@ solve!(stdᵇᵃᵗ, cls; tsim, dt)

"""
The DC/DC converter can take a lot of memory to solve.
The solved std is provided as data and can be accessed by uncommenting the following two lines:
The solved std is provided as data and can be accessed by uncommenting the following four lines:
"""
# dcdc_data = CSV.read("Z:/MyOwn/Journal/semi-Markov/std_DCDC_40.csv", DataFrame)
# using CSV
# using DataFrames
# dcdc_data = CSV.read(_MSS.BASE_DIR,"examples/lvdc/LVDC_Battery_systems/data/std_DCDC_40.csv", DataFrame)
# stdᵈᶜᵈᶜ = solvedSTD(prob = [dcdc_data[!, :dcdc_state1], dcdc_data[!, :dcdc_state2], dcdc_data[!, :dcdc_state3]], time = collect(t), power = [10.0u"MW", 0.0u"MW", 0.0u"MW"]);

# Set up the state transition diagram for the AC-grid with a constant availability of four nines.
Expand Down
27 changes: 0 additions & 27 deletions examples/lvdc/elements/ac.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/acdc.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/battery.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/dcdc.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/fe.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/inv.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/switch.jl

This file was deleted.

27 changes: 0 additions & 27 deletions examples/lvdc/elements/transfo.jl

This file was deleted.

43 changes: 0 additions & 43 deletions examples/lvdc/networks/AC_case_1.jl

This file was deleted.

44 changes: 0 additions & 44 deletions examples/lvdc/networks/AC_case_2.jl

This file was deleted.

Loading

0 comments on commit c300fd5

Please sign in to comment.