Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline JJTTBB  
#1 Posted : 03 February 2017 03:46:35(UTC)
JJTTBB

Rank: Newbie

Groups: Registered
Joined: 02/02/2017(UTC)
Posts: 5
Greece

problem.sm (5kb) downloaded 53 time(s).

Why do I see the message that units don't match?

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline JJTTBB  
#2 Posted : 03 February 2017 12:37:30(UTC)
JJTTBB

Rank: Newbie

Groups: Registered
Joined: 02/02/2017(UTC)
Posts: 5
Greece

Thank you very much for the file... However, I don't understand what to do... and I don't understand why I have to write at a random place the unit I want to use.
Let me explain please.
What I need to do is writing text and equations and results and some pictures maybe...like if I was using WORD or a DTP application. So, I can't just write text, units, formulas etc... here and there, it has to be nice and organized. Please have a look at the attachment.

So, the BIG question is this! : Do you think SMath is the right tool for this? Is it ready for - at least basic- document editing like the one I am trying to do?


I don't think that using areas will do the work.

I opened the file you sent. Ending the formula with mPa doesn't help... Everything is in kN/m and when I type "=" it turns to MPa... this is not correct and this is certainly not convinient.

I prepared a second file to show you what I mean...


problem1a.sm (7kb) downloaded 18 time(s).sample doc.jpg
Offline Davide Carpi  
#3 Posted : 03 February 2017 13:09:34(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
In general you should define a method to do your calculations and follow it in the whole worksheet;

  • with units:

    2017-02-03 11_02_13-SMath Studio - [problem.sm_].png

    Units are part of the calculations, illegal operations will be noticed (f.e. if you try to sum dimensionless values with values having a unit)


  • full dimensionless:

    2017-02-03 11_11_50-SMath Studio - [problem.sm_].png

    Units are given as separate regions, only for reader's convenience (units not involved in calculations -> no units' checks)


  • dimensionless with units given in results (like previous + Ignore units feature):

    2017-02-03 11_03_10-SMath Studio - [problem.sm_].png

    Units are given in result placeholder, only for reader's convenience (units not involved in calculations -> no units' checks); please notice that in 1st and 4th definitions the result is shown even if no calculations are involved; this is to insert the units in the result)




The 3rd is what you were tying to do in your worksheet, but you have assigned an unit to a variable, mixing with the 1st method; currently "ignore units" is a feature that works only if units are given in place (in the region in which you enable the feature). As you can see in the screenshot, you can make it working if you assign the variable to the result (not to the variable itself).


Originally Posted by: JJTTBB Go to Quoted Post
I opened the file you sent. Ending the formula with mPa doesn't help... Everything is in kN/m and when I type "=" it turns to MPa... this is not correct and this is certainly not convinient.

Results by design are given in base units ('m*'Pa in this case); just type the ones more appropriate for the context in the rightmost placeholder.

Edited by user 03 February 2017 13:47:00(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline JJTTBB  
#4 Posted : 03 February 2017 13:56:36(UTC)
JJTTBB

Rank: Newbie

Groups: Registered
Joined: 02/02/2017(UTC)
Posts: 5
Greece

Thank you for your quick answer. However, I would appreciate if I could get an answer on why Smath transformed kN/m to MPa since it is not correct...Because units are a good way to check if calculations are correct.

Offline Davide Carpi  
#5 Posted : 03 February 2017 14:47:33(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: JJTTBB Go to Quoted Post
Thank you for your quick answer. However, I would appreciate if I could get an answer on why Smath transformed kN/m to MPa since it is not correct...Because units are a good way to check if calculations are correct.


You're welcome Good

This is by design; units are stored in base units to perform calculations and returned in results as base units.

Result units might be not appropriate depending on the context, but are dimensionally correct (in fact you can change it without further corrections by the program's core).

In latest worksheet you posted above there are m, cm, mm; if they meets inside an equation, what should be the correct unit to give in result for lengths? And if you multiply a force for a length you are looking for the torque (force x distance -> kN*m, f.e.) or for the work (force x displacement -> J, f.e.)? The choosen behavior should be the same in any part of the worksheet?

These are only examples, you might imagine that this can be extended to many more cases. The program must be the more generic as possible, this approach solve these issues (the cost is that you might have to force the output unit)

However there is a feature request to have default output units (you can vote and make suggestions here: SS-1).

Edited by user 03 February 2017 15:04:59(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline mkraska  
#6 Posted : 03 February 2017 14:50:59(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: Davide Carpi Go to Quoted Post

  • dimensionless with units given in results (like previous + Ignore units feature):

    2017-02-03 11_03_10-SMath Studio - [problem.sm_].png



  • I had no idea what the context menu item "ignore units" was good for. Now I know: You can write statements like 1=1m. What is the reader supposed to think about it? Does it mean m=1?

    I strictly recommend to stick with units as tightly as possible using the first version described by Davide above.
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    thanks 1 user thanked mkraska for this useful post.
    on 03/02/2017(UTC)
    Offline mkraska  
    #7 Posted : 03 February 2017 14:53:32(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,980
    Germany

    Was thanked: 1120 time(s) in 718 post(s)
    Originally Posted by: JJTTBB Go to Quoted Post
    However, I would appreciate if I could get an answer on why Smath transformed kN/m to MPa since it is not correct...Because units are a good way to check if calculations are correct.



    Indeed, kN/m is not MPa, could you please show a minimum working example, where this happens?
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline Davide Carpi  
    #8 Posted : 03 February 2017 14:58:07(UTC)
    Davide Carpi


    Rank: Advanced Member

    Groups: Registered, Advanced Member
    Joined: 13/01/2012(UTC)
    Posts: 2,639
    Man
    Italy
    Location: Italy

    Was thanked: 1323 time(s) in 873 post(s)
    Originally Posted by: mkraska Go to Quoted Post
    Indeed, kN/m is not MPa, could you please show a minimum working example, where this happens?


    m*Pa, I guess was a typo in his post Good

    2017-02-03 12_57_37-SMath Studio - [problem(1).sm].png

    Edited by user 03 February 2017 15:05:46(UTC)  | Reason: Not specified

    If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
    Offline Novice  
    #9 Posted : 03 February 2017 15:01:44(UTC)
    Novice


    Rank: Member

    Groups: Registered
    Joined: 15/05/2016(UTC)
    Posts: 22
    Korea, Republic Of
    Location: Daejeon

    Was thanked: 1 time(s) in 1 post(s)
    Dear JJTTBB

    The Newton(N) is the unit of the force, and the Pascal(Pa) is the unit of the pressure.
    The pressure (Pa)is the force(N) per area(m^2).
    Please, refer to the attached file.

    MS problem1b.sm (8kb) downloaded 10 time(s).unit.PNG
    Offline JJTTBB  
    #10 Posted : 03 February 2017 15:14:28(UTC)
    JJTTBB

    Rank: Newbie

    Groups: Registered
    Joined: 02/02/2017(UTC)
    Posts: 5
    Greece

    Thank you all for such a quick response...

    @Novice: Yes... I understand what you show me but it is not right to have multiple units for the same thing... because "G" will be used again probably 1-2 pages later... Also, it is not correct for the reader.
    Offline Jean Giraud  
    #11 Posted : 03 February 2017 17:10:10(UTC)
    Jean Giraud

    Rank: Guest

    Groups: Registered
    Joined: 04/07/2015(UTC)
    Posts: 6,868
    Canada

    Was thanked: 980 time(s) in 808 post(s)
    Originally Posted by: JJTTBB Go to Quoted Post
    I don't understand why I have to write at a random place the unit I want to use.


    Your question has TWO answers:

    Unit kN.bmp

    Offline Lyster  
    #12 Posted : 13 February 2017 15:50:56(UTC)
    Lyster

    Rank: Newbie

    Groups: Registered
    Joined: 13/02/2017(UTC)
    Posts: 1
    Australia

    I get this error as well. I have attempted to refine the units and you'll see that I have broken the offending equation into it's component parts and resolved each half separately, which it does fine. It's only when I join them back together again I get the error...
    I'm new to this particular program but have used Mathcad alot so just not sure if I'm doing something wrong or misunderstanding the capabilities of this program...

    Refer attached.Confusion

    FAR36 Noise Assessment.sm (14kb) downloaded 15 time(s).

    Units error.png
    Offline csb531  
    #13 Posted : 13 February 2017 16:46:20(UTC)
    csb531


    Rank: Member

    Groups: Registered
    Joined: 10/10/2012(UTC)
    Posts: 24
    Netherlands

    Hello Lyster,
    It has something to do with the transition between ºC and Kelvin.
    You can see how Smath "sees" the units if you hoover with your mouse over the definitions / equations.

    I have no solution for you now, but i tried to force smath to give the wanted units, but found an error as it returns the same value in degrees Celsius and degrees Kelvin, see plot:
    Knipsel_C_K.JPG

    I suggest you try to find an answer in one of the topics about degrees Celsius and Kelvin (or Fahrenheit)...

    Sorry I cannot help you more for now.. Sad
    Offline omorr  
    #14 Posted : 14 February 2017 00:41:52(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Hello,

    One must be careful with temperature units. SMath (like Mathcad) has defined units for temperature changes. Therefore, use the temperature change unit for DeltaT.ISA.

    Regards,
    Radovan
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline mkraska  
    #15 Posted : 14 February 2017 16:48:19(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,980
    Germany

    Was thanked: 1120 time(s) in 718 post(s)
    As Radovan said, don't use non-absolute units for temperature changes. Temperature gradient is change of temperature per distance. If you don't like Kelvin, use Delta°C or friends. See the attached handbook section for temperature units. You find it in the portable distribution under

    Toolbar [?]> Units> Temperature units

    FAR36%20Noise%20Assessment_Kr.sm (14kb) downloaded 14 time(s).
    Section units temperature.sm (20kb) downloaded 16 time(s).
    2017-02-14 14_38_53.sm_].png
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Users browsing this topic
    Forum Jump  
    You cannot post new topics in this forum.
    You cannot reply to topics in this forum.
    You cannot delete your posts in this forum.
    You cannot edit your posts in this forum.
    You cannot create polls in this forum.
    You cannot vote in polls in this forum.