Lines Matching +full:- +full:y

1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
10 // The left and right states are specified from the perspective of an outward-facing normal vector …
14 // |------------| /
16 // | Left |----> Right
18 // |------------|
41 …CeedScalar r_right = (sqrt_left / (2 * sqrt_right * square_sum_root)) * drho_right - (sqrt_right /… in RoeSetup_fwd()
42 …CeedScalar r_left = (sqrt_right / (2 * sqrt_left * square_sum_root)) * drho_left - (sqrt_left / (… in RoeSetup_fwd()
62 …F_hll[i] = (s_right * F_left[i] - s_left * F_right[i] + s_left * s_right * (U_right[i] - U_left[i]… in Flux_HLL()
87 const CeedScalar S_diff = S_r - S_l; in Flux_HLL_fwd()
89 dF_hll[i] += (S_l * (-F_l[i] + F_r[i] + S_l * U_l[i] - S_l * U_r[i]) / Square(S_diff)) * dS_r; in Flux_HLL_fwd()
90 dF_hll[i] += (S_r * (F_l[i] - F_r[i] - S_r * U_l[i] + S_r * U_r[i]) / Square(S_diff)) * dS_l; in Flux_HLL_fwd()
91 dF_hll[i] += (S_r * dF_l[i] - S_l * dF_r[i] + S_r * S_l * (dU_r[i] - dU_l[i])) / S_diff; in Flux_HLL_fwd()
107 // Roe average eigenvalues for left and right non-linear waves. in ComputeHLLSpeeds_Roe()
114 CeedScalar a_roe = sqrt((gamma - 1) * (H_roe - 0.5 * Square(u_roe))); in ComputeHLLSpeeds_Roe()
117 *s_left = u_roe - a_roe; in ComputeHLLSpeeds_Roe()
129 // Roe average eigenvalues for left and right non-linear waves. in ComputeHLLSpeeds_Roe_fwd()
141 CeedScalar a_roe = sqrt((gamma - 1) * (H_roe - 0.5 * Square(u_roe))); in ComputeHLLSpeeds_Roe_fwd()
142 …CeedScalar da_roe = 0.5 * sqrt((gamma - 1) / (H_roe - 0.5 * Square(u_roe))) * dH_roe; // (da/dH) … in ComputeHLLSpeeds_Roe_fwd()
143 …da_roe -= 0.5 * sqrt(gamma - 1) * u_roe / sqrt(H_roe - 0.5 * Square(u_roe)) * du_roe; // (da/du) … in ComputeHLLSpeeds_Roe_fwd()
145 *s_left = u_roe - a_roe; in ComputeHLLSpeeds_Roe_fwd()
146 *ds_left = du_roe - da_roe; in ComputeHLLSpeeds_Roe_fwd()
154 // The left and right states are specified from the perspective of an outward-facing normal vector …
167 CeedScalar u_left = Dot3(left.Y.velocity, normal); in RiemannFlux_HLL()
168 CeedScalar u_right = Dot3(right.Y.velocity, normal); in RiemannFlux_HLL()
184 // @brief Forward-mode Derivative of Harten Lax VanLeer (HLL) approximate Riemann solver.
202 CeedScalar u_left = Dot3(left.Y.velocity, normal); in RiemannFlux_HLL_fwd()
203 CeedScalar u_right = Dot3(right.Y.velocity, normal); in RiemannFlux_HLL_fwd()
204 CeedScalar du_left = Dot3(dleft.Y.velocity, normal); in RiemannFlux_HLL_fwd()
205 CeedScalar du_right = Dot3(dright.Y.velocity, normal); in RiemannFlux_HLL_fwd()
221 CeedScalar fact = side.U.density * (s_side - u_side) / (s_side - s_star); in RiemannFlux_HLLC_Star()
222 CeedScalar denom = side.U.density * (s_side - u_side); in RiemannFlux_HLLC_Star()
227 side.Y.velocity[0] + (s_star - u_side) * normal[0], in RiemannFlux_HLLC_Star()
228 side.Y.velocity[1] + (s_star - u_side) * normal[1], in RiemannFlux_HLLC_Star()
229 side.Y.velocity[2] + (s_star - u_side) * normal[2], in RiemannFlux_HLLC_Star()
232 + (s_star - u_side) * (s_star + side.Y.pressure / denom) in RiemannFlux_HLLC_Star()
234 return StateConservativeAXPBYPCZ(1, F_side, s_side * fact, star, -s_side, side.U); in RiemannFlux_HLLC_Star()
241 CeedScalar fact = side.U.density * (s_side - u_side) / (s_side - s_star); in RiemannFlux_HLLC_Star_fwd()
242 …CeedScalar dfact = (side.U.density * (ds_side - du_side) + dside.U.density * (s_side - u_side)) / … in RiemannFlux_HLLC_Star_fwd()
243 - fact / (s_side - s_star) * (ds_side - ds_star); in RiemannFlux_HLLC_Star_fwd()
244 CeedScalar denom = side.U.density * (s_side - u_side); in RiemannFlux_HLLC_Star_fwd()
245 CeedScalar ddenom = side.U.density * (ds_side - du_side) + dside.U.density * (s_side - u_side); in RiemannFlux_HLLC_Star_fwd()
250 side.Y.velocity[0] + (s_star - u_side) * normal[0], in RiemannFlux_HLLC_Star_fwd()
251 side.Y.velocity[1] + (s_star - u_side) * normal[1], in RiemannFlux_HLLC_Star_fwd()
252 side.Y.velocity[2] + (s_star - u_side) * normal[2], in RiemannFlux_HLLC_Star_fwd()
255 + (s_star - u_side) * (s_star + side.Y.pressure / denom) in RiemannFlux_HLLC_Star_fwd()
260 dside.Y.velocity[0] + (ds_star - du_side) * normal[0], in RiemannFlux_HLLC_Star_fwd()
261 dside.Y.velocity[1] + (ds_star - du_side) * normal[1], in RiemannFlux_HLLC_Star_fwd()
262 dside.Y.velocity[2] + (ds_star - du_side) * normal[2], in RiemannFlux_HLLC_Star_fwd()
264 … dside.U.E_total / side.U.density - side.U.E_total / Square(side.U.density) * dside.U.density // in RiemannFlux_HLLC_Star_fwd()
265 + (ds_star - du_side) * (s_star + side.Y.pressure / denom) // in RiemannFlux_HLLC_Star_fwd()
266 …+ (s_star - u_side) * (ds_star + dside.Y.pressure / denom - side.Y.pressure / Square(denom) * dden… in RiemannFlux_HLLC_Star_fwd()
269 …const CeedScalar a[] = {1, ds_side * fact + s_side * dfact, s_side * fact, -ds_side, -s_sid… in RiemannFlux_HLLC_Star_fwd()
279 CeedScalar u_left = Dot3(left.Y.velocity, normal); in RiemannFlux_HLLC()
280 CeedScalar u_right = Dot3(right.Y.velocity, normal); in RiemannFlux_HLLC()
286 …CeedScalar numer = right.Y.pressure - left.Y.pressure + rhou_left * (s_left - u_left) - rhou_righ… in RiemannFlux_HLLC()
287 CeedScalar denom = left.U.density * (s_left - u_left) - right.U.density * (s_right - u_right); in RiemannFlux_HLLC()
309 CeedScalar u_left = Dot3(left.Y.velocity, normal); in RiemannFlux_HLLC_fwd()
310 CeedScalar u_right = Dot3(right.Y.velocity, normal); in RiemannFlux_HLLC_fwd()
311 CeedScalar du_left = Dot3(dleft.Y.velocity, normal); in RiemannFlux_HLLC_fwd()
312 CeedScalar du_right = Dot3(dright.Y.velocity, normal); in RiemannFlux_HLLC_fwd()
320 CeedScalar numer = right.Y.pressure - left.Y.pressure // in RiemannFlux_HLLC_fwd()
321 + rhou_left * (s_left - u_left) // in RiemannFlux_HLLC_fwd()
322 - rhou_right * (s_right - u_right); in RiemannFlux_HLLC_fwd()
323 CeedScalar dnumer = dright.Y.pressure - dleft.Y.pressure // in RiemannFlux_HLLC_fwd()
324 + rhou_left * (ds_left - du_left) + drhou_left * (s_left - u_left) // in RiemannFlux_HLLC_fwd()
325 - rhou_right * (ds_right - du_right) - drhou_right * (s_right - u_right); in RiemannFlux_HLLC_fwd()
326 CeedScalar denom = left.U.density * (s_left - u_left) - right.U.density * (s_right - u_right); in RiemannFlux_HLLC_fwd()
327 CeedScalar ddenom = left.U.density * (ds_left - du_left) + dleft.U.density * (s_left - u_left) // in RiemannFlux_HLLC_fwd()
328- right.U.density * (ds_right - du_right) - dright.U.density * (s_right - u_right); in RiemannFlux_HLLC_fwd()
330 CeedScalar ds_star = dnumer / denom - numer / Square(denom) * ddenom; in RiemannFlux_HLLC_fwd()