Model.realizeentity_members#
- Model.realizeentity_members(member, elemconfig, elemtype, useelemdensity=False, elemdensity=False, elemsize=0.0, sectiontype='', realizemembersections=False, reusemeshcontrols=False, updatememberpanels=False)#
Realizes a member into solver data.
- Parameters:
member (Entity) – The object describing the member entity.
elemconfig (hwString) – The element configuration for 1D mesh member (i.e. bar2, rod).
elemtype (hwString) – The element type string to 1D mesh member (i.e. CBAR, CBEAM, CROD).
useelemdensity (bool) – Flag to use element density for 1D mesh of member. Valid values are
FalseandTrue.elemdensity (int) – The element density to use.
elemsize (double) – The size of the 1D elements to be created.
sectiontype (hwString) –
The section type string for beam section. Valid values are:
real - creates shell or solid beam sections.
boundingbox - creates a standard box type beam section equivalent to the bounding box of the real section.
realizemembersections (bool) – The flag to realize member sections. Valid values are
FalseandTrue. If set toTrue, the member sections, contained in the member, will be realized to create beam section. This newly created beam sections will be assigned to 1D elements created during member realize.reusemeshcontrols (bool) – The flag to reuse mesh controls. Valid values are
FalseandTrue. If set toTrue, the meshing inputs for 1D mesh of member will be fetched from the existing mesh control stored within the solver representation that is assigned to the member.updatememberpanels (bool) – The flag to update dependent member panels. Valid values are
FalseandTrue. If set toTrue, the dependent member panels will be realized.
Examples#
Realize member with ID 1 use element density , element configuration as “bar2” , element type as “CBEAM” and section type as “real”#import hm import hm.entities as ent model = hm.Model() model.realizeentity_members( member=ent.Member(model, 1), useelemdensity=True, elemdensity=1, elemconfig="bar2", elemtype="CBEAM", sectiontype="real", realizemembersections=True, reusemeshcontrols=False, updatememberpanels=True, )
Realize member with ID 1 use element size , element configuration as “bar2” , element type as “CBAR” and section type as “boundingbox”#import hm import hm.entities as ent model = hm.Model() model.realizeentity_members( member=ent.Member(model, 1), elemsize=40.0, elemconfig="bar2", elemtype="CBEAM", sectiontype="boundingbox", realizemembersections=True, reusemeshcontrols=False, updatememberpanels=True, )