Skip to content

Commit

Permalink
start
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Jul 5, 2024
1 parent b4eef6d commit c727e1a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/equations/linearized_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ The diagonalization of the flux matrix can be found in
lambda1_p = positive_part(lambda1)
lambda2_p = positive_part(lambda2)
lambda3_p = positive_part(lambda3)
lambda2p3_half_p = 0.5 * (lambda2_p + lambda3_p)
lambda3m2_half_p = 0.5 * (lambda3_p - lambda2_p)
lambda2p3_half_p = 0.5f0 * (lambda2_p + lambda3_p)
lambda3m2_half_p = 0.5f0 * (lambda3_p - lambda2_p)

lambda1_m = negative_part(lambda1)
lambda2_m = negative_part(lambda2)
lambda3_m = negative_part(lambda3)
lambda2p3_half_m = 0.5 * (lambda2_m + lambda3_m)
lambda3m2_half_m = 0.5 * (lambda3_m - lambda2_m)
lambda2p3_half_m = 0.5f0 * (lambda2_m + lambda3_m)
lambda3m2_half_m = 0.5f0 * (lambda3_m - lambda2_m)

f1p = (lambda1_p * rho_prime_ll +
lambda3m2_half_p / c_mean_global * rho_mean_global * v1_prime_ll +
Expand Down Expand Up @@ -244,14 +244,14 @@ The diagonalization of the flux matrix can be found in
lambda1_p = positive_part(lambda1)
lambda2_p = positive_part(lambda2)
lambda3_p = positive_part(lambda3)
lambda2p3_half_p = 0.5 * (lambda2_p + lambda3_p)
lambda3m2_half_p = 0.5 * (lambda3_p - lambda2_p)
lambda2p3_half_p = 0.5f0 * (lambda2_p + lambda3_p)
lambda3m2_half_p = 0.5f0 * (lambda3_p - lambda2_p)

lambda1_m = negative_part(lambda1)
lambda2_m = negative_part(lambda2)
lambda3_m = negative_part(lambda3)
lambda2p3_half_m = 0.5 * (lambda2_m + lambda3_m)
lambda3m2_half_m = 0.5 * (lambda3_m - lambda2_m)
lambda2p3_half_m = 0.5f0 * (lambda2_m + lambda3_m)
lambda3m2_half_m = 0.5f0 * (lambda3_m - lambda2_m)

f1p = (lambda1_p * rho_prime_ll +
lambda3m2_half_p / c_mean_global * rho_mean_global * v2_prime_ll +
Expand Down Expand Up @@ -304,14 +304,14 @@ end
lambda1_p = positive_part(lambda1)
lambda2_p = positive_part(lambda2)
lambda3_p = positive_part(lambda3)
lambda2p3_half_p = 0.5 * (lambda2_p + lambda3_p)
lambda3m2_half_p = 0.5 * (lambda3_p - lambda2_p)
lambda2p3_half_p = 0.5f0 * (lambda2_p + lambda3_p)
lambda3m2_half_p = 0.5f0 * (lambda3_p - lambda2_p)

lambda1_m = negative_part(lambda1)
lambda2_m = negative_part(lambda2)
lambda3_m = negative_part(lambda3)
lambda2p3_half_m = 0.5 * (lambda2_m + lambda3_m)
lambda3m2_half_m = 0.5 * (lambda3_m - lambda2_m)
lambda2p3_half_m = 0.5f0 * (lambda2_m + lambda3_m)
lambda3m2_half_m = 0.5f0 * (lambda3_m - lambda2_m)

f1p = (lambda1_p * rho_prime_ll +
lambda3m2_half_p / c_mean_global * rho_mean_global * v_prime_normal_ll +
Expand Down

0 comments on commit c727e1a

Please sign in to comment.