-
Thank you for developing this module. I am quit new here please bare with me. I am trying to get the section properties from a Shapley Polygon including the torsional constant. Can someone please help. from sectionproperties.pre.geometry import Geometry
from sectionproperties.analysis.section import Section
from sectionproperties.pre.pre import Material
from sectionproperties.analysis.section import Section
from shapely.geometry import Polygon, LineString, Point
precast = Material(
name="65 MPa",
elastic_modulus=37.4e3,
poissons_ratio=0.2,
yield_strength=65,
density=2.4e-6,
color="grey",
)
poly_2=[(-1000, 1150),
(1000, 1150),
(1000, 1300),
(-1000, 1300)]
p2 = Polygon(poly_2)
geometry = Geometry(p2, material=precast)
geometry.create_mesh(mesh_sizes=[0.0005, 0.001])
section = Section(geometry)
section.plot_mesh() # plot the generated mesh
section.calculate_geometric_properties()
section.calculate_warping_properties()
section.calculate_plastic_properties()
section.plot_centroids() |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think I found the error : |
Beta Was this translation helpful? Give feedback.
-
Nira, Glad you worked it out! The mesh_sizes argument does accept a list, if you have multiple meshing regions defined. I believe we have an example of this in the docs. the |
Beta Was this translation helpful? Give feedback.
-
Hi @nira123, welcome to sectionproperties. Glad you sorted your issue out, let us know if you have any more questions! |
Beta Was this translation helpful? Give feedback.
I think I found the error :
geometry.create_mesh(mesh_sizes=[500])
Thanks.
Is it possible to filter only J?