|
90 | 90 | CPLSTS3, CPLSTS4, CPLSTS6, CPLSTS8, |
91 | 91 | SNORM,) |
92 | 92 |
|
93 | | -from .cards.properties.shell import PSHELL, PCOMP, PCOMPG, PSHEAR, PLPLANE, PPLANE, PTRSHL |
| 93 | +from .cards.properties.shell import PSHELL, PCOMP, PCOMPG, PSHEAR, PLPLANE, PPLANE, PGPLSN, PTRSHL |
94 | 94 | from .cards.elements.acoustic import ( |
95 | 95 | CHACAB, CAABSF, CHACBR, PACABS, PAABSF, PACBAR, |
96 | 96 | ACMODL, PMIC, ACPLNW, AMLREG, MATPOR, MICPNT) |
|
251 | 251 | PBAR | PBARL | PBEAM | PBRSECT | |
252 | 252 | PBEAML | PBCOMP | PBMSECT | |
253 | 253 | PBEND | PBEAM3 | |
254 | | - PSHEAR | PPLANE | |
| 254 | + PSHEAR | PPLANE | PGPLSN | |
255 | 255 | PSHELL | PCOMP | PCOMPG | |
256 | 256 | PSOLID | PLSOLID | PCOMPS | PCOMPLS | |
257 | 257 | PWELD |
@@ -722,7 +722,7 @@ def __init__(self, debug: str | bool | None=True, |
722 | 722 |
|
723 | 723 | ## properties |
724 | 724 | 'PMASS', |
725 | | - 'PELAS', 'PGAP', 'PFAST', 'PWELD', 'PLPLANE', 'PPLANE', |
| 725 | + 'PELAS', 'PGAP', 'PFAST', 'PWELD', 'PLPLANE', 'PPLANE', 'PGPLSN', |
726 | 726 | 'PBUSH', 'PBUSH1D', 'PBUSH2D', |
727 | 727 | 'PDAMP', 'PDAMP5', |
728 | 728 | 'PROD', 'PBAR', 'PBARL', 'PBEAM', 'PTUBE', 'PBCOMP', 'PBRSECT', 'PBEND', |
@@ -1928,8 +1928,9 @@ def get_bdf_cards(self, bulk_data_lines: list[str], |
1928 | 1928 |
|
1929 | 1929 | for iline_bulk, line in enumerate(bulk_data_lines): |
1930 | 1930 | ifile_iline = bulk_data_ilines[iline_bulk, :] |
1931 | | - #print(iline_bulk, ifile_iline, line) |
1932 | | - #print(' backup=%r' % backup_comment) |
| 1931 | + # print(iline_bulk, ifile_iline) |
| 1932 | + # print(iline_bulk, ifile_iline, line) |
| 1933 | + # print(' backup={backup_comment!r}') |
1933 | 1934 | comment = '' |
1934 | 1935 | if '$' in line: |
1935 | 1936 | line, comment = line.split('$', 1) |
@@ -2600,6 +2601,7 @@ def add_card(cls, card: BDFCard, comment: str=''): |
2600 | 2601 | 'CPLSTS6': (CPLSTS6, add_methods.add_element_object), |
2601 | 2602 | 'CPLSTS8': (CPLSTS8, add_methods.add_element_object), |
2602 | 2603 | 'PPLANE': (PPLANE, add_methods.add_property_object), |
| 2604 | + 'PGPLSN': (PGPLSN, add_methods.add_property_object), |
2603 | 2605 |
|
2604 | 2606 | 'CSHEAR': (CSHEAR, add_methods.add_element_object), |
2605 | 2607 | 'PSHEAR': (PSHEAR, add_methods.add_property_object), |
@@ -5263,33 +5265,33 @@ def read_bdf(bdf_filename: Optional[PathLike]=None, validate: bool=True, |
5263 | 5265 | save_file_structure=save_file_structure, |
5264 | 5266 | encoding=encoding) |
5265 | 5267 |
|
5266 | | - #if 0: |
5267 | | - ### TODO: remove all the extra methods |
5268 | | - |
5269 | | - #keys_to_suppress = [] |
5270 | | - #method_names = model.object_methods(keys_to_skip=keys_to_suppress) |
5271 | | - |
5272 | | - #methods_to_remove = [ |
5273 | | - #'_process_card', 'read_bdf', 'disable_cards', 'set_dynamic_syntax', |
5274 | | - #'create_card_object', 'create_card_object_fields', 'create_card_object_list', |
5275 | | - |
5276 | | - #'set_as_msc', |
5277 | | - #'set_as_nx', |
5278 | | - |
5279 | | - #'pop_parse_errors', |
5280 | | - ##'pop_xref_errors', |
5281 | | - #'set_error_storage', |
5282 | | - #'is_reject', |
5283 | | - #] |
5284 | | - #for method_name in method_names: |
5285 | | - #if method_name not in methods_to_remove + keys_to_suppress: |
5286 | | - ##print(method_name) |
5287 | | - #pass |
5288 | | - #else: |
5289 | | - ### TODO: doesn't work... |
5290 | | - ##delattr(model, method_name) |
5291 | | - #pass |
5292 | | - #model.get_bdf_stats() |
| 5268 | + # if 0: |
| 5269 | + # ## TODO: remove all the extra methods |
| 5270 | + # |
| 5271 | + # keys_to_suppress = [] |
| 5272 | + # method_names = model.object_methods(keys_to_skip=keys_to_suppress) |
| 5273 | + # |
| 5274 | + # methods_to_remove = [ |
| 5275 | + # '_process_card', 'read_bdf', 'disable_cards', 'set_dynamic_syntax', |
| 5276 | + # 'create_card_object', 'create_card_object_fields', 'create_card_object_list', |
| 5277 | + # |
| 5278 | + # 'set_as_msc', |
| 5279 | + # 'set_as_nx', |
| 5280 | + # |
| 5281 | + # 'pop_parse_errors', |
| 5282 | + # #'pop_xref_errors', |
| 5283 | + # 'set_error_storage', |
| 5284 | + # 'is_reject', |
| 5285 | + # ] |
| 5286 | + # for method_name in method_names: |
| 5287 | + # if method_name not in methods_to_remove + keys_to_suppress: |
| 5288 | + # #print(method_name) |
| 5289 | + # pass |
| 5290 | + # else: |
| 5291 | + # ## TODO: doesn't work... |
| 5292 | + # #delattr(model, method_name) |
| 5293 | + # pass |
| 5294 | + # model.get_bdf_stats() |
5293 | 5295 | return model |
5294 | 5296 |
|
5295 | 5297 |
|
|
0 commit comments