24小时热门版块排行榜    

查看: 2725  |  回复: 0
【悬赏金币】回答本帖问题,作者yzhy@163.com将赠送您 12 个金币

yzhy@163.com

银虫 (小有名气)

[求助] 装完Ansys13,为啥icem打不开?求高人指点!!

装完Ansys后,点击开始菜单icem cfd,只蹦出一个记事本,内容如下:

@echo off

rem set ICEM_LICENSING_FLAGS=ansys
rem set ICEM_LICENSING_FLAGS=icem
rem set ICEM_LICENSE_FILE=c:\icemcfd\5.1-win\lic\license.dat
rem set ANSYSLMD_LICENSE_FILE=c:\icemcfd\5.1-win\lic\license.dat
rem if "%ICEM_ACN%"=="" set ICEM_ACN=%~dp0..
set sub=\bin\
set full=%~dp0
call set work=%%full:%sub%=%%
set ICEM_ACN=%work%

set aie_mode=1
rem No default - determine during initialization
rem if "%AI_ENV_PRODUCT%" == "" set AI_ENV_PRODUCT=fsi
rem Need to allow user to hard set AI_ENV_PRODUCT for PRO/E External
rem Analysis to work properly.

rem Since bat files set the variables in the calling msdos prompt window if you
rem run icemcfd -ai and then icemcfd -4 you will not get the -4 GUI.  So reset the
rem variables here to clean out old values.  -Wayne

set ICEM_AI_ENVIRONMENT=
set AI_ENV_CFD=
set AI_ENV_CFD_ONLY=
set AI_ENV_CFX=
set AI_NO_BLOCKING=
set AI_NO_POST=
set AI_ENV_CART3D=
set AI_ENV_LSTC=
set AI_ENV_ANSYS_SOLVERS=

if not exist "%ANSYS81_DIR%" set ANSYS81_DIR=%ICEM_ACN%\bin
if not exist "%ANSYS90_DIR%" set ANSYS90_DIR=%ICEM_ACN%\bin
if not exist "%ANSYS100_DIR%" set ANSYS100_DIR=%ICEM_ACN%\bin
if not exist "%ANSYS110_DIR%" set ANSYS110_DIR=%ICEM_ACN%\bin
if not exist "%ANSYS120_DIR%" set ANSYS120_DIR=%ICEM_ACN%\bin
if not exist "%ANSYS121_DIR%" set ANSYS121_DIR=%ICEM_ACN%\bin
if not exist "%ANSYS130_DIR%" set ANSYS130_DIR=%ICEM_ACN%\bin

set PRINT_MESSAGE=
if "%ANS_FLEXLM_DEBUG%"=="1" set PRINT_MESSAGE=1
if "%ANS_FLEXLM_DEBUG%"=="2" set PRINT_MESSAGE=1

set VAR1=
set FLAVOR=
set AI_ENV_TEST_LICENSING=

set VAR1=%~1
if "%PRINT_MESSAGE%"=="1" echo VAR1 is %VAR1%

if "%VAR1%" == "-4" goto top
rem if "%VAR1%" == "-batch" goto top
rem if "%VAR1%" == "-script" goto top
rem if "%VAR1%" == "-app" goto top
if "%VAR1%" == "-ai" goto top
if "%VAR1%" == "-cfd" goto top
if "%VAR1%" == "-cfx" goto top
if "%VAR1%" == "-ansys" goto top
if "%VAR1%" == "-fsi" goto top
if "%VAR1%" == "-lstc" goto top
if "%VAR1%" == "-autohex" goto top
if "%VAR1%" == "-batchsurf" goto top

rem move call for test_licensing to initialization stage
set AI_ENV_TEST_LICENSING=1

:top
if "%~1"=="" goto bot

