Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Doehring <[email protected]>
  • Loading branch information
Arpit-Babbar and DanielDoehring authored Jan 24, 2024
1 parent 153f6c0 commit 05d5bcf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/callbacks_step/analysis_surface_2d.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 05d5bcf

Please sign in to comment.