From 05d5bcfdfece7ed0e593f2ba9272f75ee62f8d27 Mon Sep 17 00:00:00 2001 From: Arpit Babbar Date: Wed, 24 Jan 2024 19:30:36 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Daniel Doehring --- src/callbacks_step/analysis_surface_2d.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/callbacks_step/analysis_surface_2d.jl b/src/callbacks_step/analysis_surface_2d.jl index f984849448b..1f02ba3f0a9 100644 --- a/src/callbacks_step/analysis_surface_2d.jl +++ b/src/callbacks_step/analysis_surface_2d.jl @@ -1,8 +1,3 @@ -using Trixi -using Trixi: integrate_via_indices, norm, apply_jacobian_parabolic!, @threaded, - indices2direction, - index_to_start_step_2d, get_normal_direction, dot, get_node_coords -import Trixi: analyze, pretty_form_ascii, pretty_form_utf struct AnalysisSurfaceIntegral{Indices, Variable} indices::Indices @@ -32,12 +27,14 @@ struct DragForcePressure{RealT <: Real} end function LiftForcePressure(aoa::Real, rhoinf::Real, uinf::Real, linf::Real) + # Ψl is the normal unit vector to the freestream direction Ψl = (-sin(aoa), cos(aoa)) force_state = ForceState(Ψl, rhoinf, uinf, linf) return LiftForcePressure(force_state) end function DragForcePressure(aoa::Real, rhoinf::Real, uinf::Real, linf::Real) + # Ψd is the unit vector parallel to the freestream direction Ψd = (cos(aoa), sin(aoa)) return DragForcePressure(ForceState(Ψd, rhoinf, uinf, linf)) end