Skip to main content
14-Alexandrite
December 17, 2025
Solved

Drawing a graph in mathcad

  • December 17, 2025
  • 1 reply
  • 1297 views

Hi there 

It has been days since I started working in this task , but couldn't reach the right result 

I need to draw this graph in mathcad 

YA_10963798_0-1765976266908.png

I have two values >>

z ( depth a reading taking each 0.02 m )  so in one meter we have 50 z-values 

and qc ( resistance in that  z depth) 

 

I need to write a program that will choose the minimum values of ( q , 12 MPa ) if  change through z depth in one meter is less than 12MPa 

and the minimum value of of ( q , 15 MPa ) if the change through one meter is bigger than 12 MPa 

YA_10963798_1-1765976702576.png

the sheet is attached 

Thanks 

Yusra

 

Best answer by Werner_E

So here is attached a first try.

 


and can we show that we divided the values into groups ... for each one meter we have one group of 50 values we don't just do the check in one go 

How would you like to show that?

1 reply

25-Diamond I
December 17, 2025

> if change through z depth in one meter is less than 12MPa

 

What does this mean?

What's the exact algorithm?

What should happen, if the red distance is larger than 1 meter, but the green is less than 1 meter?? Is the limit 12 or 15?? And why is it that way?

What, if there is part of the curve between 12 and 15 in this case (drawn in blue)?

Werner_E_1-1765986282338.png

 

 

14-Alexandrite
December 17, 2025

Hi Werner, 

Let say the whole depth is 30 meters and z is a reading taking each 0.02 m for qc ... so I want to check the values in each one meter (1 m)  so I will be checking 50 values in each step .

1) We consider 1 meter as a constant height  to check the values 

First  : I will see the values in one meter if they are bigger than 12 MPa , than choose the minimum value between ( qc and 15 MPa)  not the 12MPa ... it may be 13MPa or 14MPa 
Second : if the values are equal  smaller than 12 MPa than choose the minimum value (qc, 12 MPa )
 
for this question: What, if there is part of the curve between 12 and 15 in this case (drawn in blue)? choose the same value ( not 12 MPa and not 15 MPa ) if it is 13 MPa so it will be 13 MPa 
 
I hope this makes it clear 
25-Diamond I
December 17, 2025

I hope this makes it clear 

Unfortunately not for me 😞

Its not clear, if the check is done just 30 time (range from 0 to .1m; from -1m to -2m, etc.) or if the check is to be done from each z-value down to z-1m.

And from your new description it looks like you simply have to limit all values to 15 MPa, because

Second : if the values are equal  smaller than 12 MPa than choose the minimum value (qc, 12 MPa )

if all values in this 1 meter interval are <= 12 MPa, then ther would be no need to limit them to 12 MPa.
Did you mean that the maximum value in this 1 meter interval is between 12 and 15 MPa rather than <= 12 MPa?

 


First  : I will see the values in one meter if they are bigger than 12 MPa ,

I guess you don't mean "the values" but rather " if just one value of the 30 values...", correct?

 


than choose the minimum value between ( qc and 15 MPa)  not the 12MPa ... it may be 13MPa or 14MPa 

 

So I wonder in which case you would like to have a limit of 12 MPa!? From  your new description - never?!

 

I also wonder the reason for that 1 meter interval - as i see it limiting all values to 15 MPa would do the same job much easier:

Here the first 5 meter

Werner_E_1-1765998400200.png

 

But maybe someone else here has a better understanding of the problem...