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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Varying cross section along length of span (x) via Programming in MathCAD solution needed !

AL_10888052
10-Marble

Varying cross section along length of span (x) via Programming in MathCAD solution needed !

Version : PTC MathCAD Prime 9.0.0.0

So, I had a problem statement in one of my bridges where I had depth as varying (basically z coordinate value with a certain formula that could be followed).

AL_10888052_0-1702205029584.png

So, here I used a constant formula which could be used for all points of vertex needed in z cordinate which I defined as various variables that it picked automatically. And worked & I could get my function sorted. where I stored my variable values reading from excel which then used this formula for all z coordinates and formed as we move along x axis.
So this basically is the solved one

AL_10888052_1-1702205160842.png


Now, my new problem statement in which I am using my same sheets, is that I have different varying values both in y and z coordinate which will be reading from my excel sheet. But the formula is not same for each point of vertex or cross section i.e., y and z coordinate points (different formula).
The y & z values have to use the formula's as below for each y & z coordinate

AL_10888052_2-1702205517234.png

Now, I have stored these variables i.e., 

AL_10888052_3-1702205571847.png

where, 

AL_10888052_4-1702205601661.png

variable data gets read from same excel. and cbsdata reads 

AL_10888052_5-1702205656941.png

to have 1 cross section value at certain location as master cross section.

Now, the constant formula in z coordinate the first one which is solved was written like this

AL_10888052_6-1702206033177.png

It picks the variable data from excel, is called here and formula made here which uses for each point of z coordinate to form polygon but also, changes variable as we move in the x direction (length).

Also, for constant polygon points, it is used to write in this way in my earlier work

AL_10888052_7-1702206147947.png



Problem is : I am trying to find a way to write my new problem statement in such a way that my variable values (s1, s2, s3, h1, h2 and others) are already stored and called by me in my current mathcad sheet which takes value as we proceed every 2m along x. It should interpolate in between and form the bridge and cross sections.
I want it to make the formula to be taken for each point of z coordinate and y coordinate as screenshot is shown for all the formula's i.e., 
AL_10888052_2-1702205517234.png
This formulation to be made for polygon in there and then it should pick these variable values as we move along xber. And form various cross section and interpolate and form the structure.
Can the community help, I am stuck ?

Attaching below :
Input data sheet : indata
Mathcad sheet that has my problem statement that needs to be resolved : A Förutsättningar
Mathcad sheet that has one problem already solved (same formula for all points of polygon but variables) : A Förutsättningar_solved


The code is written in this

AL_10888052_8-1702206612146.png


And further can be found from page 6,7 in both sheets where concrete cross section is mentioned.

52 REPLIES 52

Hu,

For completeness you need to send me balksnittrafter.xlsx to get span information.

Cheers

Terry

Sure
Here it is.

Ri,

There must still be something I am missing in terms of files,

Here is the graph on opening the file without calculating.  Looks OK

Capture.JPG

 

Here is what happens when I press calculate.  Pmo is missing. zeros function is missing

Capture2.JPG

Cheers

Terry

Hey

Here is the zeroes call

AL_10888052_0-1704863180282.png

I made it in my toolbox

Pm0 is showing in this calculation sheet 

AL_10888052_1-1704863569945.png

Please see. 🙂
Thanks

Hi,

OK have entered zeros and ones function which has got me P.m0.Analys

But under this is the definition of Pm0 derived from Pm0.Analys

I do not have the function in red. RCmatchX( , )

Capture2.JPG

At the top of the spreadsheet I found that *.xlsm is used for the excel file names but I have been supplied *.xlsx files.

You will need to adjust any sheet I send you to match what the excel sheets are named on your system.

Capture.JPG

Sorry it has taken so long have other things to finalize

Cheers

Terry.

Actually they are .xlsm's as well. But because I cannot upload the .xlsm file here in PTC mathcad, so I have copied everything from my macro enabled excel to normal and uploaded. I am reuploading it, please just change the file types of respective .xslm files to .xlsm.
So, the .xlsm's are :
Bilaga A and tendons excel sheet, please just change the extension of these 2 files. Data is same, for uploading here I saved and uploaded as .xlsx
Rest indata and balksnittkrafter is .xlsx only. BilagaD we will not be needing at this point as it comes later.
I have reattached latest Mathcad file as well.

The functions that I have used for that particular problem are:
zeroes call

AL_10888052_0-1704946656981.png


As well as
RCmatchX

AL_10888052_1-1704946741594.png

Hi,

Hard to read the RCmatchX function.

Please can you copy it from RCTools to a new worksheet containing only RCmatchX and upload it.  

Would save a load of typing on y part.

Cheers Terry

Hey
Please find, I have written that function next to the graph.

Thanks have got the function you have saved some time.

Cheers

Terry

Welcome 🙂
Thanks

Hey
Any update ?

Regards

Hi,

OK sorry for the late reply but have been working on a research project.

