Lammps/LIGGGHTS安装即使用步骤:
1.按照<Info. 1 >安装 Ubuntu LINUX 系统、OpenFOAM程序、CFDEM程序(默认安装了LAMMPS及
LIGGGHTS包)。
2.Make (编译可执行程序),见<Info.2>. 在~LIGGGHTS-PUBLIC/src目录下,键入
“make package fedora_fpic-j32“,会编译生成一个 lmp_fedora_fpic可执行程序。将编译好的可执行程序复制到系统默认程序安装目录,便于使用“sudo cp lmp_fedora_fpic/usr/local/bin/liggghts”;
或者每次将可执行文件拷贝到存放in.filename的目录下。
3.运行lammps。参考<Info.2>后半部讨论记录,在in.filename所在的目录下,键入命令
“./lmp_fedora_fpic<in.filename”(“mpirun –np 4 ./lmp_fedora_fpic <in.filename“进行多核并行运算)或“liggghts <in.filename”也可以。运行结束,会在同一个目录下的post文件夹中生成多个
dump**.filename文件。
4.安装和运行lpp (python程序下的一个将dump***.filename文件转换成VTK格式的文件,该类型文
件可供Paraview后处理程序使用)。参照 <Info.3>,按照下面提示安装和使用lpp。在post目录下运行“lpp dump***.filename”, 会在同一目录下生成dump***.vtk格式的文件,转换成功。
Install LPP for postprocessing
sudo apt-get install python-numpy
sudo git clone github/CFDEMproject/LPP.git $HOME/LPP
gedit ~/.bashrc
add at the bottom alias lpp="python $HOME/LPP/src/lpp.py"
##Checking the lpp installation
Open new terminal
cd /home/"user"/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear/post
lpp dump*.chute
.
vtk files will be created in the post folder which can be used later for visualization of simulation in paraview.
-------------------
5.使用paraview程序进行后处理。新打开一个linux 的terminal,键入“paraview”,打开一个paraview视
窗,然后打开filename***.vtk文件,再点击视窗左下方的”apply”按钮,即打开了生成文件,进行后处理操作。
<Info. 1>
www.cfdem/download
Dear all,
INSTALL OpenFOAM(R)-2.1.x
For those who want to set up CFDEMproject from from scratch, I would recommend to use Ubuntu. Then install OpenFOAM(R)-2.1.x following this procedure .
INSTALL CFDEMproject
Once OpenFOAM(R)-2.1.x is set up correctly and all environment variables are correct, you can easily install CFDEMcoupling and LIGGGHTS following this recipe githubAccess_public.pdf below.
The download section is on the bottom of the page. You have to login in order to have access to the download section! If you do not have an account yet, please register for free.
#- in case that questions arise please contact the forum:
Forum on CFD-DEM
LEGAL NOTE
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks. OPENFOAM® is a registered trade mark of OpenCFD Limited, a wholly owned subsidiary of the ESI Group.
Ubuntu Linux operation system
www.ubuntu/download/desktop
OpenFOAM software download
Based on Ubuntu system pack installation:
/archive/2.2.2/download/ubuntu.php
papers published cited LAMMPS
v/papers.html
其他参考网站:
逸宇 12:47:45
cfdem.dcs-computing
逸宇 12:49:04
www.cfdem/liggghts-downloads
逸宇 12:49:26
github/CFDEMproject/LIGGGHTS-PUBLIC
---------------------------------
<Info.2>
逸宇StreamDEM(56960577)  16:28:00
3、进入src目录
cd liggghts_1p5/src
4、多核并行编译,加快编译速度
make package fedora_fpic -j 32
5、将编译好的可执行程序复制到系统默认程序安装目录,便于使用
sudo cp lmp_fedora_fpic /usr/local/bin/liggghts
这是我用的编译步骤
/
usr/local/bin一般都是系统默认路径
如果不是你可以增加到环境变量path中如何运行一个lmmps例子呢有inp文件逸宇StreamDEM(56960577)  16:43:02
liggghts < in.****
如果你按照我之前发的步骤做任意目录都可以直接运行
黑贝-Eric(51537310)  16:57:24
那么dump.***会在哪里生成?
已经按照你的步骤做了可未到dump.***文件
逸宇StreamDEM(56960577)  16:59:00
新建一个post目录
黑贝-Eric  17:18:15
我的可执行文件是lmp_fedora_fpic
你的呢
散漫守望  17:19:21
我的也是
lmp_serial也可以的
黑贝-Eric  17:20:36
你的例子是不是在example文件夹中?
散漫守望  18:00:32
我的例子是在example中
example下应该有LIGGGHTS吧
黑贝-Eric  18:02:54
有LIGGGHTS
然后你如何运行example中的例子?
散漫守望  18:03:39
恩呢,进入LIGGGHTS中
比如我们运行conveyor这个算例吧
黑贝-Eric  18:04:18
cd LIGGGHTS 就可以了?
散漫守望  18:04:23恩呢,是的
cmake如何使用散漫守望  18:04:34
cd LIGGGHTS
cd conveyor
然后你需要把你刚才生成好的那个lmp_fedora_fpic
黑贝-Eric  18:05:31
我的盘符是:
home/LIGGGHTS/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Totorials_public/conveyor
散漫守望  18:05:44
恩恩,我的也是
lmp_fedora_fpic这个复制到conveyor下
黑贝-Eric  18:06:19
哦好的我试试
散漫守望  18:06:57
用cp这个命令复制啊,用鼠标右键的那个复制或在ctrl+C有可能出问题。
然后再conveyor目录下执行:./lmp_fedora_fpic&veyor
黑贝-Eric  18:13:17
在conveyor目录下生成了很多文件,veyor等等哪个是我需要进行后处理的文件呢散漫守望  18:13:35
oK,第一步成功
就是会运行和执行了
第二步就是装paraview
对了,你试试veyor
散漫守望  18:34:59
paraview也要装啊
lpp是把veyor转化呈paraview 能够识别的文件。所以lpp只是一个引导或者说过程,paraview才是后处理
<Info.3>
LIGGGHTS INSTALLATION GUID E FOR UBUNTU 12.04 LTS AND 13.04
Submitted by rahulsoni on Mon, 09/09/2013 - 08:09
Note:
I am a newbie to LIGGGHTS. After wondering around, I successfully installed LI GGGHTS 3-4 times with the help of available posts in this
forum. However, I found some missing points in existing posts that may panic the new users. Therefore, I am bringing belo w a compiled form of tutorial that will help installing LIGGGHTS. The method has worked fine in both Ubuntu 12.04 LTS and 13.04. However, it is expected to work with other versions too.
Fairly the whole credit goes to the writers of previously existing posts especially Paul.
1.##Installing Libraries g++ and git-core
sudo apt-get install libvtk5-dev libeigen2-dev libopenmpi-dev g++ git-core
##Checking installations
which mpirun
/usr/bin/mpirun comes up?
which mpic++
/usr/bin/mpic++ comes up?
mpic++ -v
gcc-Version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) comes up at the last line?
##Installing cmake
sudo apt-get install cmake
2.## Installing OpenFOAM 2.2.0
sudo sh -c "echo deb /download/ubuntu quantal main > /etc/apt/sources.list.d/openfoam.list"
sudo apt-get update
sudo apt-get install openfoam220
gedit ~/.bashrc
- add at the bottom -> source /opt/openfoam220/etc/bashrc
- open new Terminal -> icoFoam -help
Some messages like belo w should appear:
Usage: icoFoam [OPTIONS]
options:
-case specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-parallel run in parallel
-
roots <(dir1 .. dirN)>
slave root directories for distributed running
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage
Using: OpenFOAM-2.2.0 (see )
Build: 2.2.0-5be49240882f
3.##Installing VTK
Download vtk-5.8. from /VTK/resources/software.html#previous2
Extract downloaded folder into home directory
cd /home/"user"/VTK
sudo cmake .
sudo make
sudo make install
The last instructions will install .h, .a and .cmake files under /usr/local, such as /usr/local/include/vtk-5.8 and /usr/local/lib/vtk-5.8. For convenience of upgrading, it would be usef ul to create symbolic links such as /usr/local/include/vtk and /usr/local/lib/vtk to these directories: cd /usr/local/include
sudo ln -s vtk-5.8 vtk
cd /usr/local/lib/
sudo ln -s vtk-5.8 vtk
After installing VTK, go to the directory where cmake is installed, e.g. /usr/share/cmake-2.8. Then, go to the subdirectory Module and open the ake and you will see the following lines:
# The following cache entries must be set by the user to locate VTK:
# VTK_DIR - The directory ake.

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。