CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD


Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2018, 09:02
Exclamation SparseMatrix
New Member
Join Date: Dec 2018
Posts: 2
Rep Power: 0
giuseppe03 is on a distinguished road
Hi everybody,

I'm looking for something like sparse matrix Kappa(DIM)

I wrote a script using:

scalarSquareMatrix Kappa( DIM ,Zero);

and I access to the element writing Kappa[i][j];

now I need a sparse matrix, because I'm increasing the size of this matrix.

Can I just change the "declaration"? Or do I need to rewrite all the script in a different way?

I'm looking for something like sparse matrix Kappa(DIM)

At the end I solve a system like that:

scalarField RHS(size, 0);

LUscalarMatrix LU(Kappa);

scalarField UU(LU.solve(RHS));

Thanks for the help in advance!
giuseppe03 is offline   Reply With Quote


matrix, sparsematrix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
scalarSquareMatrix to SparseMatrix giuseppe03 OpenFOAM Programming & Development 0 December 4, 2018 09:05

All times are GMT -4. The time now is 02:39.