Ubuntu下安裝ANSYS19.2

1 下載安裝文件

將安裝源文件放在任意一個自己喜歡的目錄下,右擊Ansys.19.2.DVD.Linux64.iso,選擇open with/Disk Image Mounter,用磁盤映像打開,其會自動掛載到/media/fivresearch/MATHWORKS_R2018A目錄下(其中,fivresearch為我的用戶名)。

Ubuntu下安裝ANSYS19.2的圖1

2 啟動安裝

打開終端,啟動安裝程序。

sudo /media/fivresearch/ANSYS.192.LINUX64/INSTALL

Ubuntu下安裝ANSYS19.2的圖2

Ubuntu下安裝ANSYS19.2的圖3

在彈出的頁面中,選擇安裝文件目錄,這里將安裝目錄放置在/usr/local/ansys_inc。

Ubuntu下安裝ANSYS19.2的圖4

之后選擇需要的安裝包,點next,在出現(xiàn)的Hostname中填自己的主機名(主機名用hostname就可查到)。

Ubuntu下安裝ANSYS19.2的圖5

Ubuntu下安裝ANSYS19.2的圖6

Ubuntu下安裝ANSYS19.2的圖7

3 破解

破解需要將SSQ的破解文件拷貝到相應(yīng)目錄,因此首先需要shared_files文件夾具有讀寫以及可訪問權(quán)限,然后將破解文件直接拷過去,也可采用cp命令拷過去。

Ubuntu下安裝ANSYS19.2的圖8

Ubuntu下安裝ANSYS19.2的圖9

4 創(chuàng)建快捷方式

創(chuàng)建workbench和fluent的快捷方式,放到桌面以方便使用。

4.1 workbench的快捷方式

  • 先將目錄定位到/usr/share/applications文件夾,然后輸入:

/usr/share/applications$sudo gedit workbench.desktop

  • 在打開的窗口中,輸入:

[Desktop Entry]

Name=workbench

Comment= run workbench

Exec=/usr/local/ansys_inc/v192/Framework/bin/Linux64/runwb2

Icon=/usr/local/ansys_inc/v192/commonfiles/images/RunWB2_iconSet.ico

Terminal=false

Type=Application

  • 修改文件權(quán)限為可執(zhí)行

sudo chmod +xworkbench.desktop

  • 將applications中的workbench圖標拷貝到桌面,雙擊即可啟動:

Ubuntu下安裝ANSYS19.2的圖10

Ubuntu下安裝ANSYS19.2的圖11

4.2 fluent快捷方式

  • 先將目錄定位到/usr/share/applications文件夾,然后:

/usr/share/applications$sudo gedit fluent.desktop

  • 在打開的窗口中,輸入:

[Desktop Entry]

Type=Application

Name=Fluent

GenericName=Fluent192

Comment=Fluent: TheSoftware of CFD Computing

Exec=/usr/local/ansys_inc/v192/fluent/bin/fluent  //fluent可執(zhí)行程序啟動目錄

Icon=/usr/local/ansys_inc/v192/fluent/bin/fluent_ico.png  //fluent圖標存放目錄

Terminal=false

  • 將applications中的fluent圖標拷貝到桌面,雙擊即可啟動

5 出現(xiàn)問題

5.1 fluent出錯之一

(1)  安裝后,運行fluent:fivresearch@fivresearch-HP-Z400-Workstation:~$ sudo/usr/local/ansys_inc/v192/fluent/bin/fluent

(2)  出現(xiàn)如下錯誤:

/usr/local/ansys_inc/v192/fluent/bin/fluent:69: /usr/local/ansys_inc/v192/fluent/bin/fluent: [[: not found

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent-r19.2.0

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent:112: /usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent: [[: not found

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent:994: /usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent: [[: not found

/usr/local/ansys_inc/v192/fluent/bin/fluent:69: /usr/local/ansys_inc/v192/fluent/bin/fluent: [[: not found

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent-r19.2.0 2ddp -nm -cc -ssh

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent:112: /usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent: [[: not found

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent:994: /usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent: [[: not found

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/multiport/mpi_wrapper/bin/mpicheck.fl:113: [: default: unexpected operator

/usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent:1106: /usr/local/ansys_inc/v192/fluent/fluent19.2.0/bin/fluent: Badsubstitution

(3)  解決方法

在CFD online上搜到一個解決方法,其給出的出錯原因和解決辦法如下:

原因:The problem is /bin/sh, the default command interpreter for shellscripts. In RHEL/CentOS distribution /bin/sh is linked to /bin/bash, while indebian based linux distributions /bin/sh points to /bin/dash.

解決方法:You can set /bin/bash as default shell scripts interpreter withconsole command:

  • sudo dpkg-reconfiguredash

  • 在出現(xiàn)的對話框中選NO

5.2 workbench中調(diào)用fluent出錯

雖然這樣安裝以后,workbench和fluent都可以單獨打開,但是在workbench中調(diào)用fluent時,顯示沒有l(wèi)icense,不工作,至今我也沒有找到解決辦法,希望哪位高手可以指點。

登錄后免費查看全文
立即登錄
App下載
技術(shù)鄰APP
工程師必備
  • 項目客服
  • 培訓(xùn)客服
  • 平臺客服

TOP

5
4
1