15-Moonstone
April 14, 2020
Solved
Define Unit in ODEs
- April 14, 2020
- 5 replies
- 2315 views
Dear all
Could you find the error of unit in equation why i can not find solution? attachment Pic&file below
Thank you

The dimension of stiffness is force per length or mass per time^2.
So you would have to change the unit for "k" to something like "N/m" or "kg/s^2" for the solve block to work.
But using the initial conditions you provide, the solution x(t) trivially would be constant zero.
I guess that you would have to change one of x.0 or x'.0 from zero to a non-zero value.
Here's an example:

BTW, you may already have noticed - the diagram components you are trying to use are not unit aware
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.