Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global pROM example for grad-div problem #260

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

ckendrick
Copy link
Collaborator

@ckendrick ckendrick commented Dec 28, 2023

This adds a global pROM example for the grad-div problem based on MFEM example 4.

Simple example:

./grad_div_global_rom -offline -f 1.0 -id 0
./grad_div_global_rom -offline -f 1.1 -id 1
./grad_div_global_rom -offline -f 1.2 -id 2
./grad_div_global_rom -merge -ns 3
./grad_div_global_rom -fom -f 1.15
./grad_div_global_rom -online -f 1.15

Larger example:

./grad_div_global_rom -offline -f 1.0 -id 0
./grad_div_global_rom -offline -f 1.05 -id 1
./grad_div_global_rom -offline -f 1.1 -id 2
./grad_div_global_rom -offline -f 1.2 -id 3
./grad_div_global_rom -offline -f 1.25 -id 4
./grad_div_global_rom -offline -f 1.30 -id 5
./grad_div_global_rom -merge -ns 6
./grad_div_global_rom -fom -f 1.15 -visit
./grad_div_global_rom -online -f 1.15 -visit

Sample output of larger example (ROM):

#   || F_h - F ||_{L^2} = 0.0384618
#   Relative error of ROM solution = 1.72027e-07
#   Elapsed time for assembling ROM: 6.465071e-02 second
#   Elapsed time for solving ROM: 9.590000e-07 second

Copy link
Collaborator

@chldkdtn chldkdtn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@ckendrick ckendrick added the RFR Ready for review label Jan 2, 2024
@ckendrick ckendrick force-pushed the grad_div_global_prom branch from 998ad0b to 1d4e40e Compare January 10, 2024 15:50
@ckendrick ckendrick merged commit b3d9c5b into master Jan 10, 2024
4 checks passed
@ckendrick ckendrick deleted the grad_div_global_prom branch January 10, 2024 17:40
andersonw1 pushed a commit that referenced this pull request Apr 2, 2024
* Add initial global pROM for grad-div problem

* Updates to grad-div example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants