diff --git a/docs/src/nonhistory.jl b/docs/src/nonhistory.jl index a955306..6f7b451 100644 --- a/docs/src/nonhistory.jl +++ b/docs/src/nonhistory.jl @@ -8,7 +8,11 @@ # To show this, let us run a simulation with hourly time steps, with a duration of 1 year (so ``8760`` time steps), # with both the convolution and the non-history time superposition methods. -# Let us define an example, very similar to +# Let us define an example, very similar to [Basic tutorial](@ref) + +using BoreholeNetworksSimulator + +# Δt = 3600.#8760*3600/12. Nt = 8760 diff --git a/docs/src/tutorial.jl b/docs/src/tutorial.jl index 55d1af0..83c52d2 100644 --- a/docs/src/tutorial.jl +++ b/docs/src/tutorial.jl @@ -10,6 +10,10 @@ # We start by specifying the simulation time step and the simulation duration. For our example, # we will take monthly time steps during 10 years: +using BoreholeNetworksSimulator + +# + Δt = 8760*3600/12. Nt = 10*12 diff --git a/examples/complex_borefield.jl b/examples/complex_borefield.jl index 0445847..ff0acd3 100644 --- a/examples/complex_borefield.jl +++ b/examples/complex_borefield.jl @@ -1,5 +1,4 @@ using BoreholeNetworksSimulator -import BoreholeNetworksSimulator: n_branches using CSV function load_borefield_from_file(file) diff --git a/src/BoreholeNetworksSimulator.jl b/src/BoreholeNetworksSimulator.jl index f0c3469..2d02927 100644 --- a/src/BoreholeNetworksSimulator.jl +++ b/src/BoreholeNetworksSimulator.jl @@ -22,8 +22,8 @@ using FiniteLineSource include("utils.jl") -modular = get_all_julia_files_in_dir("$(@__DIR__)/modular") -sort_dependencies!(modular, ["interfaces/", "core/"]) +modular = get_all_julia_files_in_dir(joinpath(@__DIR__, "modular")) +sort_dependencies!(modular, ["interfaces", "core"]) include.(modular) export Borehole, SingleUPipeBorehole