if "%~1"=="-4" (
    set aie_mode=0
    set AI_ENV_PRODUCT=cfd
    shift
    goto top
)
rem if "%~1"=="-app" (
rem     set AI_ENV_PRODUCT=%~2
rem     shift
rem     shift
rem     goto top
rem )
if "%~1"=="-cfd" (
    set FLAVOR=-cfd
    if "%~2"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~3"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~4"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~2"=="-no_post" set AI_NO_POST=1
    if "%~3"=="-no_post" set AI_NO_POST=1
    if "%~4"=="-no_post" set AI_NO_POST=1
    if "%~2"=="-cart3d" set AI_ENV_CART3D=1
    if "%~3"=="-cart3d" set AI_ENV_CART3D=1
    if "%~4"=="-cart3d" set AI_ENV_CART3D=1
    set AI_ENV_PRODUCT=cfd
    shift
    goto top
)
if "%~1"=="-cfx" (
    set FLAVOR=-cfx
    if "%~2"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~3"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~2"=="-no_post" set AI_NO_POST=1
    if "%~3"=="-no_post" set AI_NO_POST=1
    set AI_ENV_PRODUCT=cfx
    shift
    goto top
)
if "%~1"=="-ansys" (
    set FLAVOR=-ansys
    if "%~2"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~3"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~2"=="-no_post" set AI_NO_POST=1
    if "%~3"=="-no_post" set AI_NO_POST=1
    set AI_ENV_PRODUCT=cfx
    shift
    goto top
)
if "%~1"=="-ai" (
    set FLAVOR=-ai
    if "%~2"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~3"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~2"=="-no_post" set AI_NO_POST=1
    if "%~3"=="-no_post" set AI_NO_POST=1
    set AI_ENV_PRODUCT=fea2.0
    shift
    goto top
)
if "%~1"=="-fsi" (
    set FLAVOR=-fsi
    if "%~2"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~3"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~4"=="-no_hexa" set AI_NO_BLOCKING=1
    if "%~2"=="-no_post" set AI_NO_POST=1
    if "%~3"=="-no_post" set AI_NO_POST=1
    if "%~4"=="-no_post" set AI_NO_POST=1
    if "%~2"=="-cart3d" set AI_ENV_CART3D=1
    if "%~3"=="-cart3d" set AI_ENV_CART3D=1
    if "%~4"=="-cart3d" set AI_ENV_CART3D=1
    set AI_ENV_PRODUCT=fsi
    shift
    goto top
)
if "%~1"=="-lstc" (
    set FLAVOR=-lstc
    if "%~2"=="-no_post" set AI_NO_POST=1
    if "%~3"=="-no_post" set AI_NO_POST=1
    set AI_ENV_PRODUCT=lstc
    shift
    goto top
)

if "%~1" == "-autohex" goto AUTOHEXA

if "%~1" == "-batchsurf" goto BATCHSURF

if "%~1" == "-h" goto UsageCFD
if "%~1" == "-help" goto UsageCFD
if "%~1" == "/?" goto UsageCFD

:bot

if "%PRINT_MESSAGE%"=="1" echo FLAVOR is %FLAVOR%

if "%~1"=="-no_hexa" set AI_NO_BLOCKING=1
if "%~2"=="-no_hexa" set AI_NO_BLOCKING=1
if "%~3"=="-no_hexa" set AI_NO_BLOCKING=1
if "%~1"=="-no_post" set AI_NO_POST=1
if "%~2"=="-no_post" set AI_NO_POST=1
if "%~3"=="-no_post" set AI_NO_POST=1
if "%~1"=="-cart3d" set AI_ENV_CART3D=1
if "%~2"=="-cart3d" set AI_ENV_CART3D=1
if "%~3"=="-cart3d" set AI_ENV_CART3D=1

if "%FLAVOR%"=="-cfd" (
    set AI_ENV_PRODUCT=cfd
    goto bot1
)
if "%FLAVOR%"=="-cfx" (
    set AI_NO_POST=1
    set AI_ENV_ANSYS_SOLVERS=1
    set AI_ENV_PRODUCT=cfx
    goto bot1
)
if "%FLAVOR%"=="-ansys" (
    set AI_NO_POST=1
    set AI_ENV_ANSYS_SOLVERS=1
    set AI_ENV_PRODUCT=ansys
    goto bot1
)
if "%FLAVOR%"=="-ai" (
    set AI_ENV_PRODUCT=fea2.0
    goto bot1
)
if "%FLAVOR%"=="-fsi" (
    set AI_ENV_PRODUCT=fsi
    goto bot1
)
if "%FLAVOR%"=="-lstc" (
    set AI_ENV_PRODUCT=lstc
    goto bot1
)

:bot1

if "%AI_NO_BLOCKING%"=="0" set AI_NO_BLOCKING=
if "%AI_NO_POST%"=="0" set AI_NO_POST=
if "%AI_ENV_CART3D%"=="0" set AI_ENV_CART3D=

