What is the value of force in KN generated when some prescribed displacement is given. i.e. value of Fy in KN
Hello
I need to replace this line of code to plot a curve within a "For Loop"
uyAs.append(g_o.getcurveresults(g_o.Nodes[0],step,g_o.ResultTypes.Soil.Uy))
Can I use this?
uyAs.append(g_o.getcurveresults(g_o.Nodes[0],Phase_1,Phase_1.Reached.ForceY))
Dear Sarah,
I advise you to check the syntax of each command in our Command reference.
The one you suggest in the second line will not work as the getcurveresults does not accept two Phase/Step objects.
You can use instead the getcurveresultspath command which might do what you need.
Hello Stefanos,
The code you suggested (echo Phase_1.Reached.ForceY) works great. However, when I took it to Python, things got messy. I tried the following codes, and none of them worked. It showed me errors stating that those attributes are not present.
myValue= g_o.getcurveresultspath(g_o.CurvePoints.Nodes.value[0], g_o.Phases[1], g_o.Phase[1]. g_o.ResultTypes.Phase_1.Reached.ForceY
myValue= g_o.getcurveresultspath(g_o.CurvePoints.Nodes.value[0], g_o.Phases[1], g_o.Phases[1], g_o.Phase_1.Reached.ForceY
myValue= g_o.getcurveresultspath(g_o.CurvePoints.Nodes.value[0], g_o.Phases[1], g_o.Steps[1], g_o.Phase_1.Reached.ForceY
by multiplying with 2π my results are not matching with the value of the researcher. kindly help me with this.
Hello Sarah,
Unfortunately not via the getcurveresults command. It's simpler:
forces_y = [] # making a list to fill in the force results of phasesforces_y.append(g_o.Phase_1.Reached.ForceY)