Varying cross section along length of span (x) via Programming in MathCAD solution needed !
- December 10, 2023
- 1 reply
- 102294 views
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).

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

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

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

where,

variable data gets read from same excel. and cbsdata reads

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

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

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., 
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

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

