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 numerical support of other real types (Float32) #1909

Merged
merged 34 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cee9c6f
start with src/equations
huiyuxie Apr 19, 2024
1c95bb6
Merge branch 'trixi-framework:main' into main
huiyuxie Apr 28, 2024
195da8d
revise after the first review
huiyuxie Apr 28, 2024
2801e53
format src/equations
huiyuxie Apr 28, 2024
e2e413a
another version
huiyuxie Apr 30, 2024
ccc4a06
revise after the second review
huiyuxie May 2, 2024
12128a8
Merge branch 'main' into main
huiyuxie May 2, 2024
388917b
apply suggestions from code review - comments
huiyuxie May 3, 2024
77e32d0
remove TODO
huiyuxie May 3, 2024
b9e30fa
Merge branch 'trixi-framework:main' into main
huiyuxie May 6, 2024
4e6745f
Merge branch 'trixi-framework:main' into main
huiyuxie May 6, 2024
8fce44d
fix small errors
huiyuxie May 8, 2024
fa90a8b
complete compressible_euler
huiyuxie May 8, 2024
77521a5
Merge branch 'main' into main
huiyuxie May 8, 2024
832ad16
fix error and format
huiyuxie May 8, 2024
46081d5
Merge branch 'main' of https://github.com/huiyuxie/Trixi.jl
huiyuxie May 8, 2024
08272e0
revise min max
huiyuxie May 8, 2024
59f7a96
Merge branch 'main' into main
huiyuxie May 8, 2024
467d2f3
Merge branch 'trixi-framework:main' into main
huiyuxie May 10, 2024
5dc5aee
Merge branch 'main' into main
huiyuxie May 14, 2024
7b54890
revise based on new docs
huiyuxie May 14, 2024
c0ce534
revise based on new comments
huiyuxie May 15, 2024
013d902
Merge branch 'main' into main
huiyuxie May 15, 2024
9393f0a
Merge branch 'main' into main
huiyuxie May 17, 2024
523dac0
start sample test
huiyuxie May 21, 2024
4c8fa0e
add more tests
huiyuxie May 21, 2024
b355951
fix typos and comments
huiyuxie May 21, 2024
a5b462d
change code review
huiyuxie May 25, 2024
f43d8d4
add to CI
huiyuxie May 25, 2024
4c499fc
apply inferred macro
huiyuxie May 27, 2024
5dcbe2c
Merge branch 'main' into main
huiyuxie May 27, 2024
77704a8
complete
huiyuxie May 28, 2024
60d2873
Merge branch 'main' into main
huiyuxie Jun 1, 2024
60836bb
add Trixi
huiyuxie Jun 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Trixi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ export initial_condition_eoc_test_coupled_euler_gravity,
source_terms_eoc_test_coupled_euler_gravity, source_terms_eoc_test_euler

export cons2cons, cons2prim, prim2cons, cons2macroscopic, cons2state, cons2mean,
cons2entropy, entropy2cons
cons2entropy, entropy2cons, cons2entropy_guermond_etal
huiyuxie marked this conversation as resolved.
Show resolved Hide resolved
export density, pressure, density_pressure, velocity, global_mean_vars,
equilibrium_distribution, waterheight_pressure
export entropy, energy_total, energy_kinetic, energy_internal, energy_magnetic,
export entropy, entropy_math, entropy_thermodynamic, entropy_guermond_etal,
energy_total, energy_kinetic, energy_internal, energy_magnetic,
cross_helicity,
enstrophy
export lake_at_rest_error
Expand Down
11 changes: 6 additions & 5 deletions src/equations/compressible_euler_3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -418,17 +418,18 @@ end
return SVector(f1, f2, f3, f4, f5)
end

@inline function flux(u, normal::AbstractVector,
@inline function flux(u, normal_direction::AbstractVector,
ranocha marked this conversation as resolved.
Show resolved Hide resolved
equations::CompressibleEulerEquations3D)
rho_e = last(u)
rho, v1, v2, v3, p = cons2prim(u, equations)

v_normal = v1 * normal[1] + v2 * normal[2] + v3 * normal[3]
v_normal = v1 * normal_direction[1] + v2 * normal_direction[2] +
v3 * normal_direction[3]
rho_v_normal = rho * v_normal
f1 = rho_v_normal
f2 = rho_v_normal * v1 + p * normal[1]
f3 = rho_v_normal * v2 + p * normal[2]
f4 = rho_v_normal * v3 + p * normal[3]
f2 = rho_v_normal * v1 + p * normal_direction[1]
f3 = rho_v_normal * v2 + p * normal_direction[2]
f4 = rho_v_normal * v3 + p * normal_direction[3]
huiyuxie marked this conversation as resolved.
Show resolved Hide resolved
f5 = (rho_e + p) * v_normal
return SVector(f1, f2, f3, f4, f5)
end
Expand Down
Loading
Loading