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).

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

Method that returns a list with the N2PEntities 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. If the part is given, only a N2PEntity will be returned.

Parameters:
  • entitytype – str

  • entitityid – int

  • part – str (optional)

Returns:

N2PEntity || list[N2PEntity, ]

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. They can be uppercase or lowecase indistinctly.

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

property DictionaryFilesIDs: dict#

Dictionary FilePaths (string) as keys and with ID (int) as values.

property DictionaryIDsFiles: dict#

Dictionary with ID (int) as keys and FilePaths (string) as values.

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#

Type of Input File.