Abaqus Tools#

This module provides functionality to create Abaqus sensitivity files by replacing parameter fields in an Abaqus template file and generating Python code blocks for parameterized studies.

Features#

  • The AbaqusPy class automates the process of reading a template, replacing parameter fields, generating Python function files for embedded code blocks, and producing final sensitivity files.

  • Designed for use in finite element sensitivity studies and parameter sweeps with Abaqus .inp files.

  • All file operations are performed with robust encoding and modular methods for each step.


class refpy.abaqus_tools.AbaqusPy(*, template_filename, sensitivity_filename, param_dict, isens)[source]#

Bases: object

Class to create sensitivity files by replacing parameter fields in a template file.

Parameters:
  • template_filename (str) – The base name of the Abaqus template file (without .inp extension).

  • sensitivity_filename (str) – The base name for the output sensitivity files.

  • param_dict (dict) – Dictionary mapping parameter names to lists of values.

  • isens (int) – Index of the sensitivity case to use from param_dict values.

run()[source]#

Run the full process: read template, replace parameters, create function file, and create the final sensitivity file.

Return type:

None