Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync branch with main #41

Merged
merged 42 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
a09760b
Initial improved coupling scheme appraoch
micheltakken Jul 15, 2024
1cb5e8e
:tv: Fix hybrid result read GUI
micheltakken Jul 15, 2024
d575bc9
:bug::heavy_check_mark: Fix some bugs and pass all tests
micheltakken Jul 16, 2024
48a7fbb
:heavy_check_mark: Pass test in CI
micheltakken Jul 16, 2024
8f77413
:heavy_check_mark: Pass test in CI
micheltakken Jul 16, 2024
5c38b25
:heavy_check_mark: Pass test in CI
micheltakken Jul 17, 2024
243dff8
:heavy_check_mark: Pass test in CI
micheltakken Jul 17, 2024
712217a
Initial improved coupling scheme approach
micheltakken Jul 18, 2024
92e72a5
Derivative based relaxation factor
micheltakken Aug 1, 2024
b4ae1c0
:card_index: Update gitignore
micheltakken Aug 2, 2024
b33af7d
Rebase onto main
astadik Jul 9, 2024
3c98be3
Fixed stlFile endless loop
micheltakken Jul 10, 2024
cbb2a97
:sparkles: Tissue and OoC Simulator definitions
micheltakken Jul 18, 2024
60d5db2
:sparkles: Tissue and OoC Simulator definitions
micheltakken Jul 19, 2024
f9cf5a5
:construction: Debug advection diffusion solver
micheltakken Jul 19, 2024
a776736
:bug: Fix segfault advection diffusion solver
micheltakken Jul 23, 2024
44c85f4
:bug: Fix NS and AD coupling
micheltakken Jul 23, 2024
e47de28
:art: Partition function definitions for olbSimulators
micheltakken Jul 23, 2024
273b655
:racehorse::art: Partition function definitions for cfdSimulators
micheltakken Jul 24, 2024
2af242b
:bug: Remove hardcoded concentration value
micheltakken Jul 24, 2024
1631680
:construction: Add Abstract and CFD coupling for mixtures
micheltakken Jul 24, 2024
219ea96
Fixed stlFile endless loop
micheltakken Jul 10, 2024
ec12157
:construction: Add Abstract and CFD coupling for mixtures
micheltakken Jul 25, 2024
cbd84a9
:construction: Add Abstract and CFD coupling for mixtures
micheltakken Jul 27, 2024
4229244
:sparkles: Add Abstract and CFD coupling for mixtures
micheltakken Aug 2, 2024
415a8d6
:heavy_check_mark: Pass tests :lipstick: Adress comments :bug: Resolv…
micheltakken Aug 2, 2024
71afa46
Merge branch 'main' into develop
micheltakken Aug 5, 2024
9685e61
:rotating_light: Add Test for Banked Openings
micheltakken Aug 13, 2024
c937e65
:rotating_light: Add More Test Cases for Openings with Rotation, goog…
micheltakken Aug 13, 2024
aeb4302
:rotating_light: Add Rotated Cube STL Unit Tests
micheltakken Aug 15, 2024
f9e5852
:rotating_light: Add Rotated Cube STL Unit Tests
micheltakken Aug 15, 2024
ce118d1
:heavy_check_mark: Add and Pass Unit Tests: Rotated STL Openings
micheltakken Aug 15, 2024
fa08602
Address requested changes
micheltakken Aug 15, 2024
13fc346
:zap: General Update: Extend Opening Definition for Rotated Faces
micheltakken Aug 15, 2024
6536fa7
Merge branch 'main' into mVLSI
micheltakken Aug 20, 2024
2bf8337
WIP: Define Basic and Naive Hybrid Update Schemes
micheltakken Aug 20, 2024
369d192
:rocket: Deploy Basic and Naive Hybrid Update Schemes
micheltakken Aug 21, 2024
662817d
Fix Issue #27
MariaEmmerich Aug 21, 2024
3d4ba15
Merge pull request #28 from cda-tum/develop
MariaEmmerich Aug 22, 2024
9de100f
mVLSI - NaiveScheme Compiles
micheltakken Aug 29, 2024
576fe69
Compile and pass tests NaiveScheme
micheltakken Aug 29, 2024
ec84c7c
:rocket: Naive Hybrid Update Scheme for mVLSI
micheltakken Aug 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## This PR updates

(Add description)

## PR Checklist
- [ ] Did you include comments/documentation?
- [ ] Did you include and pass unit tests?
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@
*.JSON
test.py

# Visualization files
*.vtk
*.vtm
*.vti

# Exclude directories
build/
external/*/
.cache/
.vscode
images/*
examples/*
examples/*
tmp/
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,16 @@ if(TEST)
target_link_libraries(simulatorTest PUBLIC gtest testLib)
gtest_discover_tests(simulatorTest)
endif()

# create benchmarks
option(BENCHMARK "Configure for building benchmarks")
if(BENCHMARK)
find_package(benchmark REQUIRED)
set(TARGET_NAME simulatorBenchmark)
add_executable(simulatorBenchmark)
target_sources(simulatorBenchmark PUBLIC benchmarks/benchmark.cpp)
target_link_libraries(simulatorBenchmark PUBLIC gtest gtest_main)
target_link_libraries(simulatorBenchmark PUBLIC gtest lbmLib)
target_link_libraries(simulatorBenchmark PUBLIC gtest simLib)
target_link_libraries(simulatorBenchmark PUBLIC benchmark::benchmark)
endif()
5 changes: 5 additions & 0 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target_sources(${TARGET_NAME} PRIVATE ${SOURCE_LIST})
target_link_libraries(${TARGET_NAME} PUBLIC gtest gtest_main)
target_link_libraries(${TARGET_NAME} PUBLIC nlohmann_json::nlohmann_json)
target_link_libraries(${TARGET_NAME} PUBLIC lbmLib)
target_link_libraries(${TARGET_NAME} PUBLIC simLib)
24 changes: 24 additions & 0 deletions benchmarks/benchmark.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include "gtest/gtest.h"
#include "benchmark/benchmark.h"

#include "../src/baseSimulator.h"
#include "../src/baseSimulator.hh"

using T = double;

void BM_simRun(benchmark::State& state) {

std::string file = "../examples/Hybrid/Network4a.JSON";

// Load and set the network from a JSON file
arch::Network<T> network = porting::networkFromJSON<T>(file);

// Load and set the simulation from a JSON file
sim::Simulation<T> testSimulation = porting::simulationFromJSON<T>(file, &network);
for (auto _ : state) {
testSimulation.simulate();
}
}
BENCHMARK(BM_simRun);

BENCHMARK_MAIN();
8 changes: 5 additions & 3 deletions examples/Hybrid/Network1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ def hybridContinuous():
simulation.setContinuousPhase(f0)
simulation.setPoiseuilleResistanceModel()

simulation.addLbmSimulator("1a", "../STL/cross.stl", m0, [n5, n7, n8, n9], \
[[1.0, 0.0], [0.0, -1.0], [0.0, 1.0], [-1.0, 0.0]], [1e-4, 1e-4, 1e-4, 1e-4], \
1e-4, 1e-1, 0.1, 20, 1e-1, 0.55)
s1 = simulation.addLbmSimulator("1a", "../STL/cross.stl", m0, [n5, n7, n8, n9], \
[[1.0, 0.0], [0.0, -1.0], [0.0, 1.0], [-1.0, 0.0]], [1e-4, 1e-4, 1e-4, 1e-4], \
1e-4, 1e-1, 20, 1e-1, 0.55)

s1.setNaiveScheme(0.1, 0.5, 10)

network.sort()

Expand Down
Loading
Loading