User functions

User functions - Help needed for simple problem - Mensajes

#1 Publicado: 25/4/2019 4:35:25
AndreasH

AndreasH

0 me gusta en 2 mensajes.

Grupo: User

test.sm (7,4 KiB) descargado 1164 vez(es).


Dear all. I am trying to solve an equation, eq. See attached .sm file. The equation does not have the variable directly, but via other definitions. I can't make this work. Anyone out there able to help quickly?


-Andreas-
#2 Publicado: 25/4/2019 6:28:57
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Hello Andreas,

there are several issues in your worksheet.

  • The shear stress must be Tau(F) or Tau - at your choice - both in definition and in Von Mises equation;
  • Once you fix it you can see that units of Tau are wrong, it's a force while should be a stress - F/(b*L) I guess;
  • Then you should handle the unit of F; use eq(F) to define the Von Mises yeld criterion and set the unit in the first argument of solve, like eq(F*'kN) or eq(F*'N);
  • Finally give a range to solve, otherwise the default of the program you are running it is used;


test - r1.sm (11,99 KiB) descargado 1145 vez(es).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
A 1 usuarios les gustó este mensaje
sergio 25/4/2019 6:41:00
#3 Publicado: 25/4/2019 8:23:38
AndreasH

AndreasH

0 me gusta en 2 mensajes.

Grupo: User

Thank you Davide.

Sloppy mistake on my part on the shear stress definition Tau. By the way, can the solve-function return with a unit number or does it have to return a unitless answer?

I can easily fix it of course by writing F:=solve(eq(F*'kN),F,0,1000)*'kN


-Andreas-
#4 Publicado: 25/4/2019 9:03:45
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Wrote

Thank you Davide.

Sloppy mistake on my part on the shear stress definition Tau. By the way, can the solve-function return with a unit number or does it have to return a unitless answer?

I can easily fix it of course by writing F:=solve(eq(F*'kN),F,0,1000)*'kN


-Andreas-



Yes I forget it, that's the way to set the output units (solve as for now can't handle automatically input/output units of unknowns).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • Nuevos mensajes
  • Sin mensajes nuevos