|
[Sponsors] |
Storing discretized system into a matrix format for computation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 30, 2021, 18:29 |
Storing discretized system into a matrix format for computation
|
#1 |
Member
ishan
Join Date: Oct 2017
Posts: 77
Rep Power: 8 |
Hello,
I have a question related to how the coefficients from resulting discretized system of equations are stored. I noticed that there are several sparse matrix storage formats such as CSR(compressed sparse row) that are used in linear solver libraries such as lis(https://github.com/anishida/lis) and PETSc. When the coefficients are calculated for the CFD system under study, are the algorithms modified, not Physics-wise but implementation-wise, so that the coefficients are stored in the desired storage format in, lets say N steps? If not, then are the coefficients calculated, stored temporarily and then the coefficients converted into the matrix format? To me this seems like it will increase the memory usage and also will need at least t N+1 steps implementation-wise. I do not have expert-level know-how about about C or C++ but in my opinion this also depends on how the libraries are built. This is something which I wondered about because I am right now using C in my CFD learning process. I want to use existing linear solver libraries for my code and in the code documentation they have mentioned about different storage formats. Based on your experience how is this usually done? |
|
Tags |
solver deveopment |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
Need ideas-fuel discharge system | Jan | FLUENT | 1 | October 10, 2006 23:05 |
Need ideas-fuel discharge system | Jan | CFX | 1 | October 9, 2006 08:16 |
Need ideas-fuel discharge system | Jan | Main CFD Forum | 0 | October 9, 2006 04:27 |
solver for linear system with large sparse matrix | Yangang Bao | Main CFD Forum | 1 | October 25, 1999 04:22 |