From cbd165d0f3c179e429f046cd493e1907dcdf0df7 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Fri, 16 Aug 2024 19:26:59 +0200 Subject: [PATCH] equations: Add missing units in some equations 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 --- src/equations.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equations.cc b/src/equations.cc index 4dda1f42..63144596 100644 --- a/src/equations.cc +++ b/src/equations.cc @@ -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", "{"