将安装源文件放在任意一个自己喜欢的目录下,右击Ansys.19.2.DVD.Linux64.iso,选择open with/Disk Image Mounter,用磁盘映像打开,其会自动挂载到/media/fivresearch/MATHWORKS_R2018A目录下(其中,fivresearch为我的用户名)。
打开终端,启动安装程序。
sudo /media/fivresearch/ANSYS.192.LINUX64/INSTALL
在弹出的页面中,选择安装文件目录,这里将安装目录放置在/usr/local/ansys_inc。
之后选择需要的安装包,点next,在出现的Hostname中填自己的主机名(主机名用hostname就可查到)。
3 破解
破解需要将SSQ的破解文件拷贝到相应目录,因此首先需要shared_files文件夹具有读写以及可访问权限,然后将破解文件直接拷过去,也可采用cp命令拷过去。
4 创建快捷方式
创建workbench和fluent的快捷方式,放到桌面以方便使用。
/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
sudo chmod +xworkbench.desktop
4.2 fluent快捷方式
/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可执行程序启动目录
Icon=/usr/local/ansys_inc/v192/fluent/bin/fluent_ico.png //fluent图标存放目录
Terminal=false
1) 安装后,运行fluent:fivresearch@fivresearch-HP-Z400-Workstation:~$ sudo/usr/local/ansys_inc/v192/fluent/bin/fluent
2) 出现如下错误:
/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:
虽然这样安装以后,workbench和fluent都可以单独打开,但是在workbench中调用fluent时,显示没有license,不工作,至今我也没有找到解决办法,希望哪位高手可以指点。
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删