fix Command#

This command is used to construct a number of single-point homogeneous boundary constraints.

model.fix(node[, flags, dof])#
Parameters:
  • node – integer tag identifying the node to be constrained

  • flags – tuple of ndf constraint flags (0 or 1) corresponding to the ndf degrees-of-freedom. 0 unconstrained (or free) 1 constrained (or fixed)

  • dofs – An alternative to the flags argument, the dofs argument allows specific degrees of freedom to be fixed.

Example#

The following examples demonstrate the commands in a script to add homogeneous boundary conditions to nodes 1 and 2 for a model with ndf of 6. Node 1 is specified to be totally fixed, node 2 is only constrained in the second and fifth degree-of-freedom.

model.fix(1, (1,1,1,1,1,1))
model.fix(2, (0,1,0,0,1,0))

Code developed by: fmk