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

Sc/compressible euler multicomponent 2d fluxes #1681

Merged
merged 43 commits into from
Nov 21, 2023

Conversation

SimonCan
Copy link
Contributor

@SimonCan SimonCan commented Oct 20, 2023

Added fluxes to the compressible multicomponent Euler equations in 2d to make it usable on structured 2d meshes.

The convergence tests for elixir_eulermulti_convergence_ec.jl are:

####################################################################################################
l2
rho_v1              rho_v2              rho_e               rho1                rho2                
error     EOC       error     EOC       error     EOC       error     EOC       error     EOC       
1.23e-04  -         1.23e-04  -         1.89e-04  -         4.85e-05  -         9.71e-05  -         
1.51e-05  3.02      1.51e-05  3.02      2.45e-05  2.94      5.90e-06  3.04      1.18e-05  3.04      
1.88e-06  3.01      1.88e-06  3.01      3.09e-06  2.99      7.33e-07  3.01      1.47e-06  3.01      

mean      3.01      mean      3.01      mean      2.97      mean      3.02      mean      3.02      
----------------------------------------------------------------------------------------------------
linf
rho_v1              rho_v2              rho_e               rho1                rho2                
error     EOC       error     EOC       error     EOC       error     EOC       error     EOC       
6.72e-04  -         6.72e-04  -         1.27e-03  -         2.84e-04  -         5.69e-04  -         
8.39e-05  3.00      8.39e-05  3.00      1.50e-04  3.07      3.50e-05  3.02      7.01e-05  3.02      
1.09e-05  2.94      1.09e-05  2.94      2.00e-05  2.91      4.61e-06  2.93      9.23e-06  2.93      

mean      2.97      mean      2.97      mean      2.99      mean      2.97      mean      2.97      
----------------------------------------------------------------------------------------------------
Dict{Symbol, Any} with 3 entries:
  :variables => ("rho_v1", "rho_v2", "rho_e", "rho1", "rho2")
  :l2        => [3.01456, 3.01456, 2.96502, 3.02451, 3.02451]
  :linf      => [2.97283, 2.97283, 2.99359, 2.973, 2.973]

@github-actions
Copy link
Contributor

Review checklist

This checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging.

Purpose and scope

  • The PR has a single goal that is clear from the PR title and/or description.
  • All code changes represent a single set of modifications that logically belong together.
  • No more than 500 lines of code are changed or there is no obvious way to split the PR into multiple PRs.

Code quality

  • The code can be understood easily.
  • Newly introduced names for variables etc. are self-descriptive and consistent with existing naming conventions.
  • There are no redundancies that can be removed by simple modularization/refactoring.
  • There are no leftover debug statements or commented code sections.
  • The code adheres to our conventions and style guide, and to the Julia guidelines.

Documentation

  • New functions and types are documented with a docstring or top-level comment.
  • Relevant publications are referenced in docstrings (see example for formatting).
  • Inline comments are used to document longer or unusual code sections.
  • Comments describe intent ("why?") and not just functionality ("what?").
  • If the PR introduces a significant change or new feature, it is documented in NEWS.md.

Testing

  • The PR passes all tests.
  • New or modified lines of code are covered by tests.
  • New or modified tests run in less then 10 seconds.

Performance

  • There are no type instabilities or memory allocations in performance-critical parts.
  • If the PR intent is to improve performance, before/after time measurements are posted in the PR.

Verification

  • The correctness of the code was verified using appropriate tests.
  • If new equations/methods are added, a convergence test has been run and the results
    are posted in the PR.

Created with ❤️ by the Trixi.jl community.

Project.toml.bkp Outdated Show resolved Hide resolved
examples/p4est_2d_dgsem/Project.toml Outdated Show resolved Hide resolved
examples/p4est_2d_dgsem/elixir_advection_coupled.jl Outdated Show resolved Hide resolved
examples/p4est_3d_dgsem/Project.toml Outdated Show resolved Hide resolved
examples/structured_2d_dgsem/Project.toml Outdated Show resolved Hide resolved
examples/tree_2d_dgsem/Project.toml Outdated Show resolved Hide resolved
examples/tree_3d_dgsem/Project.toml Outdated Show resolved Hide resolved
examples/unstructured_2d_dgsem/Project.toml Outdated Show resolved Hide resolved
src/Trixi.jl Outdated Show resolved Hide resolved
src/Trixi.jl Outdated Show resolved Hide resolved
@SimonCan SimonCan marked this pull request as draft October 20, 2023 14:07
@SimonCan SimonCan changed the title Sc/compressible euler multicomponent 2d fluxes WIP: Sc/compressible euler multicomponent 2d fluxes Oct 20, 2023
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 45 lines in your changes are missing coverage. Please review.

Comparison is base (3c1762b) 96.23% compared to head (77a4c4b) 94.05%.

Files Patch % Lines
.../equations/compressible_euler_multicomponent_2d.jl 34.78% 45 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1681      +/-   ##
==========================================
- Coverage   96.23%   94.05%   -2.18%     
==========================================
  Files         431      431              
  Lines       34816    34872      +56     
==========================================
- Hits        33503    32798     -705     
- Misses       1313     2074     +761     
Flag Coverage Δ
unittests 94.05% <40.79%> (-2.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…ub.com:trixi-framework/Trixi.jl into sc/compressible_euler_multicomponent_2d_fluxes
@SimonCan SimonCan changed the title WIP: Sc/compressible euler multicomponent 2d fluxes Sc/compressible euler multicomponent 2d fluxes Nov 14, 2023
@SimonCan SimonCan marked this pull request as ready for review November 14, 2023 11:32
@SimonCan SimonCan requested a review from ranocha November 14, 2023 11:32
Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

This is just a brief review of the look at the surface - I didn't check the numerics. Looks good in general 👍

test/test_structured_2d.jl Show resolved Hide resolved
src/equations/compressible_euler_multicomponent_2d.jl Outdated Show resolved Hide resolved
@DanielDoehring
Copy link
Contributor

It is probably also a good idea/habit that we check new numerical fluxes for consistency and rotational invariance

@ranocha
Copy link
Member

ranocha commented Nov 15, 2023

It is probably also a good idea/habit that we check new numerical fluxes for consistency and rotational invariance

@SimonCan?

@SimonCan
Copy link
Contributor Author

I've added the consistency and rotational invariance.

ranocha
ranocha previously approved these changes Nov 16, 2023
Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Thanks!

src/equations/compressible_euler_multicomponent_2d.jl Outdated Show resolved Hide resolved
Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Thanks

@ranocha ranocha enabled auto-merge (squash) November 21, 2023 06:43
@ranocha ranocha merged commit a3f3884 into main Nov 21, 2023
31 of 33 checks passed
@ranocha ranocha deleted the sc/compressible_euler_multicomponent_2d_fluxes branch November 21, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants