File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/sectionproperties/analysis Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3416,6 +3416,16 @@ def get_stress_at_points(
34163416 return stress_pts
34173417
34183418
3419+ def tri6_list () -> list [fea .Tri6 ]:
3420+ """Helper function -> creates an empty list of ``Tri6`` elements."""
3421+ return []
3422+
3423+
3424+ def int_list () -> list [int ]:
3425+ """Helper function -> creates an empty list of ``int``s."""
3426+ return []
3427+
3428+
34193429@dataclass
34203430class MaterialGroup :
34213431 """Class for storing elements of different materials.
@@ -3439,8 +3449,8 @@ class MaterialGroup:
34393449 num_nodes : int
34403450 material : pre .Material
34413451 stress_result : sp_stress_post .StressResult = field (init = False )
3442- elements : list [fea .Tri6 ] = field (init = False , default_factory = list )
3443- el_ids : list [int ] = field (init = False , default_factory = list )
3452+ elements : list [fea .Tri6 ] = field (init = False , default_factory = tri6_list )
3453+ el_ids : list [int ] = field (init = False , default_factory = int_list )
34443454
34453455 def __post_init__ (self ) -> None :
34463456 """Allocates the stress_result parameter."""
You can’t perform that action at this time.
0 commit comments