Page 1 of 1
Mohr's Circles and p-q (s-t) plots from Sigma1 and Sigma3
Posted: Mon Aug 28, 2006 10:34 pm
by jksmurf
Hi.
Subject says it all really. What I'm looking for is the ability to simply and easily plot:
1. A family of Mohr's Circles and
2. p-q (s-t) plots with a best fit line showing cohesion and friction angle.
from a table of major minor stresses Sigma1 and Sigma3. i.e. highlight the data and press go and it produces both plots.
I currently do this with a spreadsheet, it's not rocket science, but it would be really nice in DPLOT.
http://www.usace.army.mil/usace-docs/en ... 02/a-d.pdf
Cheers
Kristian
Posted: Tue Aug 29, 2006 8:00 am
by DPlotAdmin
That's an excellent suggestion, thanks. And thanks for the reference.
Posted: Tue Aug 29, 2006 9:44 am
by DPlotAdmin
Kristian,
At your convenience please send me an example set or 2 of your stresses Sigma1 and 3 to work with.
Posted: Mon Sep 04, 2006 4:35 am
by jksmurf
Done, sent you my MC p-q spreadsheet sorry I didn't see your post earlier. It's a bit rudimentary, but it works (I think).
k.
Posted: Mon Sep 04, 2006 12:04 pm
by DPlotAdmin
Kristian,
Thanks for the examples. I'm reasonably certain I've done this correctly but it may not be quite the implementation you had in mind. Your comments are welcome. You can get the Mohr's Circle plugin from
http://www.dplot.com/plugins/generate/mohr.dll (56Kb). Copy that file to the \plugins\generate folder below dplot.exe. It expects a single "curve" with X values=sigma1, Y values=sigma3 and produces a new document.
I ran across a couple of bugs in DPlot related to plugins that generate a new document and default array sizes being too small. When that happens the plugin will fail w/o an error message. This is fixed on my system; on yours before you run Generate>Mohr's Circle you'll need to set the maximum number of curves to the number of data points in your input plus one (or anything larger) and the maximum number of points/curve to 181 or more. Those values are copied to the new document when the plugin runs.
From your PQ_plots1.zip, I get sigma1 and sigma3 values of:
329 46
630 185
387 89
524 140
127 32
359 108
584 118
540 141
170 42
608 112
145 34
213 64
If you copy those values to a blank document, then select Generate>Mohr's Circle, you should get a new graph that looks something like:
Unless it is just blind luck, your circles won't be circular. I've changed DPlot to accept command strings from plugins and this (making circular circles) will be handled automatically as in the image above.
Again, comments and suggestions are welcome.
Posted: Mon Sep 04, 2006 9:41 pm
by jksmurf
Wahaaayy!! Wow you're quick... Thank you!
Well I just copied and pasted your list above when I looked in my PQ_plots 1, my s1, s3 were ??? i.e. where did you get THOSE numbers ???
657.0 92.0
1259.7 369.5
773.5 177.7
1048.3 279.9
254.0 64.0
717.2 216.2
1167.4 236.0
1079.5 281.5
340.9 84.1
1216.8 224.0
289.6 68.0
425.8 128.6
576.3 138.5
here's what I get using your list, just copied from above and directly pasted in Dplot. Slightly different?
No the circles are not round.... hey even my spreadsheet has a macro to make them round LOL!

