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

Implementation of DGSEM solver settings through DGMulti #2220

Closed
teddyz1999 opened this issue Jan 1, 2025 · 1 comment
Closed

Implementation of DGSEM solver settings through DGMulti #2220

teddyz1999 opened this issue Jan 1, 2025 · 1 comment

Comments

@teddyz1999
Copy link

Since I want to solve the three-dimensional Navier-Stokes equations using DGSEM, but DGSEM solver only supports generating grids with 2^N points in each direction, while I want to specify a particular number of grids in each direction, DGMultiMesh seems to be able to achieve this functionality. Therefore, I want to implement DGSEM through the DGMulti solver. How should I set up a DGMulti solver?

dg = DGMulti(polydeg = 3, element_type = Hex(), approximation_type = GaussSBP(),
             surface_integral = SurfaceIntegralWeakForm(flux_lax_friedrichs),
             volume_integral = VolumeIntegralFluxDifferencing(flux_ranocha))
@DanielDoehring
Copy link
Contributor

DanielDoehring commented Jan 2, 2025

DGSEM solver only supports generating grids with 2^N points in each direction

that is only true for the TreeMesh and is independent of the solver used. The P4estMesh offers maximum flexibility, see e.g.

https://github.com/trixi-framework/Trixi.jl/blob/main/examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl

or

trees_per_dimension = (8, 2)
mesh = P4estMesh(trees_per_dimension,
polydeg = 3, initial_refinement_level = 0,
coordinates_min = coordinates_min, coordinates_max = coordinates_max,
periodicity = (false, true))

for an example that employs a 8x2 mesh.
Both employ a DGSEM solver.

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

No branches or pull requests

2 participants