cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Beam bending using finite differences

SM_6465178
10-Marble

Beam bending using finite differences

Hi All, 

 

We have been using this worksheet for a while which in theory allow us to look at different restrain configurations. Its always been a bit flakey, but converting to Prime seems to have finally killed it. 

 

I just wonder if anyone has some advice on how to get it to work?

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:SM_6465178)

I stopped at the first error thrown

The error about unit mismatch is thrown because you can't add a dimensionless quantity (C) and a quantity with unit N*m/s^2 (P).

Werner_E_1-1688077620736.png

Prime isn't using SUC (static unit check) anymore and so its necessary to apply a unit even if the value is zero!

But even if we fix this, we get a similar error, This time because Load is a vector in N, but add(P) results in a vector in N*m/s^2.

Werner_E_2-1688077831097.png

Haven't look further as this sure has to be fixed first.

It may have worked in Mathcad because all involved values seem to be zero anyway. But you sure can't and shouldn't add quantities of different dimensions!

View solution in original post

6 REPLIES 6
Werner_E
25-Diamond I
(To:SM_6465178)

I stopped at the first error thrown

The error about unit mismatch is thrown because you can't add a dimensionless quantity (C) and a quantity with unit N*m/s^2 (P).

Werner_E_1-1688077620736.png

Prime isn't using SUC (static unit check) anymore and so its necessary to apply a unit even if the value is zero!

But even if we fix this, we get a similar error, This time because Load is a vector in N, but add(P) results in a vector in N*m/s^2.

Werner_E_2-1688077831097.png

Haven't look further as this sure has to be fixed first.

It may have worked in Mathcad because all involved values seem to be zero anyway. But you sure can't and shouldn't add quantities of different dimensions!

Hi,

Here is a fully working sheet with all errors gone.

Thank you guys. It was doing my head in that it was working in MathCAD 15 last week, but now I want to use it in Prime it wasn't,

 

What a fantastic community this is!

From the snippet of code I recognised this as mine.  (I'm sorry it has proved to be 'flaky', it works OK for me in 'proper' mathcad.)

Of course the Load vector add(P) vector need to be in the same units, which are kN. 

Thought you might like the latest version, I discovered that it only took some small additions

to allow the distributed loads and suppots to be trapezoidal, not just uniformly distributed.  

 

Add 0 right units.

ttokoro_0-1689161354562.png

image.pngimage.pngimage.png

Hi Bill,

 

It has proved to be a worthwhile thing to have, and its has been used a few times when we have had multiple reactions with reasonable success. Its been around for a while, and I imagine there are a number of people at work who have "bashed" it around to suit what they wanted, and unfortunately its always the bashed version that continues on and becomes more and more unreliable (in terms of getting it  to calculate a result) as more and more people introduce junk.

 

But thank you so much for your original work, and for the update.

Announcements

Top Tags