Producing a picture of matrix structure

General discussion about Elmer
Post Reply
Takala
Posts: 186
Joined: 23 Aug 2009, 23:59

Producing a picture of matrix structure

Post by Takala »

Hello,

is there an easy way to produce picture of matrix structures:
http://en.wikipedia.org/wiki/File:Finit ... matrix.png

I know one can hack his way through any problem in the world of Elmer an FOSS but I mean a tool that has been successfully used in past.

Cheers,

Eelis
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Producing a picture of matrix structure

Post by raback »

Hi

Say "Dump System Matrix = File a.dat" in Solver section and use Matlab or similar to plot (i,j) indexes.

-Peter
Takala
Posts: 186
Joined: 23 Aug 2009, 23:59

Re: Producing a picture of matrix structure

Post by Takala »

Great, thanks!
-Eelis
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Producing a picture of matrix structure

Post by raback »

Hi

Note that what you get will be greatly affected if you have "Optimize Bandwidth = True" or "False". True is the default but False would better reflect the mesh structure and discretization behind the matrix. Also for many of the current solvers the optimization does not do much good.

-Peter
Post Reply