Units don't match?

Units don't match? - Messages

#1 Posted: 3/9/2025 10:02:43 AM
netsonicyxf

netsonicyxf

2 likes in 79 posts.

Group: User

How to solve it?
File not found.File not found.
#2 Posted: 3/9/2025 11:42:44 AM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

Don't know your purpose but it seems you created beta function twice, with same name.
And they should be differ according to your variable units.
Is solution below a possible candidate?

Regards

2025-03-09_06-39.png
3 users liked this post
netsonicyxf 3/9/2025 11:46:00 AM, NDTM Amarasekera 3/9/2025 3:33:00 PM, sergio 3/10/2025 4:23:00 AM
#3 Posted: 3/11/2025 9:12:12 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Why this works when the line operator is removed as shown ?

Line Operator Problem.png

Prestress Tension Loss Verification as per EN 1992-R1.sm (29 KiB) downloaded 58 time(s).
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 users liked this post
sergio 3/12/2025 12:46:00 AM
#4 Posted: 3/12/2025 9:41:55 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Why this works when the line operator is removed as shown ?...



Hi Amarasekera. Although β.H2 has a numerical result, changing the value of h also changes the value of β.H2, which doesn't happen with β.H. This is because line causes β.H2 to be evaluated each time it is used, while the value in β.H remains constant and fixed.

vec.png

In this way, vectorize is evaluated with the Min function for β.H2, and vectorize generally does not work well with matrix functions.

A version of β.H without matrix functions, with cases, for example, shouldn't have this problem. However, the correct approach is that if β.H is going to hold a constant value, there's no need for it to be evaluated every time it's used.

Best regards.
Alvaro.
1 users liked this post
NDTM Amarasekera 3/14/2025 3:35:00 PM
#5 Posted: 3/14/2025 4:09:53 PM
NDTM Amarasekera

NDTM Amarasekera

130 likes in 352 posts.

Group: User

Thank you Alvaro for your useful comments.
As you suggested, the cases function does not create any issues.

Line Operator vs cases function.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 users liked this post
Alvaro Diaz Falconi 3/15/2025 11:10:00 AM
  • New Posts New Posts
  • No New Posts No New Posts