if "%PRINT_MESSAGE%"=="1" echo AI_NO_BLOCKING is %AI_NO_BLOCKING%
if "%PRINT_MESSAGE%"=="1" echo AI_NO_POST is %AI_NO_POST%
if "%PRINT_MESSAGE%"=="1" echo AI_ENV_CART3D is %AI_ENV_CART3D%

if "%aie_mode%"=="1" (
    set ICEM_AI_ENVIRONMENT=1
    if "%AI_ENV_PRODUCT%"=="fea2.0" (
        set AI_ENV_ANSYS=1
        set AI_ENV_LSDYNA=1
        set AI_ENV_ABAQUS=1
        set AI_ENV_AUTODYN=1
    )
    if "%AI_ENV_PRODUCT%"=="cfd" (
        set AI_ENV_CFD=1
        set AI_ENV_CFD_ONLY=1
    )
    if "%AI_ENV_PRODUCT%"=="cfx" (
        set AI_ENV_CFD=1
        set AI_ENV_CFD_ONLY=1
        set AI_ENV_CFX=1
        set AI_ENV_PRODUCT=cfd
    )
    if "%AI_ENV_PRODUCT%"=="ansys" (
        set AI_ENV_CFD=1
        set AI_ENV_PRODUCT=fea2.0
        set AI_ENV_ANSYS=1
        set AI_ENV_LSDYNA=1
        set AI_ENV_AUTODYN=1
    )
    if "%AI_ENV_PRODUCT%"=="fsi" (
        set AI_ENV_CFD=1
        set AI_ENV_PRODUCT=fea2.0
        set AI_ENV_ANSYS=1
        set AI_ENV_LSDYNA=1
        set AI_ENV_ABAQUS=1
        set AI_ENV_AUTODYN=1
    )
    if "%AI_ENV_PRODUCT%"=="commonstruct" (
        set AI_ENV_ANSYS=1
        set AI_ENV_LSDYNA=1
        set AI_ENV_ABAQUS=1
        set AI_ENV_AUTODYN=1
    )  
    if "%AI_ENV_PRODUCT%"=="lstc" (
        set AI_ENV_CFD=1
        set AI_ENV_CFD_ONLY=1
        set AI_ENV_LSTC=1
        set AI_ENV_PRODUCT=cfd
    )
)

if "%PRINT_MESSAGE%"=="1" echo AI_ENV_PRODUCT is %AI_ENV_PRODUCT%

if not exist Uninst.isu goto StartCFD
if exist icemcfd.bat goto WrongDir

:StartCFD
if not exist "%ICEM_ACN%\bin\med.exe" goto NoInstall

if "%PROCESSOR_ARCHITECTURE%"=="x86" (
    set AWP_FRAMEWORK_PLATFORM=Win32
) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    set AWP_FRAMEWORK_PLATFORM=Win64
) else (
    echo.Error: Environment variable PROCESSOR_ARCHITECTURE should contain
    echo.either x86 or AMD64
    Pause
    exit /b 1
)

set KEEP_PATH=%PATH%
set PATH=%ICEM_ACN%\bin;%ICEM_ACN%\lib;%PATH%;%ICEM_ACN%\toolswin32
if exist "%AWP_ROOT130%\AISOL\Bin\%ANSYS_SYSDIR%" set PATH=%PATH%;%AWP_ROOT130%\AISOL\Bin\%ANSYS_SYSDIR%
if exist "%AWP_ROOT130%\Framework\Bin\%AWP_FRAMEWORK_PLATFORM%" set PATH=%PATH%;%AWP_ROOT130%\Framework\Bin\%AWP_FRAMEWORK_PLATFORM%

if "%~1" == "-batch" goto StartBatch

rem med.exe %* | "%ICEM_ACN%\toolswin32\cat.exe"
start /wait med.exe %*
goto StartFinish

:AUTOHEXA
set AUTOHEX_ROOT=%ICEM_ACN%
if not exist "%AUTOHEX_ROOT%\bin\autohex.exe" goto NoInstall
set KEEP_PATH=%PATH%
set PATH=%ICEM_ACN%\bin;%ICEM_ACN%\lib;%PATH%;%ICEM_ACN%\toolswin32
"%AUTOHEX_ROOT%\bin\autohex.exe"
goto StartFinish

