83 Commits

Author SHA1 Message Date
Marco De Lucia
b0944bfba9 Added Comp2D.R and main_2D_mdl.cpp (src/CMakeLists.txt accordingly updated 2022-03-02 11:07:44 +01:00
Max Luebke
aea3a7afc3 Fix tidy infos in library. 2022-03-01 19:50:15 +01:00
Max Luebke
374a7ef9d9 Use range based loop for output. 2022-03-01 19:48:18 +01:00
Max Luebke
1f44e69e33 Rename test application of 1D diffusion to '1D'. 2022-03-01 19:42:10 +01:00
Max Luebke
ec4bdf6a37 Refactor code for better style 2022-03-01 15:34:56 +01:00
Max Luebke
d4a8726151 Implement 2D-row-wise in both directions 2022-03-01 14:05:23 +01:00
Max Luebke
9c1afe8e2d Implement 2D-row-wise in one direction 2022-03-01 13:56:55 +01:00
Max Luebke
9d3ee1f913 Use simulate_base for actual solving of les. 2022-03-01 13:14:26 +01:00
Max Luebke
d0072f9f32 Revert to commit d65fcd4. 2022-03-01 13:03:49 +01:00
Max Luebke
fb5ee6431e Update: also pass t0_c to simulate_1D 2022-03-01 11:38:08 +01:00
Max Luebke
a5a66f1403 Update: pass additional information as parameter to simulate1D 2022-03-01 11:25:13 +01:00
Max Luebke
9ec382877e Fix function parameters.
- Use private data types instead of plain Eigen types
2022-03-01 11:19:06 +01:00
Max Luebke
d0b75496c7 Remove simulate_base function. 2022-03-01 11:18:55 +01:00
Max Luebke
b7b37e9231 Update indexing + Bug fix
- Wrong stopping criteria @ filling of matrix
- Fill left and right side of b_vector with values from c instead of b_vector
2022-03-01 11:08:24 +01:00
Max Luebke
9a760bd9d9 Rewrite simulate1D function 2022-02-28 20:23:50 +01:00
Max Luebke
6f9d344cee Added new function simulate_base.
- With this new function we abstract the actual filling of the A_Matrix
and b_vector into processes which are indepent of the dimension.

- This code will not run and so the pipeline will fail.
2022-02-28 15:09:46 +01:00
Max Lübke
d7e240c6a8 Refactor simulate function signature 2022-02-28 14:10:53 +01:00
Max Luebke
d2866c271f Fix wrong function signature in implementation 2022-02-17 17:43:27 +01:00
Max Luebke
78ef8c2833 Update calculation of t0_c
- Added time dependency by multiplying spacial context with current time step
2022-02-17 17:15:05 +01:00
Max Luebke
0dad4f93fd Change loop index variable 2022-02-17 16:43:04 +01:00
Max Luebke
f296bd93a1 Increase iterations to 10 2022-02-17 09:26:42 +01:00
Max Luebke
6661a8cbd4 Refactoring function name + signature
- domain_size is now double value
- fillVectorFromRow2D renamed to fillVectorFromRowADI
2022-02-17 09:19:09 +01:00
Max Luebke
e1a08ea555 Use Eigen::Matrix for internal BC representation 2022-02-14 16:46:49 +01:00
Max Luebke
08dba0975b Refactor loop breakout to same syntax as in fillMatrix 2022-02-11 17:38:39 +01:00
Max Luebke
6ea3bf0182 Fix indexing of boundary condition vector 2022-02-11 17:37:41 +01:00
Max Luebke
b985707d2c Update output of test application 2022-02-11 14:08:40 +01:00
Max Luebke
719855288e Implented second half of ADI-BTCS 2022-02-11 13:53:55 +01:00
Max Luebke
05d3cfdc3c Implemented first step of 2D ADI-BTCSDiffusion
- defined important matrices + vectors as row-major matrices
2022-02-11 13:45:04 +01:00
Max Luebke
cda16b7744 Attempt to solve write back to c vector input
- Solution already looks good to me (in x-direction)
2022-02-10 15:34:07 +01:00
Max Luebke
dc5bc42bb8 Remove unnecessary output 2022-02-10 15:13:58 +01:00
Max Luebke
f76d775050 Implement one step of 2D diffusion 2022-02-10 15:06:36 +01:00
Max Luebke
d4b6a95bc3 Implement function to fill A matrix from one row of input 2022-02-08 13:01:18 +01:00
Max Luebke
93a84fa624 Merge branch 'eigen_datatructures' into 2D 2022-02-08 11:33:16 +01:00
Max Luebke
8de34ad65b Replace copying of output vector by oneliner 2022-02-08 11:28:57 +01:00
Max Luebke
f4253f2e6a Replace internal handling of vectors by Eigen library members 2022-02-08 11:22:18 +01:00
Max Luebke
55adc41e61 Refactor code and rebase code to solve LES into function.
- Also created new condition if dimension is 2 @ simulate
2022-02-04 09:57:28 +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 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