eval_face_sensor Function

private function eval_face_sensor(state, iface, q_stencil) result(s)

Evaluate the hybrid shock sensor for face iface.

Dispatches to the sensor type set in state%cfg%hybrid_sensor: 'jameson' — Jameson-Schmidt-Turkel pressure second-derivative sensor (JST 1981, AIAA Paper 81-1259). 'density_gradient' — Normalised density jump across the face. 'weno_beta' — WENO5 smoothness-indicator ratio on density (Jiang & Shu 1996, Eq. 24-26); falls back to density_gradient for non-5-point schemes or when q_stencil has < 5 columns.

             pass a zero-column slice for the FVS path.

Arguments

Type IntentOptional Attributes Name
type(solver_state_t), intent(in) :: state

Solver state (solution arrays and config).

integer, intent(in) :: iface

Face index in [1, n_pt+1].

real(kind=wp), intent(in) :: q_stencil(:,:)

Return Value real(kind=wp)