67. plugins.ccxinp — Interface with Abaqus/Calculix FE input files (.inp).¶
- plugins.ccxinp.skip_unknown_eltype¶
- If True, element blocks with an unrecognized element type are skipped. If False (default), an exception will be raised. - Type:
 
67.2. Functions defined in module plugins.ccxinp¶
- plugins.ccxinp.abq_eltype(eltype)[source]¶
- Analyze an Abaqus element type and return eltype characteristics. - Returns a dictionary with: - type: the element base type 
- ndim: the dimensionality of the model space 
- nplex: the plexitude (number of nodes) 
- mod: a modifier string 
- pyf: the corresponding pyFormex element type (this can be a dict with nplex as key) 
 - Currently, all these fields are returned as strings. We should probably change ndim and nplex to an int. 
- plugins.ccxinp.readCommand(line)[source]¶
- Read a command line, return the command and a dict with options 
- plugins.ccxinp.readInpFile(fn, tempdir=None)[source]¶
- Read an input file (.inp) - Tries to read a file in Abaqus INP format and returns the recognized meshes. - Parameters:
 - Warning - Element blocks with an unrecognized element type will raise an exception, unless - skip_unknown_eltypeis set to True.- Returns:
- InpModel – A data class with the following attributes: - heading: the heading read from the .inp file 
- parts: a list with parts. See Notes 
 
 - Notes - Each part is a dict and can contain the following keys: - name: string: the part name 
- coords: float (nnod,3) array: the nodal coordinates 
- nodid: int (nnod,) array: node numbers; default is np.arange(nnod) 
- elems: int (nelems,nplex) array: element connectivity 
- elid: int (nelems,) array: element numbers; default is np.arange(nelems) 
 - See also - fileread.readINP()
- read an INP file and return FEModel objects. 
 
 
  