SMath Studio Forum
»
SMath Studio
»
Questions
»
Cannot solve a matrix equation with the Maxima plug-in
Rank: Advanced Member Groups: Registered
Joined: 18/10/2020(UTC) Posts: 50
|
Hi, I'd like to solve the following equation involving matrices for unknown v and θ: After inputting it in the format used by the Maxima plug-in I get the "no result" message: Am I doing something wrong ? Matrix equation.sm (9kb) downloaded 14 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: EngMath Am I doing something wrong ? Your setup is not correct.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 26/07/2022(UTC) Posts: 35 Location: UK Was thanked: 21 time(s) in 18 post(s)
|
I think the problem is that the units don't match. Compare the units of the components of the two terms inside the brackets that multiply the [v; theta] vector.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: StvMath I think the problem is that the units don't match. Compare the units of the components of the two terms inside the brackets that multiply the [v; theta] vector.
FindRoots ignores Units. Code the image first. Solve FindRoots Complex Forum.sm (12kb) downloaded 3 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 18/10/2020(UTC) Posts: 50
|
Originally Posted by: Jean Giraud Your setup is not correct. Thank you, I didn't know that I should use the Nonlinear Solvers plug-in instead of the Maxima one. It works now but the result is surprising. It should be something like v = - 0.021020 for the real part with this input data. Originally Posted by: StvMath I think the problem is that the units don't match. Compare the units of the components of the two terms inside the brackets that multiply the [v; theta] vector.
I also suspected the units initially but it didn't work without them either.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 26/07/2022(UTC) Posts: 35 Location: UK Was thanked: 21 time(s) in 18 post(s)
|
I also suspected the units initially but it didn't work without them either.
In order to be able to add the two terms they must have the same units. However, omega^2*L doesn't have the same units as EI/L^3. The omega^2*... term seems to be missing a linear mass density (kg/m). The fact that you might be able to get a numerical result by simply removing the units is irrelevant.Edited by user 13 June 2023 17:20:06(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 18/10/2020(UTC) Posts: 50
|
Originally Posted by: StvMath In order to be able to add the two terms they must have the same units. However, omega^2*L doesn't have the same units as EI/L^3. The omega^2*... term seems to be missing a linear mass density (kg/m). The fact that you might be able to get a numerical result by simply removing the units is irrelevant.
Right, I was wondering why density/mass is not included in that equation. Especially since it's included in the equation for tension (the one here is for bending): https://code-aster.org/V...n/man_v/v2/v2.06.101.pdfMaybe it's a typo and the density should be added before the first omega. Or omega means something different than I assumed (angular frequency). Edit: I tried calculating mass per unit length based on the density and cross-section area provided in the document and then multiplying it by omega^2 but the result is v = 0,0175 which is still far from the expected value. Edited by user 13 June 2023 21:21:32(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
Besides correction of the unit mismatch, Solve seems to want the matrix equation in homogeneous form. Matrix equation_Kr.sm (15kb) downloaded 5 time(s). |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Hi. Another way. Best regards. Alvaro.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Cannot solve a matrix equation with the Maxima plug-in
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.