Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMath Studio - Units 3

Status
Not open for further replies.

dik

Structural
Apr 13, 2001
26,044
I'm doing some sheets in SMath Studio and am having some difficulty with units in some of the code equations. They produce a numeric value, but, the units are not consistent within the equation.

I'm currently adding another 'coefficient' that 'neutralises' the units within the equation and eliminates them, and providing a correct unit at the end of the equation for all parts.

Does anyone know of a simpler manner of overriding SMath units?

Dik
 
Replies continue below

Recommended for you

Rewrite the equations with a consistent set of units and convert the inputs as necessary.
 
Thanks... I was afraid of that...

Dik
 
For example, the formula direct from the CSA Standard (concrete code) is Ec = (3300*sqrt(f'c)+6900)*(γ.c/2300)^1.5

where f'c is MPa, gamma is kg/m^3, c is MPa, all raised to various powers... the result is MPa. I have to introduce coefficients that render the results dimensionless and then tack on a unit.

Dik
 
Thanks Greg... would have to introduct coef that rendered the equation as dimensionless and then add one to the end.

Dik
 
Thanks Greg... would have to introduct coef that rendered the equation as dimensionless and then add one to the end.

That's what is discussed in the thread I linked. I don't have time to go through the discussion right now, but there are some alternative procedures in there.

Doug Jenkins
Interactive Design Services
 
IDS said:
That's what is discussed in the thread I linked. I don't have time to go through the discussion right now, but there are some alternative procedures in there.

Yes, went through that thread... good post... and was my original solution... I was just hoping there would be an easier method. SMath, if you run your mouse cursor over the formula, yields the units, and it would be a matter of correcting for these.

Dik
 
IRS: Thread was good...

thanks, Dik
 
More bulletproof way is to make f'c and γ.c dimensionless using division by MPa and kg/m^3. It will allow to use US or SI units for definitions. Please see attached.
image_y3mlvm.png
 
Yakpol:
Thanks, long time no hear...

Dik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor