arcaneframework / arcanefem

Small test application for FEM
Apache License 2.0
6 stars 3 forks source link

Optimizing transient simulations #67

Closed mohd-afeef-badri closed 7 months ago

mohd-afeef-badri commented 1 year ago

For our transient simulations we unnecessarily reassemble the FEM matrix $A$ at each time step, this is unwanted for many simulations (at least for the ones that are in ArcaneFEM for now). We should

Currently in ArcaneFEM, the modules affected by this will be

mohd-afeef-badri commented 1 year ago

image we see here timings from simple soildynamics simulation with 15K DOF solved 30 times (time-steps), arcane is 10x slower than PSD.

Even parallel scaling is not optimal, although this might be due to simple preconditioner.

mohd-afeef-badri commented 1 year ago

data-time.txt

plot.txt

To get the image that I attached here, dowload the two txt files and run gnuplot plot.txt -p

grospelliergilles commented 1 year ago

Yes we definitively need to have a way to not recreate the matrix at each step. I do not know if it is easy to do. I will look at it as soon as possible

mohd-afeef-badri commented 7 months ago

With all the improvements in transient simulation