# Constraints — Welcome to LS-DYNA Examples

Home » Knowledge Base » Simple Examples » Intro by Klaus Weimar » Misc » Constraints

This example shows how to use *CONSTRAINED_LINEAR_LOCAL keyword to describe constraints in a local coordinate system.

## Keywords

```*BOUNDARY_PRESCRIBED_MOTION_NODE
*CONSTRAINED_LINEAR_LOCAL
*CONTROL_ENERGY
*CONTROL_TERMINATION
*DATABASE_BINARY_D3PLOT
*DATABASE_EXTENT_BINARY
*DATABASE_GLSTAT
*DATABASE_HISTORY_NODE
*DATABASE_NODOUT
*DEFINE_CURVE
*ELEMENT_SHELL
*END
*KEYWORD
*MAT_ELASTIC
*NODE
*PART
*SECTION_SHELL
*TITLE```

## Reduced Input

```  *KEYWORD
*TITLE
Linear Constraint Equations
*CONSTRAINED_LINEAR_LOCAL
\$     LCID
1
\$      NID       DOF       CID     COEFF
\$       40         3                0.80
40         3                1.00
42         3               -1.00
*DEFINE_CURVE
\$        i         i         f         f         f         f
\$     lcid      sidr      scla      sclo      offa      offo
1
\$                  f                   f
\$           abscissa            ordinate
0.0                 0.0
0.0005               -15.0
0.0010               -15.0
*BOUNDARY_PRESCRIBED_MOTION_NODE
\$        i         i         i         i         f         i
\$      nid       dof       vad      lcid        sf       vid
41         3         2         1       1.0
*CONTROL_TERMINATION
\$        f         i         f         f         f
\$   endtim    endcyc     dtmin    endneg    endmas
.5000E-3
*DATABASE_EXTENT_BINARY
\$        i         i         i         i         i         i         i         i
\$    neiph     neips    maxint    strflg    sigflg    epsflg    rltflg    engflg
1
\$        i         i         i
\$   cmpflg    ieverp    beamip

*DATABASE_BINARY_D3PLOT
\$        f         i
\$  dt/cycl      lcdt
0.0200E-3
*CONTROL_ENERGY
\$        i         i         i         i
\$     hgen      rwen    slnten     rylen
2         1         2
*DATABASE_GLSTAT
\$        f
\$       dt
0.0010E-3
*DATABASE_NODOUT
\$        f         i
\$       dt
0.0010E-3
*DATABASE_HISTORY_NODE
\$        i         i         i         i         i         i         i         i
\$      id1       id2       id3       id4       id5       id6       id7       id8
40        42
*MAT_ELASTIC
\$        i         f         f         f         f         f         f
\$      mid        ro         e        pr        da        db         k
1   7.85e-9  210000.0       0.3
*SECTION_SHELL
\$        i         i         f         f         f         f         i
\$      sid    elform      shrf       nip     propt   qr/irid     icomp
1        16   0.83333       2.0       3.0
\$        f         f         f         f         f
\$       t1        t2        t3        t4      nloc
2.0       2.0       2.0       2.0
*PART
\$ c
Impacted Material
\$        i         i         i         i         i         i
\$      pid       sid       mid     eosid      hgid    adpopt
1         1         1         0         0         0
*NODE
\$     i8               f               f               f       i       i
\$   node               x               y               z      tc      rc
*ELEMENT_SHELL
\$      i       i       i       i       i       i
\$    eid     pid      n1      n2      n3      n4
*END```