Units don't match?

Units don't match? - Messaggi

#1 Pubblicato: 09/03/2025 10:02:43
netsonicyxf

netsonicyxf

2 apprezzamenti in 79 post.

Gruppo: User

How to solve it?
File non trovato.File non trovato.
#2 Pubblicato: 09/03/2025 11:42:44
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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 utenti hanno apprezzato questo post
netsonicyxf 09/03/2025 11:46:00, NDTM Amarasekera 09/03/2025 15:33:00, sergio 10/03/2025 04:23:00
#3 Pubblicato: 11/03/2025 21:12:12
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: 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,76 KiB) scaricato 1822 volta(e).
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 utenti hanno apprezzato questo post
sergio 12/03/2025 00:46:00
#4 Pubblicato: 12/03/2025 09:41:55
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 utenti hanno apprezzato questo post
NDTM Amarasekera 14/03/2025 15:35:00
#5 Pubblicato: 14/03/2025 16:09:53
NDTM Amarasekera

NDTM Amarasekera

130 apprezzamenti in 352 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 15/03/2025 11:10:00
  • Nuovi post
  • Nessun nuovo post