pyyeti.nastran.n2p.upasetpv

pyyeti.nastran.n2p.upasetpv(nas, seup)[source]

Form upstream a-set partition vector for a downstream SE

This is for a specific upstream superelement, unlike how upqsetpv() works.

Parameters:
  • nas (dictionary) – This is the nas2cam dictionary: nas = op2.rdnas2cam()

  • seup (integer) – The id of the upstream superelement.

Returns:

pv (1d ndarray) – An index partition vector for partitioning the upstream a-set degrees of freedom of superelement SEUP from the p-set of the downstream superelement. This partition vector is not a True/False type because the a-set DOF order may be different downstream than from upstream (from reordering done on a CSUPER entry).

Notes

Example usage:

# External superelement 100 is upstream of the residual. On
# the CSUPER entry, the a-set of 100 were assigned new ids and
# the order was changed. Form the ULVS matrix:
from pyyeti import nastran
nas = nastran.rdnas2cam('nas2cam')
pv = nastran.upasetpv(nas, 100)
ulvs100 = nas['phg'][0][pv]  # this will reorder as needed