ABAQUS中.for文件编译为.obj文件

将.for文件编译为二进制的.obj文件,可以便于更多的用户使用子程序,同时保护代码。操作方法如下:

1、将.for文件移动到ABAQUS默认的工作文件夹下,如D:\temp。

2、打开ABAQUS Command运行窗口,输入abaqus make library=iFiber.for object_type=fortran(iFiber为.for文件的名称),然后回车键进行编译,如下图 所示:

Continue reading

ABAQUS同时调用多个umat用户子程序

        最近把做iFiber开发的心得汇总一下,第一个问题就是当在同一个.for文件中需要同时调用多个UMAT用户子程序时,怎么处理?

        在ABAQUS的UMAT开发中,需要把好几个材料模型放入同一个.for文件进行调用,看过帮助文档,给出的解释和参考格式如下:
The variable CMNAME can be tested for different material names inside user subroutine UMAT as illustrated below:
        IF (CMNAME (1:4) .EQ. 'MAT1') THEN
                CALL UMAT_MAT1 (argument_list)
        ELSE IF(CMNAME(1:4) .EQ. 'MAT2') THEN
                CALL UMAT_MAT2 (argument_list)
        END IF
        UMAT_MAT1 and UMAT_MAT2 are the actual user material subroutines containing the constitutive material models for each material MAT1 and MAT2, respectively. Subroutine UMAT merely acts as a directory here. The argument list may be the same as that used in subroutine UMAT.

Continue reading