Page 49 in draft right hand margin.

Can complete a graph for each individual tendon given its tendon number direct from the read excel data without going through Pm0

Individual tendons is easier to look at results.

It is simple to interpolate this to xber. Will do this later.

Capture.JPG

Now it is simple to loop the individual tendon method to all tendons.

Same for all tendons but some extra lines in the graph. Not sure if this is errors in the data or plotting errors?  I suspect it is in the data.

Capture2.JPG

Cheers

Terry

Hi,

Have progressed a bit further.

tendon data from the excel prestress table duplicates values

It can be seen in the table below 94.118m data is repeated.

Capture.JPG

Have written a small program to delete the duplicates

Capture2.JPG

It can be seen the duplicates are eliminated.

Capture3.JPG.

This produces a better plot as only single unduplicated points.

Capture4.jpg

Now ready to interpolate at xber.

Cheers

Terry

Hi,

Page 51 in right hand draft area.

Tendon Force interpolated by xber without Pm0 above earlier graph.

Capture.JPG

Cheers

Terry

Hi,

Realize it is also necessary to interpolate the y and z values of the cables to xber.

Done in following file.

Cheerrs

Terry

 

Thankyou. Let me look at it. Actually, I was getting the values already. However, not in an output excel. Still my output excel remains empty. I will look at it. But thanks for the duplicate value prompt.
Let me check how it aligns with my further sheets.

I will update you. If it is resolved or I encounter any further error in the process ahead.
Thanks Terry

Hey

I have checked and made some adjustments to the original sheet. I am able to work on my problem statement now. I can make varying any property as per 81 variable points from my excel. And interpolate or use my function like multiplespan upto xber=1041 values.

However, I am stuck in this problem in one of my sheets where, although my function is working

AL_10888052_0-1706599033262.png

to remove non effective parts from polygon. Here I am reading my width paramters like b1,b2,b3, y1,y2,y3 as per i = 1...xber which is 1041 values.
But in this function, I can only do it with one cross section that it reads as yc,zc,ys,zs
Now, if I givesome variable as j=1...LMvar (81 points). It makes 81 (yc,zc) polygon points in a 16*1 matrix (total 81 matrix).
As I can understand, my original function is able to take only 16*1 = 1 matrix and 1 set of points (16) for each yc zc.
It is unable to read a matrix and interpolate as well as unable to use array of matrix in this function even if we resolve to make 1041 values of y and z coordinate matrix interpolated .

So, I want this function to take all cross section points as per xber (1041).. as we move it should interpolate and take the cross section points (16*1) matrix formed for each point.
I.e., first we somehow make interpolated yc,zc points as 1041 matrix of 16*1
And then by someway call and assign each one in this loop so it picks and remove non effective parts from each 1041 points and return me values.
I am unable to figure this out. Can you please help in this? Thankyou

Below attaching that mathcad sheet and all excel and mathcad sheets that we might need for this.
Although currently this function is working because I have stored yc and zc as single 16*1 matrix polygon points. But We need to change this function as per the problem statement above.
You can find this function on Page 21 of B2 Mathcad sheet. And a similar function at Pg 24 of this sheet.
Thankyou.

P.S: In this B2 only at the top, you will find, I am calling y coordinates from this

AL_10888052_1-1706600684734.png


and z coordinates from

AL_10888052_2-1706600699247.png

AL_10888052_3-1706600724914.png


And calling b1,b2,b3,be1eff,b2eff,b3eff like this. And also, calculated mean valued b1m,b2m,b3m.

Also, as I cannot attach .xlsm macro enabled here. So, I have just changed the file format to .xlsx for the ones needed.

AL_10888052_4-1706601095711.png

Please just save the ones mentioned here as .xslm as the same from .xlsx. Material remains same.



Please let me know if anything else is needed from my end. 
Looking forward to some solution.
Thanks

Hi,

I need numVal.mcdx to get xber?

Capture.JPG

Cheers

Terry

Here

OK Reading Data now

Hi,

Add these three lines to the program on page 21 to get the section dimensions at each xber

Capture.JPG

If I adopt this approach. It affects my other things.
For example, this way I called my varying c/s here at top on Page 1

AL_10888052_0-1706783461974.png
It affects my plotting and hence, results and thus loops ahead.

AL_10888052_1-1706783557192.png

AL_10888052_2-1706783589102.png

I have done nothing just used same approach in B1 and also it affects B2 as well as I am changing my yc zc initially itself and not just in that function which should be the correct case.


The function used is just above it in input.
It uses the same excels. Please if you can see.

Thanks

Hi,

License for Prime 9 is expiring soon.  Will not for various reasons be reinstated till March some time,  Thus will not be able to help during this time.

Program at top for yz produces a single column vector of nested arrays hence it has no second column.

Capture.JPG

Capture2.JPG

Cheers

Terry

Announcements

Top Tags