Skip to content

Commit

Permalink
equations: Add missing units in some equations
Browse files Browse the repository at this point in the history
There is no unit for some of the equations in the Columns and Beams
category. Notably, some equations are missing the units for `A` and
`I. Adding them back to avoid `Inconsistent units` error when the
variables are not already give a value with a unit (which was the case
from the easlier tests in the test suite).

Fixes: #1113

Signed-off-by: Christophe de Dinechin <[email protected]>
  • Loading branch information
c3d committed Aug 16, 2024
1 parent 3ce815c commit cbd165d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/equations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ static const cstring basic_equations[] =
" '(Pcr_kN)=(Ⓒπ²*(E_kPa)*(A_cm^2))/sq((K*(L_m))/(r_cm))' "
" '(Pcr_kN)=(Ⓒπ²*(E_kPa)*(I_mm^4))/sq(K*(L_m))' "
" '(σcr_kPa)=(Pcr_kN)/(A_cm^2)' "
" 'r = sqrt((I_mm^4)/(A_cm^2))' "
" '(r_cm)= sqrt((I_mm^4)/(A_cm^2))' "
"}",

"Eccentric Columns", "{"
" '(σmax_kPa)=((P_kN)/(A_cm^2))*(1+((ε_cm)*(c_cm))/sq(r_cm)*inv(cos(K/2*((L_m)/(r_cm))*sqrt((P_kN)/((E_kPa)*(A_cm^2)))*1_r)))'"
" 'r=sqrt(I/A)'"
" '(r_cm)=sqrt((I_mm^4)/(A_cm^2))'"
"}",

"Simple Deflection", "{"
Expand Down

0 comments on commit cbd165d

Please sign in to comment.