Replies: 4 comments 12 replies
-
I thought I'd keep this in a separate post as it is more of an inquiry.
Update: I've developed an equation relating the corner point and the point in which the circle can be centered on so that the corners are perfectly aligned. I'll post the code tomorrow, but the equation is as follows: Where d is the horizontal distance you need to move, and α is the angle between side of the vertical leg and the Y axis vertical plane and r is the radius of your circle. Whether there is a way to simplify this equation, I'm not sure. But it looks clean. |
Beta Was this translation helpful? Give feedback.
-
First question - the facets do represent the indices of the points, as described in the docs "A list of (start, end) indexes of vertices defining the edges of the section geometry." Unfortunately it seems like the documented optional facet list was never implemented, I'll raise an issue and get this fixed. In the meantime a workaround is the following: from shapely.geometry import Polygon
from sectionproperties.pre.geometry import Geometry
points = [...] # list of points
geometry = Geometry(Polygon(points)) |
Beta Was this translation helpful? Give feedback.
-
The final code is below, however for whatever reason the shear center calculation is inconsistent and sometimes it shoots it way off 200 units away, and other times it is where I expect it to be. This happens even just re-running identical code. There should be no overlapping sections so I'm not sure why this would happen. Some runs it gives an error about point discontinuity (without the reinforcing added), and other times it does not. Anyways, here it is for a preliminary, I plan to get it to run some calculations based on CSA S16 to calculate compressive resistance and moment resistance eventually, and loop thru different round bar sizes. But that beast is for another day.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hey all,
In the documentation under section 3.2.1 it mentions that if you don't have a complex shape that you do not need to provide facets, however when running the code it seems that I do. Am I missing something? Also, what constitutes a facet in the input? I tried deciphering the correlation from the values provided in the example to the shape drawn, but I can't see how the coordinates provided indicate a face of the shape.
Below is my code:
To replicate my shape input the following:
EDIT: I have got it to work by inputting completely ambiguous values for facets similar to the example, but I haven't the slightest clue why it is working.
EDIT2: I misinterpreted the documentation in that a facet was a coordinate, but instead it is a list of the points as if we were connecting the dots. My assumption is that the integers represent the tuples inputted into the points list in the order that they appear.
facets = [[0, 1],[1, 2],[2, 3],[3, 4],[4, 5],[5, 0],[6, 7],[7, 8],[8, 9],[9, 6],[10,5],[11,6],]I appreciate the input and for your patience with a Python novice.
Beta Was this translation helpful? Give feedback.
All reactions