semvec/pypi-packages huggingface dataset:
nastran_pch_reader 1.0.2
NASTRAN punch file parser
License: BSD

nastran_pch_reader
~~~~~~~~~~~~~~~~~~
parser of NASTRAN punch files.

Module currently support the following outputs:
 * solution sequences: SOL101, SOL111
 * requests: MPCF, SPCF, ACCELERATION, DISPLACEMENTS, FORCE (only for CBUSH and CELAS2)
 * sorting: SORT1 and SORT2
 * representation for frequency response: real/imaginary and magnitude/phase


Example::

	import nastran_pch_reader
	parser = nastran_pch_reader.PchParser('test-data/sol101.pch')
	# summary of the forces at the elements
	for element in [3000, 3001]:
		print('Element force at %d' % element)
		for subcase in parser.get_subcases():
			forces = parser.get_forces(subcase)
			fx, fy, fz, mx, my, mz = forces[element]
			print('\t subcase',subcase, '=>', (fx, fy, fz))