HP Forums
Mohr's Circle - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Mohr's Circle (/thread-2396.html)



Mohr's Circle - mop80087 - 11-06-2014 11:59 AM

Hi All,

Anyone has an idea to make a program to Mohr's Circle to HP PRIME?

Cumprimentos
Best regards/Mit freundlichen Grüßen
Diamantino


RE: Mohr's Circle - mop80087 - 11-07-2014 04:41 PM

Well, I don't want you to do the program but intend to collect opinions to do so. How to plot circles, etc.


RE: Mohr's Circle - Tim Wessman - 11-07-2014 04:44 PM

I think the geometry application has everything you need already in it. :-)

I would start by looking to make a construction in the geometry app. Once you have things working like you desire, you can add a screen to allow entry of specific numbers for calculations, reset things to default values, etc.

[EDIT]
[attachment=1194]
Here is an example to get you started. Using the connkit, just drag/drop that into your calc tree to load into the emulator or calc.

I have 3 numerical values declared in the appprogram. These are used in calculating the positions of things in the geometry screen. Take a look at the geometry num/plot/symb screens to see how you can start linking things together.

A small user UI prompt to ask for specific values would then pipe everything through and all your display/drawing is handled dynamically.

[Image: mohrs.png]


RE: Mohr's Circle - Han - 11-07-2014 04:46 PM

The command you will likely want to use (in a program) is ARC() or ARC_P(). Using ARC_P() should enable you to draw circles using pixel coordinates and avoid having to worry about the window settings.


RE: Mohr's Circle - mop80087 - 11-07-2014 07:40 PM

Thank's Tim that was what I wanted, the correct starting point.
And thank's Han that's help.


RE: Mohr's Circle - mop80087 - 11-18-2014 02:01 PM

Hi,

MohrsCircle.zip (Size: 1.14 KB / Downloads: 24)

a lot of downloads and only Tim and Han replays, just a joke...

It's possible to lock de graphic area?


RE: Mohr's Circle - Tim Wessman - 11-18-2014 02:42 PM

It is not possible to lock specific elements at the moment. It is on the list of things to look at however.


RE: Mohr's Circle - mop80087 - 11-19-2014 11:38 AM

Thank's Tim and gracias Fredy.
That's what I was trying to improve, but with 3 circles Mohr 3D. No luck at the moment.
But stopped when I touched in the calculator and everything moves.


RE: Mohr's Circle - akmon - 11-19-2014 06:41 PM

(11-19-2014 01:10 AM)compsystems Wrote:  


Interesting aplication. thank you for posting it.
Is it possible to share the program or command line to see how you resolved the editable variables? Thank you.


RE: Mohr's Circle - akmon - 11-19-2014 06:49 PM

(11-19-2014 11:38 AM)mop80087 Wrote:  Thank's Tim and gracias Fredy.
That's what I was trying to improve, but with 3 circles Mohr 3D. No luck at the moment.
But stopped when I touched in the calculator and everything moves.

Wow, Mohr 3D would be impressive. There´s no background with this kind of program on any HP series. Even it´s difficult to find documentation.


RE: Mohr's Circle - Han - 11-19-2014 09:00 PM

(11-19-2014 06:49 PM)akmon Wrote:  
(11-19-2014 11:38 AM)mop80087 Wrote:  Thank's Tim and gracias Fredy.
That's what I was trying to improve, but with 3 circles Mohr 3D. No luck at the moment.
But stopped when I touched in the calculator and everything moves.

Wow, Mohr 3D would be impressive. There´s no background with this kind of program on any HP series. Even it´s difficult to find documentation.

I'm not sure I understand what Mohr 3D would be. Is that Mohr's circle for 3-dimensional state of stress? (Wouldn't that still be a 2-dimensional diagram, but with 3 circles?)


RE: Mohr's Circle - akmon - 11-19-2014 09:58 PM

Exactly. It´s composed by 3 circles, the last one envolves the other two. The área between the big circle and the 2 smaller is the domain of any stress situation of the solid.


RE: Mohr's Circle - Mic - 11-20-2014 05:48 AM

Nice job