Community Profile

Contact

Top 10% contributor

Matt, I ran the FEM program with my current code on a smaller model that causes no memory problems and it took 5secs to do the s...

2959 views

Responded 5 years ago

Oleg, I am generating a sparse matrix of dimensions 23976*23976. The number of non-zero elements will be 7992*7992. I know that ...

Just as an example, this is what I am trying to do: A = cols = cols = A = And my question, why waste memory with repma...

Matt, thanks for your reply. In your sample code, the result is a diagonal sparse matrix containing the four random numbers. I...

I am writing a finite element program for the modeling of slabs on elastic foundations. One of the foundation models actually p...

Posted 5 years ago

Bruno, Your solution worked perfectly. Now that section of the code only takes 0.5 seconds instead of the 18. Thanks

2925 views

Responded 6 years ago

I tried using setsparse but had the following problem: ConstDof is actually a vector (37,000 elements) and so I am trying to zer...

I am developing a Finite Element Program using sparse matrices in Matlab 7.4 (2007a) The size of the global stiffness matrix (GK...

Posted 6 years ago

Thanks Mira, Your solution worked perfectly. I just had to tweak it a little bit because of the way boundary conditions are appl...

2595 views

I am writing a Finite Element program that needs to solve the typical [K]{f}={d} system. Of course I know that we SHOULD NOT us...

1173 views

Thanks for the feedback. I will try to move the parfor loop to the outside and see if performance improves.

1057 views

Responded 4 years ago

Thanks for the feedback Steve. In my case, the remaining serial code is not dependent on the results from the other workers. Doe...

Let me shorten the code to better explain my question: for j=1:npanels end

I did not know what would be the best subject to use, but here is my question. I currently have the section of code shown below...

Posted 4 years ago