(All in good time!).
So how about the s-t (p-q) curves and the second option m-c alternate, can you plot those too? (Please). What happens if regressed c< 0?
k.
Posted: Mon Sep 04, 2006 11:14 pm
by DPlotAdmin
Well I just copied and pasted your list above when I looked in my PQ_plots 1, my s1, s3 were ??? i.e. where did you get THOSE numbers ???
On your PQWorksheet page, column B is p'=(sigma1+sigma3)/2, C is p'=(sigma1-sigma3)/2. So sigma1 = B+C, sigma3=B-C. Except ARRGGGH, that's not what I did. I used (B+C)/2 and (B-C)/2. Whoops.
here's what I get using your list, just copied from above and directly pasted in Dplot. Slightly different?
Yes, but only because of a formatting goof. The numbers I pasted here had 0 decimal places. The numbers I used in DPlot didn't have that limitation.
If I do the darn thing correctly I get the same values you show in columns N and O, which produces this plot:
So how about the s-t (p-q) curves and the second option m-c alternate, can you plot those too? (Please). What happens if regressed c< 0?
I'm sure that won't be a problem after I spend a bit of time looking it over. (It has been a few decades since I've needed to think about Mohr's circles

)
C < 0 isn't handled properly now; the plot will be clipped at Y=0. I'll fix that. (Actually in
your version of DPlot it will come out OK, since DPlot will ignore the plugin's attempt to force the extents.) And after writing this it occurs to me that that's not what you meant... you mean that C should not be allowed to be less than 0, right? I hadn't thought of that, thanks.
Posted: Mon Sep 04, 2006 11:38 pm
by jksmurf
If I do the darn thing correctly I get the same values you show in columns N and O, which produces this plot:
Thassbetter!
I'm sure that won't be a problem after I spend a bit of time looking it over. (It has been a few decades since I've needed to think about Mohr's circles

)
No worries, this isn't rocket science... it's just regression. I tried researchign forced regression where you fix c and let it regress phi, but while stats s/w like R can do this, Excel is much tricker, and the Rsquared values go down the tubes anwyay. Would still be a nice option though!
...you mean that C should not be allowed to be less than 0, right? I hadn't thought of that, thanks.
Yep...that's what my second line does.. that awful
phi=INDEX(LINEST(RoscoeAllData_t,RoscoeAllData_s,IF(INTERCEPT(RoscoeAllData_t,RoscoeAllData_s)<0,FALSE,TRUE)),2) setup and
c= =INDEX(LINEST(RoscoeAllData_t,RoscoeAllData_s,IF(INTERCEPT(RoscoeAllData_t,RoscoeAllData_s)<0,FALSE,TRUE)),1)
k.
Mohrs plots with sigma1 and sigma 3
Posted: Sat Sep 30, 2006 2:40 pm
by Laxmi
Hi,
I was looking for the mohrs plotting program with sigma1 and sigma 3 data and was impressed with dplot capabilities to do this. However, i was disappointed when i downloaded a trial version and could not find the generate>mohrs feature as suggested in one of the discussion forum replies. I am ready to buy this but want to make sure Mohrs feature is available.
Any clues or suggestion appreciated.
Thanks
Laxmi
Posted: Sat Sep 30, 2006 3:04 pm
by DPlotAdmin
You can get the Mohr's Circle plugin here:
http://www.dplot.com/plugins/generate/mohr.dll
Create a \plugins\generate folder below dplot.exe, save the file to that folder. The next time you run DPlot you should see a "Mohr's Circle" menu item on the Generate menu.
(I got your phone message but a nasty bug has me unable to speak much at the moment. I'll be happy to answer any of your questions here or by e-mail.)
Mohrs plots
Posted: Sun Oct 01, 2006 4:24 pm
by Laxmi
Thank you David for prompt response.
I have tried using a pair of Sigma1 and sigma3 numbers and it plots Ok. But not sure the plots were going through the origin which is some thing odd and want to make sure the program you wrote is correct. I will try more pairs and see how it is coming up. Is there any way to import data from excel? I am sure there should be a way as I have not gone through whole of the features. Once these are clarified I will go for it.
Thanks
Laxmi
Posted: Sun Oct 01, 2006 6:05 pm
by DPlotAdmin
If you didn't get my previous e-mail response, here it is again:
As far as I can tell the code is correct. I'm not sure what you mean about going through the origin. If you have an example data set you can send me I will be happy to take a look at it.
There are a couple of ways to import data from Excel. Both depend on your data being arranged in columns. If you have sigma1 in one column, sigma3 in another column, you can either 1) select the data, Copy, then Paste in DPlot. Or 2) if you elected to install the DPlot Add-In, select the data then select the XYXY command on the DPlot menu.
Posted: Sun Oct 01, 2006 9:51 pm
by Laxmi
My next mail gives the sigma1 and sigma 3data
Posted: Sun Oct 01, 2006 9:52 pm
by Laxmi
Below is the data for mohrs plots
Sigma1 sigma3
103 10
91.2 10.2
46.4 5.4
Looking for the plots
Thanks
Laxmi
Posted: Sun Oct 01, 2006 10:12 pm
by DPlotAdmin
If you copy/paste those 3 pairs into a blank document in DPlot, then select Generate>Mohr's Circle, you should get a plot with 3 semi-circles:
center radius
56.5 46.5
50.7 40.5
25.9 20.5
and a blue line with intercept c=0, slope phi = 54.106 deg.
Is that not what you get?
Posted: Sun Oct 01, 2006 10:32 pm
by Laxmi
Yes that is what i get. However, c is zero which is bit confusing. Most of the time we will not get zero. May be this is the case. I have to re-check with other data.
However, i liked the feautres of the program and would buy for sure after going through the details of the features tomorrow.
Your prompt response is very much appreciated.
Laxmi
Mohr's circles skewed
Posted: Thu Nov 30, 2006 6:30 pm
by Laxmi
Hi david,
I have the following values for mohr's plots in MPa.
sigma1 sigma3
23.6 14.2
18.1 10.2
20.5 12
I get a good plot, however, the circles are skewed when i tried to re-size the plot to 4x3 inch. Any solution for this? I tried re-scaling etc but the circles gets screwed up.
Thnaks
Laxmi
Posted: Thu Nov 30, 2006 7:40 pm
by DPlotAdmin
You need to set the extents along with the plot size if you want the circles to be circular. When I run the plugin with those values I get extents of 0-24 in X and 0-6 in Y, with the plot size = 12" x 3". Notice that the X extents are 4x the Y extents, and the X size is 4x the Y size.
For a 4"x3" plot you need the X extents to be 4/3 x the Y extents, e.g. 8<X<24 and 0<Y<12. (You might also need to set the tick mark intervals to 1.0 or some other number that divides evenly into the extents.)
Posted: Mon Dec 04, 2006 12:55 am
by Laxmi
Thanks David.
I did that and got the size i wanted. I would suggest you to incorporate a feature which will keep the proportions of the plot i.e. by selecting one dimension other dimension should be proportionately changed without altering the scale.
Laxmi
Posted: Mon Dec 04, 2006 1:26 am
by DPlotAdmin
That's a good idea, thanks.
Posted: Mon Dec 04, 2006 2:44 am
by Laxmi
Another suggestion for improving dplot is;
when we play with failure plot with bunch of mohr's circles, the failure slope does not change with removal of some circles which does not fit well. we have re-plot the circles with eliminated data to get a new failure line. Is there any way to make the failure line or trendlines to change instantly with change in data?
Like in excel, the trendlines should change with change in data (data points delition or addition). I have not explored dplot whether this feature is existing or not.
Thanks for your attention.
Laxmi
Posted: Mon Dec 04, 2006 10:30 am
by DPlotAdmin
This probably won't happen. The problem is there are too many ways for you to edit a graph in which your intentions would be ambiguous to the code. For example instead of deleting a circle, what should happen if you add one? What if you add one that's nonsense (for example with Y > 0)? Or what if you add a new curve whose shape is only roughly semicircular? What should happen if you clip an existing semicircle with Edit>Truncate?
Data processing mode in DPlot works in the way you'd like this to work: changes in one curve automatically update one or two other curves. So it can be done, but the reason data processing mode works is you're prohibited from making the sort of changes mentioned above. You can't add or delete a curve or perform many of the standard operations.
I'll think on this one more, but my initial guess is you'll be stuck with selecting Generate>Mohr's Circle when you want a new plot.