:BATCHSURF
set ICEM_AI_ENVIRONMENT=1
set AI_ENV_ANSYS=1
set AI_ENV_LSDYNA=1
set AI_ENV_ABAQUS=1
set AI_ENV_AUTODYN=1
set AI_ENV_PRODUCT=fea2.0
set ICEM_SCRIB=%ICEM_ACN%\lib\scrib
set TCL_LIBRARY=%ICEM_ACN%\lib\tcl8.3.3
set TK_LIBRARY=%ICEM_ACN%\lib\tk8.3.3
if not exist "%ICEM_ACN%\bin\wish.exe" goto NoInstall
set KEEP_PATH=%PATH%
set PATH=%ICEM_ACN%\bin;%ICEM_ACN%\lib;%PATH%;%ICEM_ACN%\toolswin32
"%ICEM_ACN%\bin\wish.exe" "%ICEM_SCRIB%\app\main.tcl" app_bsm_generic"
goto StartFinish

:StartBatch
start /b /wait med_batch.exe %*

:StartFinish
set PATH=%KEEP_PATH%
goto ExitCFD

:WrongDir
echo Can't run ICEM CFD in the Installation Directory!
pause
goto ExitCFD

:NoInstall
echo Can't find the Installation Directory!
pause
goto ExitCFD

:UsageCFD
echo Usage: icemcfd.bat [-script ScriptName] [-4] [-app APP] [-cfd] [-batch] [projectfile]
pause

:ExitCFD


按教程安装,未装mpi,求解???
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 yzhy@163.com 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[精细化工] 试剂价格 +7 旭必上岸 2024-06-17 10/500 2024-06-20 23:35 by 相与处于陆的鱼
[基金申请] 江苏省333人才工程 出校后被刷的概率大不大? +4 maxbirdzhang 2024-06-19 4/200 2024-06-20 22:38 by sunss
[找工作] 初始合伙人来啦!(生物试剂耗材标准品) +16 欢快的小科研人 2024-06-15 27/1350 2024-06-20 22:19 by zzw1992127
[找工作] 药学硕士找不到工作,打算去做科研助理了 +11 pom戴墨镜 2024-06-14 24/1200 2024-06-20 21:59 by 海阔天空4924
[论文投稿] 第一篇论文投稿进程记录 +4 慎独的小花卷 2024-06-20 9/450 2024-06-20 20:37 by 慎独的小花卷
[有机交流] 求助 10+5 脂质纳米粒 2024-06-20 6/300 2024-06-20 17:16 by czyzsu
[基金申请] 面青地会评时间??? +7 Axvdvbfs 2024-06-19 8/400 2024-06-20 11:16 by 路遥还有谁
[基金申请] 太卷了 +14 laoyuefubio 2024-06-17 27/1350 2024-06-20 09:52 by htjwqy
[基金申请] 希望今年自己国自然面上项目和老婆青年项目能中! +10 恐龙爸爸 2024-06-14 10/500 2024-06-20 08:42 by jsguo4127
[论文投稿] 审稿 +5 香瓜木香 2024-06-19 6/300 2024-06-19 17:44 by xli1984
[公派出国] 去英国的小伙伴儿都在哪儿租的房子呀? +7 65syn 2024-06-14 11/550 2024-06-19 10:19 by 65syn
[公派出国] CSC德国博后每个月资助多少呀?够用吗 +4 326lhpqk 2024-06-16 7/350 2024-06-19 02:03 by PLHOU
[教师之家] 请问事业编制和年薪制冲突吗? +12 ZHONGWU_U 2024-06-14 12/600 2024-06-18 19:31 by fangyl2005
[考博] 2025考博 +8 自强不息a?a 2024-06-15 13/650 2024-06-18 18:12 by 投必得科研顾问
[高分子] 寻找聚酯反应釜 +3 茕茕恭煮 2024-06-15 6/300 2024-06-18 14:15 by 茕茕恭煮
[论文投稿] 投稿求助 10+3 2022_灵魂工程师 2024-06-16 8/400 2024-06-18 12:12 by 投必得科研顾问
[高分子] 烧瓶内合成聚酯 +3 大帝国乐 2024-06-17 7/350 2024-06-18 11:10 by 大帝国乐
[硕博家园] 博士毕业高校和就业的相关问题 +7 SCITOPPP 2024-06-14 11/550 2024-06-18 07:51 by yinxing1995
[论文投稿] 论文已接收,但发现修改稿传的是旧版该怎么办? +3 zsq54321 2024-06-15 6/300 2024-06-17 19:45 by wjykycg
[论文投稿] 投稿被一个审稿人恶意评审了怎么样? +5 1chen 2024-06-14 7/350 2024-06-15 23:15 by xy66xy
信息提示
请填处理意见