99 Commits

Author SHA1 Message Date
Max Luebke
e64e8dfd5e feat: Add support for setting concentrations from a pointer
refactor: Use Row-major matrix internally
2024-06-03 23:48:54 +02:00
Max Luebke
5193f36e1f Add methods to get and set inner constant boundary conditions 2024-04-04 12:45:04 +00:00
Max Luebke
bd3cdde0fb Add constant inner cell concentration with test cases 2024-04-04 14:33:19 +02:00
Max Luebke
7ae35dccf9 Add functions to retrieve inner boundary rows and columns 2024-04-04 14:18:12 +02:00
Max Luebke
cb0c21eab9 Add inner boundary conditions for 1D and 2D grids 2024-04-04 13:48:10 +02:00
Max Lübke
2dc959b993 Merge branch 'poet' into 'main'
Add changes required for POET into main

See merge request naaice/tug!27
2024-04-04 13:09:28 +02:00
Max Lübke
8c0687a6cd Update grid dimensions validation to handle 1D grids 2024-03-27 20:11:45 +00:00
Max Lübke
1679dc84d2 Add serialization and deserialization methods to Boundary class 2024-03-27 15:35:16 +00:00
Max Lübke
eb14c53314 Merge branch 'fix_neg_values' into 'main'
Fix possible NaN @ calcAlphaIntercell

See merge request naaice/tug!26
2024-03-14 09:10:52 +01:00
Max Luebke
4328ef3436 Fix possible NaN @ calcAlphaIntercell 2024-03-14 09:08:33 +01:00
Max Lübke
2f737ce09e Fix alpha intercell calculation 2024-03-05 10:26:15 +01:00
Max Lübke
69690c0afa Remove check for negative concentration in Boundary.hpp 2024-03-04 21:28:30 +01:00
Max Lübke
61d6cfc5cb fix: remove factor 2 in 'middle' coefficient of explicit part (closed)
test: add test case with homogeneous field and same values as const
boundary condition
2023-12-19 16:04:57 +01:00
Max Lübke
db1a2b2e5c fix: use maximum alpha for CFL condition 2023-12-04 09:12:10 +01:00
Max Lübke
cdfc42ac9c fix: Typos in FTCS
In the calculation of alpha intercell values, the concentration of alpha
and its neighboring concentrations were utilized, as opposed to
employing neighboring alpha concentrations.

For evaluating the left/right boundary conditions, there was an error in
indexing - specifically, column indexing was erroneously employed
instead of the intended row indexing.
2023-11-30 08:58:46 +01:00
Max Lübke
77914ea69f fix: include optional output of csv during thomas algorithm
fix: marco's benchmark
2023-10-19 12:23:23 +02:00
Max Lübke
8456f2212d BREAKING CHANGE: tug as header-only library
build: installation of library is now possible
2023-10-19 12:20:39 +02:00
Marco De Lucia
9a3fc67885 Fix: Eigen::MatrixX<T> instead of Eigen::MatrixXd in Grid.hpp 2023-10-16 12:11:52 +02:00
Max Lübke
5196c36ec5 fix: reintroduce tug namespace 2023-09-15 11:38:13 +02:00
Max Lübke
ba627b6624 feat: rewrite library as template library 2023-09-15 11:38:08 +02:00
Max Lübke
0eba63f875 refactor: core adjustments to Simulation class
perf: const qualification of local vairables
2023-09-14 16:21:20 +02:00
Max Lübke
edaad7cc04 refactor: core adjustment to Boundary class
perf: const qualification of local variables
2023-09-14 16:21:20 +02:00
Max Lübke
f0d5220a48 refactor: adjust const qualifications for Grid class 2023-09-14 14:54:34 +02:00
Max Lübke
2096ee5cc3 refactor: remove all 'using namespaces' from library 2023-09-14 12:04:03 +02:00
Max Lübke
b9c4474f5a fix: add header guards to includes 2023-09-14 11:02:40 +02:00
Max Lübke
0d34752837 refactor: format all source files to LLVM standard 2023-09-14 10:27:05 +02:00
philippun
684fcd217f changed default numbeer of cores to max-1 2023-09-13 10:55:05 +02:00
philippun
fc4689461e Merge branch 'hannes-philipp' of git.gfz-potsdam.de:naaice/tug into hannes-philipp 2023-09-08 15:30:33 +02:00
philippun
d2e3ef23de improved commentary, refactored TugUtils into .cpp, and added CRNI example 2023-09-08 15:30:27 +02:00
Max Lübke
e8a783f00c fix: domain size can also be real number 2023-09-06 09:15:08 +02:00
Hannes Signer
8fcc8812e7 Merge branch 'hannes-philipp' of git.gfz-potsdam.de:naaice/tug into hannes-philipp 2023-08-29 10:42:23 +02:00
philippun
d24b65db63 updated documentation 2023-08-29 10:39:59 +02:00
Hannes Signer
a0ab764870 add comments for setNumberThreads 2023-08-29 10:38:51 +02:00
Hannes Signer
6b8368d9f7 add setNumberThreads method 2023-08-23 18:34:48 +02:00
philippun
32b05a8a87 added Thomas Solver with option to choose solver and cleaned up the repository 2023-08-23 12:24:35 +02:00
philippun
fb397897c8 improved commentary 2023-08-15 11:55:26 +02:00
philippun
5ae5aea48f added comments 2023-08-14 11:42:01 +02:00
philippun
c9c0f02a5a adjusted XTREME csv output 2023-08-11 15:15:08 +02:00
philippun
fdb5c436ea implemented BTCS 2D constant case 2023-08-10 22:21:15 +02:00
Hannes Signer
435314ba61 Merge branch 'hannes-philipp' into progress-bar 2023-08-10 14:22:58 +02:00
philippun
2810db0d52 added BTCSv2.cpp 2023-08-10 14:21:00 +02:00
Hannes Signer
0fc6bf4a79 add progress bar 2023-08-10 14:20:48 +02:00
philippun
e1b7038490 proposal implementation for MDL merge request 2023-08-07 16:51:44 +02:00
Hannes Signer
30bc676604 add tests for Simulation class 2023-08-06 19:24:17 +02:00
Hannes Signer
aa4ce6a086 comments for Simulation files 2023-08-05 21:28:44 +02:00
Hannes Signer
154091e405 add user input validation 2023-08-04 15:39:02 +02:00
Hannes Signer
2c2851a037 comment and input validation of Boundary class 2023-08-04 00:23:40 +02:00
philippun
8596f3ffda added first grid test 2023-08-03 22:33:55 +02:00
philippun
ab22436283 finished commentary and checks for Grid class 2023-08-03 18:17:21 +02:00
philippun
ad2fdabac9 commentary 2023-08-03 16:52:16 +02:00