
Status: Fail - Unable to locate or determine the version of a
Fortran compiler on this system. If Intel Fortran is
installed on this system, please load ifortvars.bat before
running Abaqus.
这表示abaqus未能与fortran成功链接。
若需要链接abaqus with fortran 则安装完后需要进行以下设置。 当然有些在安装的时候已经设置好了。如果出现问题可以试试下面的方法。
以下过程主要目的是将ifortvars(可能有后缀,不通系统不一样)中的内容复制到 abaqus commond文件夹下的abaqus.bat(可能名称有区别) 文件,这样abaqus才能找到fortran。 之前搞了半天没弄明白,后来找了个非常nice的老外给弄好了,这老师那个亲切啊~~
我的系统:Windows 7 (64位) + Microsoft Visual studio 2008 + Intel(R) Fortran Compiler Professional 11.1.067 + Abaqus 6.10-1
1. 寻找两个文件 .bat 文件
在我的计算机上路径如下:
1.1 Start--All Program--Abaqus 6.10-1-- Abaqus Verification (right click) -- Property
在出现的对话框中 点Shortcut子对话框 查看Target 中的内容, 我的是
C:\SIMULIA\Abaqus\Commands\abq6101.bat -verify -all -log &&notepad.exe verify.log || notepad.exe
verify.log
说明verification运行的是 abq6101.bat。 确认运行的哪个bat文件非常重要,因为如果版本不一样
commonds文件夹中有可能还会有不同的bat文件。 所以需要首先check
1.2Start--All Program--Intel(R) Software Development Tools--Intel(R) Visual Fortran Compiler Professional
11.1.067 我的是64位的,所以右键点击 Fortran Build Environment for applications running on Intel(R)
64 -- Property (如果是32位则选择另外一个,即Fortran Build Environment for applications running on
Intel(R) IA-32)
shortcut--target 中的内容为:
C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""C:\Program Files (x86)\Intel\Compiler\11.1\067
\bin\ifortvars.bat" intel64"
即需要在相应目录下寻找 ifortvars.bat,由于我的电脑是64位的 所以在bin文件夹下有两个文件夹ia32,
intel 64以及 ifortvars.bat 文件。 对于我的电脑得在intel 64 中寻找 "ifortvars_intel64.bat"。 不同的系统
可能稍有差异,有可能只需要找到ifortvars.bat 或者是找ifortvars_ia32.bat。可以都打开看看
我的ifortvars_intel64.bat文件内容为
@echo off
Rem
Rem Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
Rem
Rem The information and source code contained herein is the exclusive property
Rem of Intel Corporation and may not be disclosed, examined, or reproduced in
Rem whole or in part without explicit written authorization from the Company.
Rem
Rem Intel(R) Visual Fortran Intel(R) 64 Compiler Professional Build Environment for applications running on Intel(R) 64
echo.
echo Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067
echo Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
echo.
if {%1} EQU {vs2008} (
@call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x64
) else (
if {%1} EQU {vs2005} (
@call echo.
) else (
@call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x64
)
)
title Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067 build environment
echo.
SET IFORT_COMPILER11=C:\Program Files (x86)\Intel\Compiler\11.1\067
SET INTEL_LICENSE_FILE=C:\Program Files (x86)\Common Files\Intel\Licenses%INTEL_LICENSE_FILE%
SET PATH=%IFORT_COMPILER11%\Bin\intel64%PATH%
SET LIB=%IFORT_COMPILER11%\Lib\intel64%LIB%
SET INCLUDE=%IFORT_COMPILER11%\Include%IFORT_COMPILER11%\Include\Intel64%INCLUDE%
我的abq6101.bat文件内容为
@echo off
"C:\SIMULIA\Abaqus\6.10-1\exec\abq6101.exe" %*
2. 将ifortvars_intel64.bat文件内容复制粘贴到abaq6101.bat文件开头。如下
@echo off
Rem
Rem Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
Rem
Rem The information and source code contained herein is the exclusive property
Rem of Intel Corporation and may not be disclosed, examined, or reproduced in
Rem whole or in part without explicit written authorization from the Company.
Rem
Rem Intel(R) Visual Fortran Intel(R) 64 Compiler Professional Build Environment for applications running on Intel(R) 64
echo.
echo Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067
echo Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
echo.
if {%1} EQU {vs2008} (
@call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x64
) else (
if {%1} EQU {vs2005} (
@call echo.
) else (
@call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x64
)
)
title Intel(R) Visual Fortran Intel(R) 64 Compiler Professional for applications running on Intel(R) 64, Version 11.1.067 build environment
echo.
SET IFORT_COMPILER11=C:\Program Files (x86)\Intel\Compiler\11.1\067
SET INTEL_LICENSE_FILE=C:\Program Files (x86)\Common Files\Intel\Licenses%INTEL_LICENSE_FILE%
SET PATH=%IFORT_COMPILER11%\Bin\intel64%PATH%
SET LIB=%IFORT_COMPILER11%\Lib\intel64%LIB%
SET INCLUDE=%IFORT_COMPILER11%\Include%IFORT_COMPILER11%\Include\Intel64%INCLUDE%
@echo off
"C:\SIMULIA\Abaqus\6.10-1\exec\abq6101.exe" %*
其实,ABAQUS的用户子程序在很多地方都可以编写。常用的有:
1.新建一个txt文档,在里面写好你的用户子程序Fortran代码,然后保存好,并将文件名的后缀改为.for或者.f90就可以了。
2.如果你需要fortran语法的检查方便,可以打开安装好的fortran软件,然后在里面编写你的用户子程序,写好之后保存就可以了。32位windows *** 作系统可以用compaq
visual
fortran
6.5或6.6版本的;64位windows *** 作系统,例如win7的,可以安装
microsoft
visual
studio
和
intel
visual
fortran
来编写代码。
ABAQUS调用用户子程序的话,只要在inp文件中加入
调用子程序的关键词
就可以调用子程序了。
希望对你有帮助,如果觉得答案好,请采纳。
win7Fortran一般不好弄 IVF吧 VS2012加上Intel Fortran 你去Fortran吧看看吧 不过我还是建议弄个虚拟机直接XP装Fortran95 我就是这么办的欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)