LLNL / libROM

Model reduction library with an emphasis on large scale parallelism and linear subspace methods
https://www.librom.net
Other
201 stars 36 forks source link

DMD #69

Closed kevinhkhuynh closed 3 years ago

kevinhkhuynh commented 3 years ago

DMD. Works for serial and parallel.

kevinhkhuynh commented 3 years ago

Works in serial and parallel. To try it out, build and run:

srun -n X -p pdebug ex10p -no-vis

It is defaulted to ef 0.99, but you can use -ef 0.XX and -rdim X. If both ef and rdim are set, ef will be ignored and rdim will be used.

Currently, all the example does is train and predict the last time step using DMD, outputting the relative error.

There is a strange phenomenon in that the relative error fluctuates as rdim is increased. This occurs in both the libROM code and Matlab code (copied from U. Wash Brunton's Youtube tutorial).

kevinhkhuynh commented 3 years ago

The files of interest to review are DMD.h and DMD.C.

chldkdtn commented 3 years ago

@siuwuncheung @dylan-copeland This is pretty cool. Let's merge to the master soon. Please review and approve in your earliest time.