Model.altgapelement#
- Model.altgapelement(node1, node2, propertyname, vector, orientnode, x1, x2, x3, coords, orientsys)#
Creates a node-to-node gap element (CGAP) for use with the OptiStruct solver.
- Parameters:
node1 (Entity) – The the first node entity of the gap element.
node2 (Entity) – The ID the second node entity of the gap element.
propertyname (hwString) – The name of the property which should be assigned to the gap element. User can directly supply a Python string.
vector (Entity) – The object describing the vector entity associated with the gap element.
orientnode (Entity) – The object describing the entity associated with the gap element.
x1 (double) – x-component of the orientation vector.
x2 (double) – y-component of the orientation vector.
x3 (double) – z-component of the orientation vector.
coords (int) –
Flag to indicate whether individual components are used in defining the orientation of the element. Valid values are:
0 - Components are not used.
1 - Components are used.
orientsys (Entity) – The object describing the system entity used to orient the gap element.
Note
Orientation of the gap element may be specified using either a vector, node, coordinate system or individual components of a vector.
Example#
Create a gap element between node with ID 10 and node with ID 25 with property * gapprop * , use node with ID 51 as orientation node#import hm import hm.entities as ent model = hm.Model() model.altgapelement( node1=ent.Node(model, 10), node2=ent.Node(model, 25), propertyname="gapprop", vector=None, orientnode=ent.Node(model, 51), x1=0.0, x2=0.0, x3=0.0, coords=0, orientsys=None, )