Skip to main content
11-Garnet
December 10, 2023
Solved

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

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.

Best answer by terryhendicott

Hi,

Got all the file from backup.

 

Cheers

Terry

 

1 reply

21-Topaz II
December 12, 2023

Hi,

 can you do a quick hand sketch to show how s1, s2, s3, h1 etc make up the section?

 

Cheers

Terry

21-Topaz II
December 12, 2023

Hi,

Think this is what you are looking for.  It is x,y coordinates not y,z but that is a simple fix.

Enclosed Prime 9 file

Cheers

Terry