-
Notifications
You must be signed in to change notification settings - Fork 2
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
dmd/euler example #12
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dreamer2368
reviewed
Aug 31, 2023
dreamer2368
reviewed
Aug 31, 2023
dreamer2368
reviewed
Aug 31, 2023
dreamer2368
reviewed
Aug 31, 2023
Hi @dreamer2368 I've addressed your comments |
dreamer2368
approved these changes
Aug 31, 2023
chldkdtn
approved these changes
Sep 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Finished the
examples/dg_euler.py
example.The example was run with default inputs:
python dg_euler.py
on 4 cores, corresponding to the following options:<<<
Options used:
--mesh periodic-square.mesh
--problem 1
--refine_serial 0
--refine_parallel 1
--order 3
--ode_solver 4
--t_final 2.0
--time_step -0.01
--cfl_number 0.3
--visualization False
--visit_datafiles False
--visualization_steps 50
--energy_fraction 0.9999
--rdim -1
--crbf 0.9
Comparison with
libROM
example shows identical output error numbers. Although,pylibROM
appears to be somewhat slower.pylibROM
output<<<
Relative error of DMD dens at t_final: 2.0 is 0.0003180880
Relative error of DMD x_mom at t_final: 2.0 is 0.0002069844
Relative error of DMD y_mom at t_final: 2.0 is 0.0012537761
Relative error of DMD e at t_final: 2.0 is 0.0001376798
Elapsed time for solving FOM: 4.072901e+01
Elapsed time for training DMD: 9.936306e-01
Elapsed time for predicting DMD: 1.587152e-03
libROM
output<<<
Relative error of DMD density (dens) at t_final: 2 is 0.000318088
Relative error of DMD x-momentum (x_mom) at t_final: 2 is 0.00020698435
Relative error of DMD y-momentum (y_mom) at t_final: 2 is 0.0012537761
Relative error of DMD energy (e) at t_final: 2 is 0.0001376798
Elapsed time for solving FOM: 2.597199e-01 second
Elapsed time for training DMD: 8.866020e-01 second
Elapsed time for predicting DMD: 8.613530e-04 second