资源描述
Abaqus路径问题汇总(含安装通过子程序验证终极办法,帮助设置问题)
1, 命令行运行
2 Y; J6 O6 |/ m3 q! q7 f2 L y$ T; X6 }5 j9 c5 O6 d$ N+ U& z
在系统安装ABAQUS后,也可以直接从命令行提inp文件计算,如在命令行内输入
% G0 z( n+ q* h) Mabaqus information=release8 ]: s+ s; p, x' P3 G9 {% @
你应该会看到ABAQUS的相关版本信息。# X8 e; Z5 {$ ~. ^" S
如果出现: “ abaqus不是内部或外部命令,也不是可运行的程序或批处理文件”,那就是在系统中对于ABAQUS的路径没有设置好。* Z" Y1 n& ]3 K, R9 |1 O
请按照下面方法进行设置:5 T3 D% }2 l' c2 r
打开“我的电脑”-“属性”-“高级”-“环境变量”: k: ?" p/ `/ g
打开"系统变量"-Path
1 H9 |7 ~7 a+ z把你安装ABAQUS软件的位置如D:\ABAQUS\Commands加入该变量,注意加的时候要认真,不要改错。重启电脑生效
2, 二次开发验证(子程序)(解决子程序通过的终极办法)
. k. X' \( ^6 x3 V0 d- [1 ?
# Z. y3 }3 z6 k8 t ^, X版本很多朋友都会问到安装子程序不能通过验证如何解决,其实还是涉及到路径问题,由于有时候VC和intel fortran不能自动将系统变量进行设置,因而造成找不到相关的执行程序。这点其实很多人也知道,但到底如何设置才正确?哪些路径需要加入系统的变量中才是所需要的呢?6 s3 e6 J G5 M% B6 o
现给出终极办法,只要设置好一般不会出错。8 j W; a' c" f- W
/ t2 Y2 J0 D1 p7 v0 h- N
请先在自己的系统中找到下面的文件,我的安装位置是在d盘,各位的安装位置可能不同,请自己确定。
! |' f3 U8 p/ p) G/ YD:\Program Files\Intel\Compiler\Fortran\9.1\IA32\Bin\ifortvars.bat
4 W% [3 @, n; q/ V8 j3 AD:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat
7 B' i0 o2 U* g; I+ j9 A, \6 t" W# O, U5 r前者就是intel fortran相关设置,后者则是vs的设置。7 {7 d- H3 @* J1 H5 D
打开ifortvars.bat
0 c* g# E: @8 F6 |注意以下文本(注意根目录可能根据安装而不同)
+ w1 w& n" p6 N0 N1 x--------------: C# r" z& H0 c) m! t7 z# \
SET IFORT_COMPILER91=D:\Program Files\Intel\Compiler\Fortran\9.1
1 l' `% n* W) B$ r; KSET INTEL_SHARED=C:\Program Files\Common Files\Intel\Shared Files
0 p' l- f/ r; M( s4 i* pSET INTEL_LICENSE_FILE=C:\Program Files\Common Files\Intel\Licenses" y& }7 Y. A- G4 |6 N
SET PATH=%IFORT_COMPILER91%\Ia32\Bin;%INTEL_SHARED%\Ia32\Bin;%PATH%1 g1 _" x, }- s" n
SET LIB=%IFORT_COMPILER91%\Ia32\Lib;%LIB%) {) @) N. t# T( G: K
SET INCLUDE=%IFORT_COMPILER91%\Ia32\Include;%INCLUDE%, r: n+ L/ j5 ?/ x) M+ _
--------------
- F" ?. A+ a' L* d' x如对于Lib变量,也是按上图中进入选择lib
/ u; \* Q6 g& f# `+ @. RSET IFORT_COMPILER91=D:\Program Files\Intel\Compiler\Fortran\9.1
+ x+ _9 q) |7 V) ?. ~- e; v就是说%IFORT_COMPILER91%表示D:\Program Files\Intel\Compiler\Fortran\9.1% s( z8 O+ D% i$ H
SET LIB=%IFORT_COMPILER91%\Ia32\Lib;%LIB%; t- r4 a+ ~ _: ?: V1 N
就是表示将/ F' k2 m% {! }" m1 r* J
D:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Lib加入系统lib变量即可,其它也是相同,一共有三个变量path,lib和include
% }9 B9 s" C! }5 M) J( B. L: C A1 g8 W3 k* |6 d% B/ }( h
同样,对于vs也是同样设置,注意加入时要仔细,以下是vsvars32.bat相关内容
! v3 o( w2 [, ~# H@set PATH=D:\Program Files\Microsoft Visual Studio 8\Common7\IDE;D:\Program Files\Microsoft Visual Studio 8\VC\BIN;D:\Program Files\Microsoft Visual
- a: e# |1 \6 d4 m/ x8 YStudio 8\Common7\Tools;D:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;D:\Program Files\Microsoft Visual Studio 83 W7 J4 w& l y' p
\VC\PlatformSDK\bin;D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;D:\Program Files\Microsoft
- a& z- }8 x% v, q' x, K2 UVisual Studio 8\VC\VCPackages;%PATH%
, l0 A5 ~; @6 S6 z0 Y@set INCLUDE=D:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;D:\Program 8 C8 V T3 M5 A: H; U( r/ {+ V
Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;%INCLUDE%8 Z' w. ~# ~' d. O( ~
@set LIB=D:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;D:\Program Files\Microsoft Visual Studio 8\VC\LIB;D:\Program Files\Microsoft Visual Studio
3 C- ^) E/ d0 g9 X8\VC\PlatformSDK\lib;D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;%LIB%
% ?8 w- X/ z; K' Z) p5 C@set LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;D:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB6 B2 D g# N! O }3 B
重启电脑生效。
i' h9 @+ s- C: s( f/ @
; d1 [# \( i; `( Q+ a9 E' j7 v" @$ t N+ z) K2 J
3, CAE启动的工作目录6 g5 {- P4 Z1 m8 q+ k" Y/ Y
2 m. z* ?* M, e$ A工作目录也就是计算文件和结果文件放置的位置,有几种方法确定计算工作目录。
% p L" O' o+ j A; g' f
; s: h6 w$ t2 \" [a, 修改软件启动的工作目录,点击“开始”-“所有程序”-“Abaqus 6x-x”-“Abaqus CAE”上右键,选择属性
. g# e: I5 n, Y6 y* ]* U在出现的对话框中的“起始位置”就是你打开软件的默认工作目录; e3 S# U! m) r% l8 ^
b,进入当前的目录,双击cae或odb文件打开软件,这时候的当前目录就是软件工作目录
; ^9 f: D/ ~# P
; o# ^; q5 l2 j$ Z2 Qc,进入cae软件后,单击“file”-"set work directory"来查看和设置工作目录,当然如果经常要换还是很麻烦的# b3 p: `8 H! O. `
( V) `! }# l/ O1 L- f1 A# Q3 A
c,进入当前目录的cmd窗口,使用命令行提交,当前目录是软件工作目录
. I2 n& H5 k, [, \% x 下帖中有个软件,可以快速完成此事,提高效率。
) p3 M* X Z; o y" @9 m/ @0 V$ }
- n7 V* G0 X8 U: [4 g3 }' k L
4,改变帮助文件的路径) c. n. b2 M8 z! f
5 e) S( A; A2 G( s- W- h) h
如果安装中按要求先安装帮助,后安装软件,一般情况下不会出现什么问题。但已经安装软件,后安装帮助,如何与程序进行关联呢?
" C) _) I! S( U5 e$ j/ J还有帮助出问题时,如何进行修复设置?
; z* |6 G n! U' W2 Ba, 安装帮助文件后自动生成web server,如http://computername:port_number/v6.9/ ,请记下。
0 v7 k X* c# \" h7 j" J2 B/ `0 z- X6 o( m( M( A% ]
b,来点英文吧,就是设置abaqus_v6.env环境变量文件
" S# l" ?7 S ~( w8 w- @: q j: d5 \The documentation URL is required in the abaqus_v6.env file to provide access to the HTML documentation from Abaqus. The abaqus_v6.env file is located in the
/ B% C! S) e3 g: l* c* Vabaqus_dir/6.9-n/site directory, where abaqus_dir is the Abaqus parent directory and n refers to the Abaqus update. The required parameter definition is as follows:
& t2 \9 d9 I5 X0 ^HTML documentation install with web server
1 |1 W$ ?1 R- A/ {. K$ bdoc_root="http://computername:port_number/v6.9", [ f2 D3 T5 N
where computername is the fully qualified domain name of the web server and port_number is the port number used by the web server (if required). For example, 4 v- p) R! s/ B: `( h
a valid parameter definition is! c" L& @$ p5 d# M
doc_root=":2080/v6.9" 8 X! ~. D5 z. g4 g# Y$ a
% f# Z& l! q2 F/ n% ~* _
c,还有一个设置,别忘了,与程序关联
7 D0 T& Q+ t: T" A/ qThe documentation URL is required in the url.js file to enable links from help windows in Abaqus/CAE to associated topics in the Abaqus HTML documentation. The " N% u0 a) J! S& R* I% ?/ f; F8 P
url.js file is located in the abaqus_dir/6.9-n/Help/redirects directory, where abaqus_dir is the Abaqus parent directory and n refers to the Abaqus update. The line in
1 m& y3 E1 F" B# O) v5 j! dthe url.js file should have the following form:/ r" j/ b. Q4 A' I( v
HTML documentation install with web server
5 V8 c3 e' |/ @' w5 d {9 Svar baseURL="http://computername:port_number/v6.9/books/";: {, v3 [4 I: _1 H5 p
where computername is the fully qualified domain name of the web server and port_number is the port number used by the web server (if required). For example,
. v8 e2 Y: F) O- Ta valid definition is
2 Y# b0 ?% K! p9 o) E3 p9 Xvar baseURL=":2080/v6.9/books/";& u" N1 v8 B3 l. h1 p* ^
( l. A6 t I# i, ?' e! {ABAQUS还有什么路径设置,大家可以一起讨论补充。
展开阅读全文