pyyeti.nastran.bulk.wtspc1¶
- pyyeti.nastran.bulk.wtspc1(f, eid, dof, grids, name='SPC1')[source]¶
Writes a Nastran SPC1 (or similar) card to a file.
- Parameters:
f (string or file_like or 1 or None) – Either a name of a file, or is a file_like object as returned by
open()orio.StringIO. Input as integer 1 to write to stdout. Can also be the name of a directory or None; in these cases, a GUI is opened for file selection.eid (integer) – Element ID
dof (integer) – An integer concatenation of the DOF (ex: 123456)
grids (1d array_like) – Vector of grid ids.
name (string; optional) – Name of NASTRAN card to write; card must be in same format as the SPC1 card.
- Returns:
None
Notes
This function can be used to write SPC1 and SEQSET1 cards.
Examples
>>> from pyyeti import nastran >>> import numpy as np >>> nastran.wtspc1(1, 1, 123456, np.arange(1, 10)) SPC1 1 123456 1 2 3 4 5 6 7 8 9 >>> nastran.wtspc1(1, 200, 123456, np.arange(2001, 2031), ... 'SEQSET1') SEQSET1 200 123456 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030