Skip to content

Commit f502398

Browse files
Docstrings 3D Lift/Drag Coeff: Area instead of length (#2459)
1 parent a5a6e27 commit f502398

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/callbacks_step/analysis_surface_integral_3d.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Compute the lift coefficient
1212
```math
1313
C_{L,p} \coloneqq \frac{\oint_{\partial \Omega} p \boldsymbol n \cdot \psi_L \, \mathrm{d} S}
14-
{0.5 \rho_{\infty} U_{\infty}^2 L_{\infty}}
14+
{0.5 \rho_{\infty} U_{\infty}^2 A_{\infty}}
1515
```
1616
based on the pressure distribution along a boundary.
1717
In 3D, the freestream-normal unit vector ``\psi_L`` is given by
@@ -29,7 +29,7 @@ and boundary information.
2929
- `aoa::Real`: Angle of attack in radians (for airfoils etc.)
3030
- `rho_inf::Real`: Free-stream density
3131
- `u_inf::Real`: Free-stream velocity
32-
- `a_inf::Real`: Reference area of geometry
32+
- `a_inf::Real`: Reference area of geometry (e.g. projected wing surface)
3333
"""
3434
function LiftCoefficientPressure3D(aoa, rho_inf, u_inf, a_inf)
3535
# `psi_lift` is the normal unit vector to the freestream direction.
@@ -42,12 +42,12 @@ function LiftCoefficientPressure3D(aoa, rho_inf, u_inf, a_inf)
4242
end
4343

4444
@doc raw"""
45-
DragCoefficientPressure3D(aoa, rho_inf, u_inf, l_inf)
45+
DragCoefficientPressure3D(aoa, rho_inf, u_inf, a_inf)
4646
4747
Compute the drag coefficient
4848
```math
4949
C_{D,p} \coloneqq \frac{\oint_{\partial \Omega} p \boldsymbol n \cdot \psi_D \, \mathrm{d} S}
50-
{0.5 \rho_{\infty} U_{\infty}^2 L_{\infty}}
50+
{0.5 \rho_{\infty} U_{\infty}^2 A_{\infty}}
5151
```
5252
based on the pressure distribution along a boundary.
5353
In 3D, the freestream-tangent unit vector ``\psi_D`` is given by
@@ -65,12 +65,12 @@ and boundary information.
6565
- `aoa::Real`: Angle of attack in radians (for airfoils etc.)
6666
- `rho_inf::Real`: Free-stream density
6767
- `u_inf::Real`: Free-stream velocity
68-
- `l_inf::Real`: Reference length of geometry (e.g. airfoil chord length)
68+
- `a_inf::Real`: Reference area of geometry (e.g. projected wing surface)
6969
"""
70-
function DragCoefficientPressure3D(aoa, rho_inf, u_inf, l_inf)
70+
function DragCoefficientPressure3D(aoa, rho_inf, u_inf, a_inf)
7171
# `psi_drag` is the unit vector tangent to the freestream direction
7272
psi_drag = (cos(aoa), sin(aoa), zero(aoa))
73-
return DragCoefficientPressure(ForceState(psi_drag, rho_inf, u_inf, l_inf))
73+
return DragCoefficientPressure(ForceState(psi_drag, rho_inf, u_inf, a_inf))
7474
end
7575

7676
# 3D version of the `analyze` function for `AnalysisSurfaceIntegral`, i.e.,

0 commit comments

Comments
 (0)