pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
Public Member Functions | |
def | __init__ |
def | get_stress_code |
def | get_format_code |
def | get_sort_code |
def | get_device_code |
def | get_analysis_code |
8 - post-buckling (maybe 7 depending on NLPARM???) | |
def | get_table_code |
def | hasParameter |
def | getParameter |
def | updateParamName |
def | writeSubcase |
def | has_parameter |
def | get_parameter |
def | update_param_name |
takes an abbreviated name and expands it so the user can type DISP or DISPLACEMENT and get the same answer | |
def | get_op2_data |
def | print_param |
Prints a single entry of the a subcase from the global or local subcase list. | |
def | crossReference |
def | finish_subcase |
Removes the subcase parameter from the subcase to avoid printing it in a funny spot. | |
def | write_subcase |
internal method to print a subcase | |
def | subcase_sorted |
does a "smart" sort on the keys such that SET cards increment in numerical order. | |
def | __repr__ |
Prints out every entry in the subcase. | |
Public Attributes | |
id | |
params | |
sol | |
Static Public Attributes | |
dictionary | solCodeMap |
Definition at line 29 of file subcase.py.
def pyNastran.bdf.subcase.Subcase.__init__ | ( | self, | |
id = 0 |
|||
) |
Definition at line 45 of file subcase.py.
def pyNastran.bdf.subcase.Subcase.get_stress_code | ( | self, | |
key, | |||
options, | |||
value | |||
) |
BAR - no von mises/fiber ISOTROPIC - no fiber
Definition at line 62 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_format_code().
Referenced by pyNastran.bdf.subcase.Subcase.get_op2_data().
def pyNastran.bdf.subcase.Subcase.get_format_code | ( | self, | |
options, | |||
value | |||
) |
Definition at line 76 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_sort_code().
Referenced by pyNastran.bdf.subcase.Subcase.get_op2_data(), and pyNastran.bdf.subcase.Subcase.get_stress_code().
def pyNastran.bdf.subcase.Subcase.get_sort_code | ( | self, | |
options, | |||
value | |||
) |
Definition at line 87 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_device_code().
Referenced by pyNastran.bdf.subcase.Subcase.get_format_code(), and pyNastran.bdf.subcase.Subcase.get_op2_data().
def pyNastran.bdf.subcase.Subcase.get_device_code | ( | self, | |
options, | |||
value | |||
) |
Definition at line 97 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_analysis_code().
Referenced by pyNastran.bdf.subcase.Subcase.get_op2_data(), and pyNastran.bdf.subcase.Subcase.get_sort_code().
def pyNastran.bdf.subcase.Subcase.get_analysis_code | ( | self, | |
sol | |||
) |
8 - post-buckling (maybe 7 depending on NLPARM???)
# not important 3/4 - differential stiffness (obsolete) 11 - old geometric nonlinear statics 12 - contran (???)
Definition at line 120 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_table_code().
Referenced by pyNastran.bdf.subcase.Subcase.get_device_code(), and pyNastran.bdf.subcase.Subcase.get_op2_data().
def pyNastran.bdf.subcase.Subcase.get_table_code | ( | self, | |
sol, | |||
tableName, | |||
options | |||
) |
Definition at line 146 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.hasParameter().
Referenced by pyNastran.bdf.subcase.Subcase.get_analysis_code(), and pyNastran.bdf.subcase.Subcase.get_op2_data().
def pyNastran.bdf.subcase.Subcase.hasParameter | ( | self, | |
paramName | |||
) |
Definition at line 331 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.getParameter(), pyNastran.bdf.caseControlDeck.CaseControlDeck.has_parameter(), and pyNastran.bdf.subcase.Subcase.has_parameter().
Referenced by pyNastran.bdf.subcase.Subcase.get_table_code().
def pyNastran.bdf.subcase.Subcase.getParameter | ( | self, | |
paramName | |||
) |
Definition at line 336 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_parameter(), and pyNastran.bdf.subcase.Subcase.updateParamName().
Referenced by pyNastran.bdf.subcase.Subcase.hasParameter().
def pyNastran.bdf.subcase.Subcase.updateParamName | ( | self, | |
paramName | |||
) |
Definition at line 341 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.update_param_name(), and pyNastran.bdf.subcase.Subcase.writeSubcase().
Referenced by pyNastran.bdf.subcase.Subcase.getParameter().
def pyNastran.bdf.subcase.Subcase.writeSubcase | ( | self, | |
subcase0 | |||
) |
Definition at line 346 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.has_parameter(), pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, and pyNastran.bdf.subcase.Subcase.write_subcase().
Referenced by pyNastran.bdf.subcase.Subcase.updateParamName().
def pyNastran.bdf.subcase.Subcase.has_parameter | ( | self, | |
paramName | |||
) |
Definition at line 352 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_parameter(), pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, and pyNastran.bdf.subcase.Subcase.update_param_name().
Referenced by pyNastran.bdf.subcase.Subcase.hasParameter(), and pyNastran.bdf.subcase.Subcase.writeSubcase().
def pyNastran.bdf.subcase.Subcase.get_parameter | ( | self, | |
paramName | |||
) |
Definition at line 357 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, and pyNastran.bdf.subcase.Subcase.update_param_name().
Referenced by pyNastran.bdf.subcase.Subcase.getParameter(), and pyNastran.bdf.subcase.Subcase.has_parameter().
def pyNastran.bdf.subcase.Subcase.update_param_name | ( | self, | |
paramName | |||
) |
takes an abbreviated name and expands it so the user can type DISP or DISPLACEMENT and get the same answer
Definition at line 370 of file subcase.py.
References pyNastran.bdf.subcase.Subcase._simplify_data(), pyNastran.bdf.subcase.Subcase.get_op2_data(), pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, pyNastran.bdf.subcase.Subcase.sol, pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.sol, pyNastran.bdf.bdf.BDF.sol, and pyNastran.bdf.subcase.Subcase.update_param_name().
Referenced by pyNastran.bdf.subcase.Subcase.get_parameter(), pyNastran.bdf.subcase.Subcase.has_parameter(), pyNastran.bdf.subcase.Subcase.update_param_name(), and pyNastran.bdf.subcase.Subcase.updateParamName().
def pyNastran.bdf.subcase.Subcase.get_op2_data | ( | self, | |
sol, | |||
solmap_toValue | |||
) |
Definition at line 459 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.get_analysis_code(), pyNastran.bdf.subcase.Subcase.get_device_code(), pyNastran.bdf.subcase.Subcase.get_format_code(), pyNastran.bdf.subcase.Subcase.get_sort_code(), pyNastran.bdf.subcase.Subcase.get_stress_code(), pyNastran.bdf.subcase.Subcase.get_table_code(), pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, pyNastran.bdf.subcase.Subcase.print_param(), pyNastran.bdf.subcase.Subcase.sol, pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.sol, pyNastran.bdf.bdf.BDF.sol, and pyNastran.bdf.subcase.Subcase.solCodeMap.
Referenced by pyNastran.bdf.subcase.Subcase.update_param_name().
def pyNastran.bdf.subcase.Subcase.print_param | ( | self, | |
key, | |||
param, | |||
printBeginBulk = True |
|||
) |
Prints a single entry of the a subcase from the global or local subcase list.
Definition at line 560 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.crossReference(), pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, and pyNastran.bdf.bdf.BDF.params.
Referenced by pyNastran.bdf.subcase.Subcase.__repr__(), pyNastran.bdf.subcase.Subcase.get_op2_data(), and pyNastran.bdf.subcase.Subcase.write_subcase().
def pyNastran.bdf.subcase.Subcase.crossReference | ( | self, | |
mesh | |||
) |
Definition at line 634 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.finish_subcase(), pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, and pyNastran.bdf.subcase.Subcase.write_subcase().
Referenced by pyNastran.bdf.subcase.Subcase.print_param(), pyNastran.bdf.bdf.BDF.readBDF(), and pyNastran.bdf.bdf.BDF.readBDF_Punch().
def pyNastran.bdf.subcase.Subcase.finish_subcase | ( | self | ) |
Removes the subcase parameter from the subcase to avoid printing it in a funny spot.
Definition at line 677 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, and pyNastran.bdf.subcase.Subcase.subcase_sorted().
Referenced by pyNastran.bdf.subcase.Subcase.crossReference().
def pyNastran.bdf.subcase.Subcase.write_subcase | ( | self, | |
subcase0 | |||
) |
internal method to print a subcase
self | the subcase object |
subcase0 | the global subcase |
Definition at line 688 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, pyNastran.bdf.subcase.Subcase.print_param(), and pyNastran.bdf.subcase.Subcase.subcase_sorted().
Referenced by pyNastran.bdf.subcase.Subcase.crossReference(), and pyNastran.bdf.subcase.Subcase.writeSubcase().
def pyNastran.bdf.subcase.Subcase.subcase_sorted | ( | self, | |
listA | |||
) |
does a "smart" sort on the keys such that SET cards increment in numerical order.
self | the subcase object |
listA | the list of subcase list objects |
listB | the sorted version of listA |
Definition at line 728 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.__repr__(), pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, and pyNastran.bdf.subcase.Subcase.subcase_sorted().
Referenced by pyNastran.bdf.subcase.Subcase.finish_subcase(), pyNastran.bdf.subcase.Subcase.subcase_sorted(), and pyNastran.bdf.subcase.Subcase.write_subcase().
def pyNastran.bdf.subcase.Subcase.__repr__ | ( | self | ) |
Prints out every entry in the subcase.
Skips parameters already in the global subcase.
Definition at line 773 of file subcase.py.
References pyNastran.bdf.subcase.Subcase.id, pyNastran.bdf.cards.properties.mass.NSM.id, pyNastran.bdf.cards.aero.AELINK.id, pyNastran.bdf.cards.aero.AEPARM.id, pyNastran.bdf.cards.aero.AESTAT.id, pyNastran.bdf.subcase.Subcase.params, pyNastran.bdf.cards.optimization.DOPTPRM.params, pyNastran.bdf.cards.optimization.DRESP2.params, pyNastran.bdf.bdf.BDF.params, and pyNastran.bdf.subcase.Subcase.print_param().
Referenced by pyNastran.bdf.cards.elements.bars.CROD.displacementStress(), pyNastran.bdf.cards.elements.bars.CBAR.Stiffness(), and pyNastran.bdf.subcase.Subcase.subcase_sorted().
dictionary pyNastran::bdf::subcase.Subcase::solCodeMap [static] |
{ 1: 101, 21: 101, 24: 101, 26: 101, 61: 101, 64: 106, # correct 66: 106, # correct 68: 106, # correct 76: 101, 99: 129, # correct 144: 101, # correct 187: 101, }
Definition at line 30 of file subcase.py.
Referenced by pyNastran.bdf.subcase.Subcase::get_op2_data().
Definition at line 45 of file subcase.py.
Referenced by pyNastran.bdf.subcase.Subcase::__repr__(), pyNastran.bdf.subcase.Subcase::finish_subcase(), pyNastran.bdf.subcase.Subcase::get_parameter(), pyNastran.bdf.subcase.Subcase::print_param(), pyNastran.bdf.cards.aero.AESURF::reprFields(), pyNastran.bdf.subcase.Subcase::subcase_sorted(), pyNastran.bdf.subcase.Subcase::update_param_name(), and pyNastran.bdf.subcase.Subcase::write_subcase().
Definition at line 45 of file subcase.py.
Referenced by pyNastran.bdf.subcase.Subcase.__repr__(), pyNastran.bdf.bdfInterface.addCard.AddMethods.addParam(), pyNastran.bdf.subcase.Subcase.crossReference(), pyNastran.bdf.subcase.Subcase.get_op2_data(), pyNastran.bdf.subcase.Subcase.get_parameter(), pyNastran.bdf.subcase.Subcase.has_parameter(), pyNastran.bdf.subcase.Subcase.print_param(), pyNastran.bdf.subcase.Subcase.update_param_name(), pyNastran.bdf.bdfInterface.bdf_writeMesh.WriteMesh.write_case_control_deck(), pyNastran.bdf.subcase.Subcase.write_subcase(), and pyNastran.bdf.subcase.Subcase.writeSubcase().
Definition at line 45 of file subcase.py.
Referenced by pyNastran.bdf.caseControlDeck.CaseControlDeck.finish_subcases(), pyNastran.bdf.subcase.Subcase.get_op2_data(), and pyNastran.bdf.subcase.Subcase.update_param_name().