Model.beamsectioncreatesolidfrompoints#
- Model.beamsectioncreatesolidfrompoints(points, order, writetobeamsect, flag, choosebase, beam_ptr=Entity())#
Creates a solid beam section for HyperBeam, using a closed loop of point coordinates that form a polygon.
HyperMesh builds a surface through the points and meshes the surface with quads and trias of the specified order (2nd order recommended), with the meshing parameters such as element size calculated in such a way as to produce elements useful to .
- Parameters:
points (hwDoubleList) – The point coordinates specified in a counter-clockwise direction.
order (int) – The order (1 or 2) of the elements to use.
writetobeamsect (int) –
A flag specifying whether or not the results should be written to a file with name stdsolidbeamdata. This is written to the HyperMesh working directory. Valid values are:
0 - Do not write to file.
1 - Write to file.
flag (int) –
A flag to indicate the type of section. Valid values are:
0 - Non-hollow section.
1 - Hollow section.
choosebase (int) –
A flag specifying how to calculate the base node. Valid values are:
0 - Choose the base point as the origin (0,0,0).
1 - Choose the base point as the average of the minimum and maximum point values.
beam_ptr (Entity) – The object describing the entity.
Example#
Create a solid section from coordinates (0,0) (1,0) (1,1) and (0,1)#import hm import hm.entities as ent model = hm.Model() model.beamsectioncreatesolidfrompoints( points=[0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0], order=1, writetobeamsect=0, flag=0, choosebase=0, beam_ptr=None )