N2PAbaqusInputData#

class NaxToPy.Core.Classes.N2PAbaqusInputData.N2PAbaqusInputData(inputfiledata)[source]#

Bases: object

Class with the complete data of an Abaqus MEF input file (text file usually with the extension .inp).

property DictionaryFilesIDs: dict#
property DictionaryIDsFiles: dict#
property ListBulkDataKeywords: list[N2PKeyword, ...]#

List with the N2PCard objects of the input FEM file. It has all bulk data cards of the model

property ListComments: list[N2PInputData]#

List with all the comments in the FEM Input File

property TypeOfFile: str#
get_entity_by_key_and_id(entitytype: Literal['NODE', 'ELEMENT'], entitityid: int) list[N2PEntity][source]#

Method that returns a list with the N2Entities objects of the input FEM file asked. There can be several Entities with the same ID and EntityType as they can belong to different part.

Parameters:
  • entitytype – str

  • entitityid – int

Returns:

list[N2PKeyword, ]

get_keywords_by_type(field: Literal['BEAMSECTION', 'DENSITY', 'COUPLING', 'DISTRIBUTING', 'DISTRIBUTINGCOUPLING', 'ELASTIC', 'ELEMENT', 'ELSET', 'ENDINSTANCE', 'ENDPART', 'INSTANCE', 'KINEMATIC', 'KINEMATICCOUPLING', 'MATERIAL', 'NODE', 'NSET', 'ORIENTATION', 'PART', 'PLASTIC', 'SHELLSECTION', 'SOLIDSECTION', 'SURFACE', 'UNSUPPORTED']) list[N2PKeyword][source]#

Method that returns a list with the N2PKeyword objects of the input FEM file asked.

Parameters:

field – str

Returns:

list[N2PKeyword, ]

rebuild_file(folder: str) None[source]#

Method that writes the solver input file with the same file structure that was read in the folder is specified

Parameters:

folder – str -> Path of the folder where the file or files will be writen