Model.orderchangetosecond#
- Model.orderchangetosecond(collection, doproject, tacitmode)#
Converts first order elements to second order.
- Parameters:
collection (Collection) – The collection containing the element entities to be converted.
doproject (int) –
0 - Places the new midside nodes at the exact midpoint
1 - Projects the new midside nodes to the surfaces
tacitmode (int) –
0 - Does not project the new midside nodes to the inferred surface
1 - Uses the inferred surface where there is no geometry
Example#
Change first order elements to second order#import hm import hm.entities as ent model = hm.Model() model.orderchangetosecond( collection=hm.Collection(model, ent.Element, [25, 26, 35, 26]), doproject=1, tacitmode=1, )