op2_interface Package¶
op2_codes
Module¶
-
pyNastran.op2.op2_interface.op2_codes.
determine_sort_bits_meaning
(table_code, sort_code, sort_bits)[source]¶ Value Sort type Data format Random ===== ========= =========== ====== 0 SORT1 Real No 1 SORT1 Complex No 2 SORT2 Real No 3 SORT2 Complex No 4 SORT1 Real Yes 5 SORT2 ??? Yes 6 SORT2 Real Yes
table_code%1000 = function3()
SPCForce = table_code % 1000 (function 3)
op2_f06_common
Module¶
-
class
pyNastran.op2.op2_interface.op2_f06_common.
OP2_F06_Common
[source]¶ Bases:
object
-
get_op2_stats
(self, short=False)[source]¶ Gets info about the contents of the different attributes of the OP2 class.
Examples
*Detailed OP2 Stats* >>> self.get_op2_stats()
- displacements[1]
- isubcase = 1 type=RealDisplacementArray nnodes=72 data: [t1, t2, t3, r1, r2, r3] shape=[1, 72, 6] dtype=float32 gridTypes sort1 lsdvmns = [1]
- spc_forces[1]
- isubcase = 1 type=RealSPCForcesArray nnodes=72 data: [t1, t2, t3, r1, r2, r3] shape=[1, 72, 6] dtype=float32 gridTypes sort1 lsdvmns = [1]
- ctetra_stress[1]
- type=RealSolidStressArray nelements=186 nnodes=930 nodes_per_element=5 (including centroid) eType, cid data: [1, nnodes, 10] where 10=[oxx, oyy, ozz, txy, tyz, txz, o1, o2, o3, von_mises] data.shape = (1, 930, 10) element name: CTETRA sort1 lsdvmns = [1]
*Appreviated OP2 Stats* >>> self.get_op2_stats(short=True) displacements[1]; RealDisplacementArray; [1, 72, 6]; [t1, t2, t3, r1, r2, r3]
-
get_result
(self, result_name)[source]¶ Getattr, but considers sub-objects
Examples
Example 1 >>> self.eigenvectors = get_result(‘eigenvectors’)
Example 2 >>> self.ato.displacements = get_result(‘ato.displacements’)
-
isubcase_name_map
= None¶ a dictionary that maps an integer of the subcaseName to the subcase_id
-
title
= None¶ BDF Title
-
-
class
pyNastran.op2.op2_interface.op2_f06_common.
Op2F06Attributes
[source]¶ Bases:
pyNastran.op2.op2_interface.op2_f06_common.OP2_F06_Common
result_set
Module¶
- Defines:
ResultSet(allowed_results)
- allowed
- found
- saved
- is_saved(result)
- is_not_saved(result)
- clear()
- add(result)
- remove(results)
- _found_result(result)
- update(self, results)