Isight Corner: How to use userscripts in Abaqus Component?

 

Abaqus component is one of the widely used components in Isight, allowing seamless integration of Abaqus model in Isight workflows.The userscripts extends the capabilities of  Abaqus component, allowing the user to use custom input and output parameters.

There are two scripts to include input parameters, operating on CAE files,  namely :

  • userscript_cae_pre.py 
  • userscript_cae_post.py.

For output parameter there is one script, operating on odb files, namely :

  • userscript_odb.py

 

To demonstrate the usage let us take one simple abaqus model as shown below :

 

The model contains a plate that is fixed in one end and is stretched in another end. The displacement in X direction ( U1) is measured in mm at midway as shown.  For demonstration purposes, we require

  1. to find out the sensitivity of U1 to MeshSize
  2. to output U1 in inches.

 

MeshSize is not a standard input variable in Abaqus component. Hence userscript_cae_pre.py is used.  The model is made such that U1 is given out in mm. userscript_odb.py is used to convert the U1 output to inches.  Both these  scripts should be  present in the model directory, and before the ODB/CAE files are read, "Use Custom Scripts" option is checked. This enables Isight to read and configure these userscripts.

 

To use the userscript_cae_pre.py, an input parameter called "MeshSize" is created manually in Abaqus Component and then used in the script. Isight passes the value of MeshSize to the script during runtime and it is used to change the mesh of the model. When there is a geometry change in abaqus model, Isight will automatically remesh and regenerate all the required parts and assembly. However in this case, since only the mesh is changed, it is upto the user to provide appropriate commands to remesh and regenerate.

 

userscript_odb.py creates two custom parameters for U1 in mm and in inches. Isight uses a file called "user_params.txt" to recognize custom output parameters. The odb script should write the parameter names and values to this file.

 

Loop component is used to vary the MeshSize from coarse to fine and the effects of meshsize on U1 at midpoint is studied. The following picture shows mesh variation from coarse to fine.

 

Following graph plots the dependence of U1 ( in inches ) on MeshSize

 

All these concepts along with how the Isight workflow is created are shown in this  narrated video.

 

Isight wofklow including the userscripts and also the PPT file are available in the zip file.