欢迎来到天天文库
浏览记录
ID:8804964
大小:45.58 KB
页数:14页
时间:2018-04-08
《lammps安装和使用经验》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Lammps/LIGGGHTS安装即使用步骤:1.按照安装UbuntuLINUX系统、OpenFOAM程序、CFDEM程序(默认安装了LAMMPS及LIGGGHTS包)。2.Make(编译可执行程序),见.在~LIGGGHTS-PUBLIC/src目录下,键入“make package fedora_fpic -j 32“,会编译生成一个lmp_fedora_fpic可执行程序。将编译好的可执行程序复制到系统默认程序安装目录,便于使用 “sudo cp lmp_fedora_fpic
2、 /usr/local/bin/liggghts”;或者每次将可执行文件拷贝到存放in.filename的目录下。3.运行lammps。参考后半部讨论记录,在in.filename所在的目录下,键入命令“./lmp_fedora_fpic3、件。4.安装和运行lpp(python程序下的一个将dump***.filename文件转换成VTK格式的文件,该类型文件可供Paraview后处理程序使用)。参照,按照下面提示安装和使用lpp。在post目录下运行“lppdump***.filename”,会在同一目录下生成dump***.vtk格式的文件,转换成功。InstallLPPforpostprocessingsudoapt-getinstallpython-numpysudogitclone https://github.com/CF4、DEMproject/LPP.git $HOME/LPPgedit~/.bashrcaddatthebottom aliaslpp="python$HOME/LPP/src/lpp.py"·##CheckingthelppinstallationOpennewterminalcd/home/"user"/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear/postlppdump*.chute.vtkfileswillbecreatedinthe5、postfolderwhichcanbeusedlaterforvisualizationofsimulationinparaview.-------------------5.使用paraview程序进行后处理。新打开一个linux的terminal,键入“paraview”,打开一个paraview视窗,然后打开filename***.vtk文件,再点击视窗左下方的”apply”按钮,即打开了生成文件,进行后处理操作。http://www.cfdem.com/downloadDearall,IN6、STALLOpenFOAM(R)-2.1.x ForthosewhowanttosetupCFDEMprojectfromfromscratch,Iwouldrecommendtouse Ubuntu.TheninstallOpenFOAM(R)-2.1.xfollowingthis procedure .INSTALLCFDEMprojectOnceOpenFOAM(R)-2.1.xissetupcorrectlyandallenvironmentvariablesarecorrect,youcaneasilyi7、nstallCFDEMcouplingandLIGGGHTSfollowingthisrecipe githubAccess_public.pdf below.Thedownloadsectionisonthebottomofthepage.Youhavetologininordertohaveaccesstothedownloadsection!Ifyoudonothaveanaccountyet,pleaseregisterforfree.#-incasethatquestionsarisepleasecont8、acttheforum:ForumonCFD-DEMLEGALNOTEThisofferingisnotapprovedorendorsedbyOpenCFDLimited,theproduceroftheOpenFOAMsoftwareandowneroftheOPENFOAM®andOpenCFD®trademarks.OPENFOAM®isaregis
3、件。4.安装和运行lpp(python程序下的一个将dump***.filename文件转换成VTK格式的文件,该类型文件可供Paraview后处理程序使用)。参照,按照下面提示安装和使用lpp。在post目录下运行“lppdump***.filename”,会在同一目录下生成dump***.vtk格式的文件,转换成功。InstallLPPforpostprocessingsudoapt-getinstallpython-numpysudogitclone https://github.com/CF
4、DEMproject/LPP.git $HOME/LPPgedit~/.bashrcaddatthebottom aliaslpp="python$HOME/LPP/src/lpp.py"·##CheckingthelppinstallationOpennewterminalcd/home/"user"/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear/postlppdump*.chute.vtkfileswillbecreatedinthe
5、postfolderwhichcanbeusedlaterforvisualizationofsimulationinparaview.-------------------5.使用paraview程序进行后处理。新打开一个linux的terminal,键入“paraview”,打开一个paraview视窗,然后打开filename***.vtk文件,再点击视窗左下方的”apply”按钮,即打开了生成文件,进行后处理操作。http://www.cfdem.com/downloadDearall,IN
6、STALLOpenFOAM(R)-2.1.x ForthosewhowanttosetupCFDEMprojectfromfromscratch,Iwouldrecommendtouse Ubuntu.TheninstallOpenFOAM(R)-2.1.xfollowingthis procedure .INSTALLCFDEMprojectOnceOpenFOAM(R)-2.1.xissetupcorrectlyandallenvironmentvariablesarecorrect,youcaneasilyi
7、nstallCFDEMcouplingandLIGGGHTSfollowingthisrecipe githubAccess_public.pdf below.Thedownloadsectionisonthebottomofthepage.Youhavetologininordertohaveaccesstothedownloadsection!Ifyoudonothaveanaccountyet,pleaseregisterforfree.#-incasethatquestionsarisepleasecont
8、acttheforum:ForumonCFD-DEMLEGALNOTEThisofferingisnotapprovedorendorsedbyOpenCFDLimited,theproduceroftheOpenFOAMsoftwareandowneroftheOPENFOAM®andOpenCFD®trademarks.OPENFOAM®isaregis
此文档下载收益归作者所有