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

Prom maxwell local greedy algorithm #249

Closed andersonw1 closed 8 months ago

andersonw1 commented 10 months ago

This PR adds a global prom example for the maxwell equation to libROM (based on MFEM ex3p).

Example run:

Build database mpirun -np 8 maxwell_local_rom_greedy -build_database -greedy-param-min 1.0 -greedy-param-max 1.2 -greedy-param-size 5 -greedysubsize 2 -greedyconvsize 3 -greedyrelerrortol 0.01

Run full-order model mpirun -np 8 maxwell_global_rom --fom -f 1.15

Use reduced-order model mpirun -np 8 maxwell_local_rom_greedy -use_database -online -f 1.15

For this example: Elapsed time for solving FOM: 8.870853e-01 second Elapsed time for solving ROM: 9.554200e-05 second

Relative error of ROM solution = 1.88768e-05

Speedup: x9284.76

chldkdtn commented 9 months ago

@dylan-copeland and @siuwuncheung, would you finish or continue reviewing this PR?