pyyeti.nastran.n2p.addulvs

pyyeti.nastran.n2p.addulvs(nas, *ses, **kwargs)[source]

Add ULVS matrices to the nas “nas2cam” data structure

Parameters:
  • nas (dictionary) – This is the nas2cam dictionary: nas = op2.rdnas2cam(). This gets modified; see notes below.

  • *ses (list) – Remaining args are the superelement ids for which to compute a ULVS via formulvs().

  • **kwargs (dict; optional) – Named arguments to pass to formulvs()

Notes

This routine adds the “ULVS” matrices to the nas["ulvs"] dictionary. The matrices are indexed by the superelement number. See formulvs() for more information.

Example usage:

>>> from pyyeti.nastran import op2, n2p
>>> from pyyeti.pp import PP

>>> nas = op2.rdnas2cam("nas2cam")
>>> n2p.addulvs(nas, 101, 102)

>>> PP(nas['ulvs'])

<class 'dict'>[n=2]
    101: float64 ndarray 2484 elems: (46, 54)
    102: float64 ndarray 1728 elems: (32, 54)