SOLVER_TYPE = constants.PAMCRASH ENTITY_TYPES = ['SHELL', 'MEMBRANE', 'SOLID'] # ============================================================================== # Update this dictionary to load check automatically checkOptions = { 'name': 'Check materials with a checking list (ABA/PAM/NAS) - SKODA: 23C', 'exec_action': ('exe', os.path.realpath(__file__)), 'fix_action': ('fix', os.path.realpath(__file__)), 'deck': CheckItem.SOLVER_TYPE, 'requested_types': CheckItem.ENTITY_TYPES, 'info': 'Checks materials' } checkDescription = base.CheckDescription(**checkOptions) # Add parameters checkDescription.add_str_param('Number of segments', '5') checkDescription.add_str_param('Segment of material name', '5') checkDescription.add_str_param('Type of loadcase', 'SK3165_+23') checkDescription.add_str_param('Solver', 'PAMCRASH') checkDescription.add_str_param( 'Matching list', '/data/fem/+software/SKODA_INCLUDE/white_list_bumpers_SK316') checkDescription.add_str_param('Delimiter for part name', '__') # ============================================================================== if __name__ == '__main__' and DEBUG:
continue for ent in ents: success = ent.set_entity_values(4, field) if success == 0: print ('The name was fixed' + issue.suggest_name) issue.is_fixed = True # ============================================================================== # Update this dictionary in order to load this check automatically! checkOptions = {'name': 'Check TIEDs for SKODA (PAM)', 'exec_action': ('exe', os.path.realpath(__file__)), 'fix_action': ('fix', os.path.realpath(__file__)), 'deck': CheckItem.SOLVER_TYPE, 'requested_types': CheckItem.ENTITY_TYPES, 'info': 'Checks TIEDs'} checkDescription = base.CheckDescription(**checkOptions) # load check into ANSA # Add parameter checkDescription.add_str_param('Include prefix', 'FEN') # ============================================================================== if __name__ == '__main__' and DEBUG: testParams = { 'Include prefix': 'FEN'} check_base_items.debugModeTestFunction(CheckItem, testParams) # ==============================================================================