68 Commits

Author SHA1 Message Date
Max Lübke
1d72dc1b6d Merge branch 'domain_size_fix' into 'main'
Fix wrong domain_size datatype

See merge request mluebke/diffusion!6
2022-02-21 17:47:00 +01:00
Max Luebke
21bb3d1338 Fix wrong domain_size datatype 2022-02-21 12:08:13 +01:00
Max Luebke
893a2856c7 Add CI
commit 8a0d9cea8121f62ea518a9ab2c48ffc334104ecd
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 20:31:32 2022 +0100

    Added tidy analyzer options

commit bd59a32420acb282ceba80c13e1f727d1ae3a767
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 11:09:33 2022 +0100

    Update .gitlab-ci.yml file

commit ccfcec4f9c0c43341f3b73f2da8ac83ee67e35dc
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 10:55:08 2022 +0100

    Update .gitlab-ci.yml file

commit c2da2361e0e152a8fd51f0e89ab4fb0afbad57a1
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 10:47:40 2022 +0100

    Update .gitlab-ci.yml file

commit 6c10f3b42ae3479f747aab012f7411d48493c426
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 10:47:16 2022 +0100

    Update .gitlab-ci.yml file

commit 8f96ccc33556d97e5d37fd448b3f12e024777274
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 10:46:25 2022 +0100

    Update .gitlab-ci.yml file

commit afdb0447625d35d6ca989744e94a44f90392d1c7
Author: Max Lübke <mluebke@gfz-potsdam.de>
Date:   Tue Feb 15 10:44:56 2022 +0100

    Update .gitlab-ci.yml file
2022-02-18 11:14:56 +01:00
Max Luebke
83d11d44e1 Cleanup and refactoring of library.
- Update doxygen compatible comments for all public methods of BTCSDiffusion
- Remove commented code lines as we do noit need them anymore.
- Added comments at key points at source file of BTCSDiffusion.
- Refactor main.cpp to new function signature of =setBoundaryCondtion=
2022-02-03 15:37:10 +01:00
Max Luebke
e2707858c1 Refactor loop of filling of matrix A.
- make now use of another variable 'j' for c, bc and alpha indexing
instead of always incrementing with =i= and the negation of =left_is_constant=
2022-02-03 15:10:03 +01:00
Max Luebke
e3d10336a9 Added support for constant cells inside the grid. 2022-02-03 15:07:49 +01:00
Max Luebke
54d1a396f4 Move output from library to test application 2022-01-27 10:16:27 +01:00
Max Luebke
9bce8be092 Update getter/setters for grid specification 2022-01-27 10:11:47 +01:00
Max Luebke
38b4bd0fb2 Update resizing of boundary condition vector 2022-01-27 09:58:39 +01:00
Max Luebke
0828da7a09 Fix boundary condition memory allocation 2022-01-27 09:54:13 +01:00
Max Lübke
6f0fd990da Merge branch 'boundary' into 'dev'
New use of boundary conditions

See merge request mluebke/diffusion!4
2022-01-25 09:59:37 +01:00
Max Luebke
6308cd52af Fix uncommenting solving function.
Now x is actually solved with the help of the equation system.
2022-01-25 09:55:54 +01:00
Max Luebke
f6dbc3fb16 Fix loop indexiation 2022-01-24 12:28:29 +01:00
Max Luebke
2cd8a1e5d8 Update simulation loop to new indexing 2022-01-21 14:09:30 +01:00
Max Luebke
5606b559c7 Refactor variable names 2022-01-20 11:01:20 +01:00
Max Luebke
e675381683 Change boundary_condition to struct instead of tuple 2022-01-20 09:41:34 +01:00
Max Luebke
c3d82afed4 swap typedefs into class definition 2022-01-20 09:36:31 +01:00
Max Luebke
52c1f472f6 rewrite to runnable code 2022-01-19 18:07:25 +01:00
Max Luebke
3fa39fdc36 update main + library variables
STILL NO RUNNABLE CODE!
2022-01-17 14:33:43 +01:00
Max Luebke
29fc70ce1a rewrite initialization of module
ATTENTION: code will throw errors on compilation!
2022-01-17 14:23:43 +01:00
Max Luebke
e8dae917d5 replace names of boundary condition variables 2022-01-14 12:36:39 +01:00
Max Luebke
89a01d3e13 Merge remote-tracking branch 'origin/dev' into boundary 2021-12-13 19:45:52 +01:00
Max Luebke
1940a64574 update README 2021-12-13 19:44:20 +01:00
Max Lübke
69d6c7da57 Merge branch 'boundary' into 'dev'
Implemented 1D diffusion with new data structure

See merge request mluebke/diffusion!3
2021-12-13 19:39:22 +01:00
Max Lübke
816a1cc67a Implemented 1D diffusion with new data structure 2021-12-13 19:39:22 +01:00
Max Luebke
a1bdcf84a7 cleanup of main file 2021-12-13 19:38:38 +01:00
Max Luebke
ca0fe9678b implement changes as discussed in meeting on 12-13-2021 2021-12-13 19:36:06 +01:00
Max Luebke
30a9dbafb8 update gitignore 2021-12-13 14:13:58 +01:00
Max Luebke
7cb18e62c1 update header files 2021-12-13 14:13:48 +01:00
Max Luebke
dcecc2dd72 added comments for public methods 2021-12-13 13:59:08 +01:00
Max Luebke
1bde33cd79 avoid return of unitialized variable 2021-12-13 13:48:21 +01:00
Max Luebke
e625455923 cleanup 2021-12-13 13:47:32 +01:00
Max Luebke
74ab002d49 change datatype of tuple in constructor 2021-12-13 13:26:04 +01:00
Max Luebke
496e4ee3bc use internal boundary condition mechanism 2021-12-13 13:23:42 +01:00
Max Luebke
0a5c271a4b change values of bc @ A and b 2021-12-06 20:18:33 +01:00
Max Luebke
76640da6cb set boundary conditions hard 2021-12-06 20:16:08 +01:00
Max Luebke
8d27274101 use private datatypes to adress solver matrix 2021-12-06 20:03:40 +01:00
Max Luebke
c3e886bb07 Merge branch 'dev' into boundary 2021-12-06 13:50:24 +01:00
Max Luebke
f5c926e08d rewrite some function signatures and scopes (NOT RUNNABLE) 2021-12-06 13:48:27 +01:00
Max Lübke
b41ad0659c Merge branch 'ml' into 'dev'
update README

See merge request mluebke/diffusion!2
2021-12-06 11:22:20 +01:00
Max Luebke
c46ad15c60 update README 2021-12-06 11:17:37 +01:00
Max Lübke
ef831a2cd4 Merge branch 'ml' into 'dev'
Implemented 1D Diffusion

See merge request mluebke/diffusion!1
2021-12-02 11:19:56 +01:00
Max Luebke
3562f30efa change dx to 1/n-1 2021-12-02 10:51:47 +01:00
Max Luebke
971f8212af Added comments 2021-12-02 09:25:34 +01:00
Max Luebke
eb595bc0a3 Use LU solver instead of QR 2021-12-01 18:03:17 +01:00
Max Luebke
85278bcaff cleanup code 2021-12-01 18:02:08 +01:00
Max Luebke
96a2d1cc5b remove old library files 2021-12-01 18:00:11 +01:00
Max Luebke
57a0e8a1a6 fix some cmake bugs 2021-11-23 15:22:46 +01:00
Max Luebke
9461dad147 added test executable 2021-11-23 15:10:51 +01:00
Max Luebke
f2e80c2c48 implement 1D diffusion as class 2021-11-23 14:56:52 +01:00