-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix * Fix * Test * test * Test * Test * Test * Test * Test * Test * Test * Test * Test * Test * Test * Bump version
- Loading branch information
1 parent
b761121
commit 9cb89b8
Showing
17 changed files
with
125 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run examples | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
actions: write | ||
contents: write | ||
pull-requests: read | ||
statuses: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1.10' | ||
- uses: julia-actions/cache@v2 | ||
- name: Install dependencies | ||
run: julia --color=yes test/examples/initialize.jl | ||
- name: Run examples | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: julia --color=yes test/examples/run.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
**/Manifest.toml | ||
.vscode | ||
.CondaPkg | ||
.pb.gz | ||
**.pb.gz | ||
/docs/build/* | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "BoreholeNetworksSimulator" | ||
uuid = "b11dda51-a240-44f0-a43d-fea4e1309b86" | ||
authors = ["Marc Basquens <[email protected]>", "Alberto Lazzarotto <[email protected]>"] | ||
version = "0.1.12" | ||
version = "0.1.13" | ||
|
||
[deps] | ||
Bessels = "0e736298-9ec6-45e8-9647-e4fc86a2fe38" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
@testset "test_Approximations" begin | ||
@test MeanApproximation() isa Any | ||
#@test MidPointApproximation() isa Any | ||
end | ||
|
||
@testset "test_Boreholes" begin | ||
@test SingleUPipeBorehole(H = 100., D = 0.) isa Any | ||
end | ||
|
||
@testset "test_Borefields" begin | ||
borehole = SingleUPipeBorehole(H = 100., D = 0.) | ||
@test EqualBoreholesBorefield(borehole_prototype=borehole, positions=[(0., 0.)]) isa Any | ||
end | ||
|
||
@testset "test_Boundary_Conditions" begin | ||
@test DirichletBoundaryCondition() isa Any | ||
@test NoBoundary() isa Any | ||
end | ||
|
||
@testset "test_Constraints" begin | ||
Nt = 10 | ||
Nbr = 10 | ||
|
||
@test HeatLoadConstraint(rand(Nbr, Nt)) isa Any | ||
@test constant_HeatLoadConstraint(rand(Nbr), Nt) isa Any | ||
@test uniform_HeatLoadConstraint(rand(Nt), Nbr) isa Any | ||
|
||
@test InletTempConstraint(rand(Nbr, Nt)) isa Any | ||
@test constant_InletTempConstraint(rand(Nbr), Nt) isa Any | ||
@test uniform_InletTempConstraint(rand(Nt), Nbr) isa Any | ||
|
||
@test TotalHeatLoadConstraint(rand(Nt)) isa Any | ||
end | ||
|
||
@testset "test_Fluids" begin | ||
@test Water() isa Any | ||
@test EthanolMix() isa Any | ||
end | ||
|
||
@testset "test_Mediums" begin | ||
@test FlowInPorousMedium() isa Any | ||
@test GroundMedium() isa Any | ||
end | ||
|
||
@testset "test_Methods" begin | ||
@test ConvolutionMethod() isa Any | ||
@test NonHistoryMethod() isa Any | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Pkg | ||
|
||
geothermal_registry = "https://github.com/marcbasquensmunoz/geothermal_registry" | ||
|
||
project_directory = joinpath(@__DIR__, "..", "..") | ||
plots_directory = joinpath(project_directory, "BNSPlots") | ||
|
||
cd(project_directory) do | ||
Pkg.Registry.add(RegistrySpec(url = geothermal_registry)) | ||
Pkg.Registry.add("General") | ||
Pkg.develop(PackageSpec(path = plots_directory)) | ||
Pkg.develop(PackageSpec(path = project_directory)) | ||
Pkg.activate() | ||
Pkg.instantiate() | ||
end | ||
|
||
Pkg.add(["CSV", "Colors", "Parameters", "WGLMakie"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
@info "Running Braedstrup" | ||
include("../../examples/Braedstrup/main.jl") | ||
@info "Running g-function" | ||
include("../../examples/g-function/main.jl") | ||
@info "Running Tekniska: constant m" | ||
include("../../examples/tekniska/constant_m.jl") | ||
@info "Running Tekniska: proportional m" | ||
include("../../examples/tekniska/prop_m.jl") | ||
@info "Running Tekniska: toggle" | ||
include("../../examples/tekniska/toggle.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters