Can't use dimension with sqrt()

Can't use dimension with sqrt()

SGoldthwaite
Collaborator Collaborator
2,618 Views
4 Replies
Message 1 of 5

Can't use dimension with sqrt()

SGoldthwaite
Collaborator
Collaborator

I am drying to enter an expression like sqrt(d1), but Fusion won't accept it.  It will accept regular numbers like sqrt(9).  Why can't I use dimensions variables?

 

 

Accepted solutions (1)
2,619 Views
4 Replies
Replies (4)
Message 2 of 5

jeff_strater
Community Manager
Community Manager
Accepted solution

It's a units thing.  Fusion is very literal regarding units.  If you take the square root of "9 mm", the actual value would be 3 sqrt(mm).  So, you have to do some units gymnastics:  "sqrt (d2/1 mm) * 1mm".

 

 


Jeff Strater
Engineering Director
Message 3 of 5

HughesTooling
Consultant
Consultant

I think the help is wrong, it states any for the units but a quick test shows it only works with unitless so you need something like sqrt(d1/1mm)

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 4 of 5

HughesTooling
Consultant
Consultant

@jeff_strater thanks for the clarification, still not sure I understand you answer though. Can sqrt() be used without canceling the units?

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 5 of 5

jeff_strater
Community Manager
Community Manager

Hi @HughesTooling,

 

No, unfortunately, sqrt() is specified to be a "unitless" method.  So, you do have to cancel out the units for it to work.  Just like round(), etc.


Jeff Strater
Engineering Director
0 Likes