Skip to main content
12-Amethyst
January 13, 2022
Solved

Prime 7 and odesolve

  • January 13, 2022
  • 2 replies
  • 2602 views

I recently encountered an issue with Prime 7. The function odesolve doesn't work the way it used to in Prime 5 and I can't figure out why. 

 

I'm updating my MathCAD sheets to Prime 7 and my current header and coding standards, and finding that there's an issue with odesolve. 

 

Here is my solve block showing the differential equation for deflection of a beam. It's a simply supported beam, so deflection delta at 0 and at the beam's end L are both zero. 

KP_10136622_2-1642112871516.png

E is in units of GPa, Iy in units of mm^4, length l in units of m, and M(x) in units of kN*m. I have verified that all units are correct. 

 

When I open this MathCAD sheet in Prime 7, I get an error "These units are not compatible", but when I open it in Prime 5, I get no error and the thing works. 

 

What is different about Prime 7 that causes the functionality not to work anymore? MathCAD sheet attached. 

 

Please help!

 

Thanks!

 

 

Best answer by KevinFinity

OK... I don't know why this is, but I solved my problem. You're not gonna believe the solution.

 

KP_10136622_0-1642114749276.png

 

In the boundary condition at d(l) = 0 in, I had to delete the units from the right hand side of the equation.

 

I don't know why, and it definitely shouldn't work this way, but it works. 

2 replies

KevinFinity12-AmethystAuthorAnswer
12-Amethyst
January 13, 2022

OK... I don't know why this is, but I solved my problem. You're not gonna believe the solution.

 

KP_10136622_0-1642114749276.png

 

In the boundary condition at d(l) = 0 in, I had to delete the units from the right hand side of the equation.

 

I don't know why, and it definitely shouldn't work this way, but it works. 

21-Topaz II
January 13, 2022

Hi,

Glad you found the problem.

You could directly calculate the maximum deflections.

Capture.JPG

Cheers

Terry

12-Amethyst
January 14, 2022

Thanks, Terry.  The reason I do it using odesolve and not the direct formula is because I sometimes need to change the M(x) equation. It's easier and I make fewer mistakes to only change one thing. 

23-Emerald IV
January 13, 2022

Some calculus. if I made no mistake, gives:

LucMeekes_0-1642117124799.png

You should be able to compare that with the Odesolve result.

(I'll leave the other ODE to you...)

 

Success!

Luc

12-Amethyst
January 14, 2022

Hi Luc,

 

Your answer is really close to the formula published at

Digital Edition - 14th Edition Steel Construction Manual (usc.edu)

KP_10136622_0-1642118884565.png

 

Well done with your calculus!