Skip to main content
1-Visitor
July 24, 2019
Question

Integrating Strain Function Not Converging

  • July 24, 2019
  • 2 replies
  • 9962 views

Hey all, 

 

I'm trying to implement Mathcad's integration function to calculate ground settlement using a code-based correlation. Basically, the code presents a graphical figure that I've digitized (see attached PNG) and recast as a function of soil profile and depth. The first issue arises when I attempt to integrate the function that relies on N160, which becomes asymptotic as depth goes to zero. Mathcad returns the error message "The calculation is not converging to a solution...." The second issue is when trying to integrate log(sigma_vf/sigma_vo), since the denominator goes to zero as depth goes to zero. 

 

Any suggestions? I'd prefer to keep things in functional form and simply "CTRL + SHIFT + I" (integrate) to calculate the settlement as a function of depth. 

2 replies

jonesn31-VisitorAuthor
1-Visitor
July 24, 2019

The attached file is Mathcad Prime 3.0

21-Topaz II
July 25, 2019

Hi,

The five lines do not line up in the original text file.  You need to bring it into EXCEL to sort the columns of data so they line up then export as csv to read into Mathcad to keep the columns lined up.  You can see how the data is currently read wrong by plotting the data.

 

Fix the data then we can talk about the rest of the file.

 

Cheers

Terry

21-Topaz II
July 25, 2019
jonesn31-VisitorAuthor
1-Visitor
July 25, 2019

Thanks for this, Terry. 

 

I reviewed my input data file (.txt) and realized a couple errors. I've updated the data file to work w/ my lookup array and to properly filter NaN's as the text file has five (5) x-y traces of varying number of indices for each trace. The updated Mathcad Prime 3.0 file and .txt file are attached w/ some screenshots highlighting my attempt to integrate the C(z) function - still trying to figure that one out.