24小时热门版块排行榜    

查看: 3107  |  回复: 0

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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +17 木水思豆 2026-08-25 20/1000 2026-08-26 01:26 by chengyan1220
[基金申请] 今天务委会开完了,明天出结果吗 +18 angus9576 2026-08-25 22/1100 2026-08-26 00:41 by merchancy
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 明天应该可查了!? +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[基金申请] 有没有大神帮我看看基金代码 28+4 1234567wang 2026-08-24 10/500 2026-08-25 19:15 by lfy8008
[基金申请] 放榜前的不淡定 20+4 snowwithsea 2026-08-19 19/950 2026-08-25 17:57 by chick875
[基金申请] 今日不放榜?网传国自然预计 8 月 27 日可查结果 +17 医学老男孩 2026-08-20 22/1100 2026-08-25 15:36 by 医学老男孩
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
[基金申请] 人气不行了 +11 fansofjerry 2026-08-21 11/550 2026-08-25 11:04 by 孤独的英雄6
[教师之家] 导师吐槽:我怎么摊上了这么个极品研究生! +3 苏东坡二世 2026-08-23 3/150 2026-08-25 10:35 by shisan1313
[基金申请] 我面上完蛋了 +13 且听虎啸 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[基金申请] 范进中举一文的中心思想 +7 炎黄贵胄 2026-08-22 8/400 2026-08-25 08:48 by ZJTJZ
[基金申请] 能否退出参与的面上项目解除限项 +21 koalala 2026-08-24 24/1200 2026-08-24 19:25 by 家与远方
[基金申请] filecode,4个jtjc了 +14 ziyangfang 2026-08-19 17/850 2026-08-24 18:37 by 哈哈蛤?
[基金申请] 建议基金发布提前给出明确的时间点 +13 kulium 2026-08-21 16/800 2026-08-24 16:27 by superceng
[基金申请] 让我中一个面上吧! +13 大萍1987 2026-08-20 16/800 2026-08-24 10:23 by 太傻了
[教师之家] 跳槽后在研项目怎么办? +5 简单化xn 2026-08-22 10/500 2026-08-23 12:38 by 简单化xn
[基金申请] 时间戳今天,20号变了 +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 今天放榜没戏了吧 +9 yuleib84 2026-08-19 11/550 2026-08-21 10:06 by gltch
信息提示
请填处理意见