1. CFD-DEM설치 이전에 필요한 설치환경이다.
- Ubuntu
- FFMPEG
sudo apt-get install ffmpeg
- LIGGGHTS
- OpenFOAM
2. 환경설정
CFD-DEM의 환경설정에 앞서, ./bashrc를 통해 컴파일 환경을 설정하여야 한다.
https://www.cfdem.com/media/CFDEM/docu/CFDEMcoupling_Manual.html#additionalinstall
CFDEM®coupling Documentation — CFDEMcoupling v3.X documentation
Contents The CFDEM®coupling documentation is organized into the following sections. If you find any errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so the CFDEM®coupling documen
www.cfdem.com
이중 흔히 제기되는 문제가 bash에서 cfdemSysTest 명령어가 안먹는다는 애로사항이 Forum에 꽃 피고 있다. 아래와 같이.
$ cfdemSysTest
cfdemSysTest: command not found
원인은 bashrc가 제대로 세팅이 안되서 그렇다.
위의 링크에서는 아래의 스크립트를 $HOME/.bashrc에 추가하라고 한다.
#================================================#
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_bashrc=$CFDEM_PROJECT_DIR/src/lagrangian/cfdemParticle/etc/bashrc
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
export CFDEM_LIGGGHTS_MAKEFILE_NAME=auto
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/lpp/src
. $CFDEM_bashrc
#================================================#
그런데, 영어 설명이 모호하다.
You need to set some environment variables in ~/.bashrc (if you use c-shell, manipulate ~/.cshrc accordingly). Open your .bashrc and the CFDEM®coupling bashrc file.
gedit ~/.bashrc $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc
Add the STANDARD block to the end of your bashrc and modify entries if necessary. Make sure the statements are not comments; remove the “#”. Similar to:
문제의 원인은 간단하다. bashrc 파일은 $HOME에도 있고 $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc 여기에도 있다.
위의 추가되는 스크립트는 $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc 를 열어보면 주석 "#"로 막혀있다. 여기의 주석을 열라는 것이 아니라 여기의 스크립트를 복사해서 $HOME 밑에 있는 bashrc에 붙여 넣으며 주석"#"을 지우라는 이야기다. 그러면, 마지막 스크립트
. $CFDEM_bashrc
이거슨 $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc 이걸 찍어서 실행시키는 것이다.
최종적으로 아래와 같이 $HOME/.bashrc 를 다시 실행시키면 경로를 쭈욱 재설정한 후 $HOME/CFDEM/CFDEMcoupling-PUBLIC-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc 이걸 찍어서 실행 시켜서 컴파일 환경을 세팅하겠다는 거다.
source ~/.bashrc
성공하면 아래와 같은 결과를 얻을 것이다.
$ source ~/.bashrc
************************************
using default CFDEM_SRC_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src
using default CFDEM_SOLVER_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/solvers
using default CFDEM_DOC_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/doc
using default CFDEM_UT_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/utilities
using default CFDEM_TUT_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials
using default CFDEM_LAMMPS_LIB_DIR = /home/hp-z8/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib
!!! WARNING CFDEM_LAMMPS_LIB_DIR = /home/hp-z8/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib seems to be wrong !!!
using default CFDEM_LIGGGHTS_LIB_PATH = /home/hp-z8/LIGGGHTS/LIGGGHTS-PUBLIC/src
using default CFDEM_ADD_LIBS_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/addLibs_universal
using default CFDEM_ADD_LIBS_NAME = additionalLibs_5.x
using default CFDEM_LIB_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib
using default CFDEM_USER_LIB_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib
using default CFDEM_APP_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin
using default CFDEM_USER_APP_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin
make new dirs /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x ? (y/n)
y
************************************
$ cfdemSysTest
*********************************************
* C F D E M (R) c o u p l i n g *
* *
* by DCS Computing GmbH *
* www.dcs-computing.com *
*********************************************
*********************************
CFDEM(R)coupling system settings:
*********************************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=5.x
compile option=Opt
check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials
valid:NO critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/hp-z8/LIGGGHTS/LIGGGHTS-PUBLIC/src does not exist
valid:NO critical:yes - $CFDEM_LIGGGHTS_LIB_PATH = /home/hp-z8/LIGGGHTS/LIGGGHTS-PUBLIC/src does not exist
valid:NO critical:yes - $CFDEM_LPP_DIR = /home/hp-z8/LIGGGHTS/lpp/src does not exist
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/addLibs_universal
valid:yes critical:yes - $CFDEM_LIB_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib
valid:yes critical:yes - $CFDEM_APP_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin
valid:yes critical:no - $CFDEM_USER_LIB_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib
valid:yes critical:no - $CFDEM_USER_APP_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/log/logFilesCFDEM-PUBLIC-5.x
valid:NO critical:no - $C3PO_SRC_DIR = does not exist
library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_auto
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-5.x
$LD_LIBRARY_PATH = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib:/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib:/home/hp-z8/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/gperftools-svn/lib:/home/hp-z8/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/home/hp-z8/OpenFOAM/ThirdParty-5.x/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/x86_64-linux-gnu/openmpi/lib:/home/hp-z8/OpenFOAM/hp-z8-5.x/platforms/linux64GccDPInt32Opt/lib:/home/hp-z8/OpenFOAM/site/5.x/platforms/linux64GccDPInt32Opt/lib:/home/hp-z8/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib:/home/hp-z8/OpenFOAM/ThirdParty-5.x/platforms/linux64GccDPInt32/lib:/home/hp-z8/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib/dummy
$WM_NCOMPPROCS = 5
$WM_LABEL_SIZE = 32
Additional lib settings
CFDEM_ADD_LIBS_DIR/CFDEM_ADD_LIBS_NAME = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/addLibs_universal/additionalLibs_5.x
CFDEM_ADD_LIB_PATHS =
CFDEM_ADD_LIBS =
LIGGGHTS library link (created during compilation of CFDEM)
ls: cannot access '/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp*': No such file or directory
*******************
g++:
/usr/bin/g++
g++ (Ubuntu 7.5.0-6ubuntu2) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc:
/usr/bin/gcc
gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mpic++:
/usr/bin/mpic++
g++ (Ubuntu 7.5.0-6ubuntu2) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mpirun:
/usr/bin/mpirun
mpirun (Open MPI) 4.1.2
Report bugs to http://www.open-mpi.org/community/help/
**********************
additional packages...
몇 가지 Path에 문제가 있어 보인다. 내일 문제를 찾아 보자.
아래 문제는 ./bashrc에서 PATH를 정확히 바꾸어 주면 된다.
!!! WARNING CFDEM_LAMMPS_LIB_DIR = /home/hp-z8/LIGGGHTS/LIGGGHTS-PUBLIC/src/../lib seems to be wrong !!!
그러면 위의 PATH문제는 사라지는데, valid NO 인 것들을 살펴보면, LPP, C3P0이다. 참고로 포럼에는 PIZZA까지 포함해서 없어도 컴파일에는 무방하다고 한다.
check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/hp-z8/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LIGGGHTS_LIB_PATH = /home/hp-z8/LIGGGHTS-PUBLIC/src
valid:NO critical:yes - $CFDEM_LPP_DIR = /home/hp-z8/LIGGGHTS/lpp/src does not exist
valid:yes critical:yes - $CFDEM_ADD_LIBS_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/addLibs_universal
valid:yes critical:yes - $CFDEM_LIB_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib
valid:yes critical:yes - $CFDEM_APP_DIR = /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin
valid:yes critical:no - $CFDEM_USER_LIB_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib
valid:yes critical:no - $CFDEM_USER_APP_DIR = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/hp-z8/CFDEM/hp-z8-PUBLIC-5.x/log/logFilesCFDEM-PUBLIC-5.x
valid:NO critical:no - $C3PO_SRC_DIR = does not exist
그 다음. 터미널을 닫은 다음 새로 열고 아래의 명령어를 치면 컴파일이 시작된다. 컴파일은 OpenFOAM에 비하면 빨리 끝난다. 내 경우 LIGGGHTS와 OpenFOAM이 미리 컴파일 되어 있어서 그럴 수도 있다고 본다. 터미널을 새로 열어야 하는 이유는 나도 모르겠다.
cfdemCompCFDEMall
waiting...
compilation done.
waiting...
테스트
$ cfdemTestTUT
This routine will execute the CFDEMcoupling tutorial cases specified in tutorial-list.txt
Are the variables CFDEM_TUT_DIR=/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials
and CFDEM_SRC_DIR=/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src correct? (y/n)
y
PATH확인하고 y 하면
Please provide the examples to be calculated in the /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/tutorial-list.txt file.
structure:
path to provide the path relative to CFDEM_TUT_DIR
example:
cfdemSolverPiso/settlingTestMPI/dir
change path
running testcase /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder
mesh needs to be built
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-538044ac05c4
Exec : blockMesh
Date : Aug 30 2023
Time : 14:54:36
Host : "HP-Z8"
PID : 17081
I/O : uncollated
Case : /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Creating block mesh from
"/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches
Reading patches section
Creating block mesh topology
Reading physicalType from existing boundary file
Default patch type set to empty
Check topology
Basic statistics
Number of internal faces : 8
Number of boundary faces : 14
Number of defined boundary faces : 14
Number of undefined boundary faces : 0
Checking patch -> block consistency
Creating block offsets
Creating merge list .
Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1
Block 0 cell size :
i : 0.001725 .. 0.001725
j : 0.001725 .. 0.001725
k : 0.00230417 .. 0.00230417
Block 1 cell size :
i : 0.001725 .. 0.001725
j : 0.00101048 .. 0.00101048
k : 0.00230417 .. 0.00230417
Block 2 cell size :
i : 0.00101048 .. 0.00101048
j : 0.00270527 .. 0.00270527
k : 0.00230417 .. 0.00230417
Block 3 cell size :
i : 0.00270527 .. 0.00270527
j : 0.00101048 .. 0.00101048
k : 0.00230417 .. 0.00230417
Block 4 cell size :
i : 0.00101048 .. 0.00101048
j : 0.001725 .. 0.001725
k : 0.00230417 .. 0.00230417
Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (-0.0138 -0.0138 0) (0.0138 0.0138 0.0553)
nPoints: 5225
nCells: 4608
nFaces: 14400
nInternalFaces: 13248
----------------
Patches
----------------
patch 0 (start: 13248 size: 192) name: inlet
patch 1 (start: 13440 size: 192) name: outlet
patch 2 (start: 13632 size: 768) name: wall
End
rm: cannot remove '/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/DEM/post/*': No such file or directory
rm: cannot remove '/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/log_run_liggghts_fillCylinder_DEM': No such file or directory
// run_liggghts_fillCylinder_DEM //
/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/DEM
LIGGGHTS (Version LIGGGHTS-PUBLIC 3.8.0, compiled 2023-08-30-14:39:06 by hp-z8, git commit bbd23c8521fe0a4f3f5bfd0d3dc9a7dddd68d90b)
atom_style granular
atom_modify map array
communicate single vel yes
boundary m m m
newton off
units si
region reg block -0.015 0.015 -0.015 0.015 -0.001 0.0554 units box
create_box 2 reg
Created orthogonal box = (-0.015 -0.015 -0.001) to (0.015 0.015 0.0554)
1 by 1 by 1 MPI processor grid
neighbor 0.001 bin
neigh_modify delay 0
#Material properties required for new pair styles
fix m1 all property/global youngsModulus peratomtype 5.e6 5.e6
fix m2 all property/global poissonsRatio peratomtype 0.45 0.45
fix m3 all property/global coefficientRestitution peratomtypepair 2 0.3 0.3 0.3 0.3
fix m4 all property/global coefficientFriction peratomtypepair 2 0.5 0.5 0.5 0.5
#pair style
pair_style gran model hertz tangential history
pair_coeff * *
#timestep, gravity
timestep 0.00001
fix gravi all gravity 9.81 vector 0.0 0.0 -1.0
#walls
fix zwalls1 all wall/gran model hertz tangential history primitive type 1 zplane 0.0
fix zwalls2 all wall/gran model hertz tangential history primitive type 1 zplane 0.0553
fix cylwalls all wall/gran model hertz tangential history primitive type 1 zcylinder 0.0138 0. 0.
#cfd coupling
#fix cfd all couple/cfd
#particle insertion
region bc cylinder z 0.0 0.0 0.012 0.02 0.03 units box
region bc2 cylinder z 0.0 0.0 0.012 0.01 0.02 units box
fix pts1 all particletemplate/sphere 49979687 atom_type 1 density constant 200 radius constant 0.001
fix pts2 all particletemplate/sphere 49979693 atom_type 2 density constant 200 radius constant 0.001
fix pdd1 all particledistribution/discrete 15485863 1 pts1 1.0
Fix particledistribution/discrete (id pdd1): distribution based on mass%:
pts1: d=2.000000e-03 (max. bounding sphere) mass%=100.000000%
Fix particledistribution/discrete (id pdd1): distribution based on number%:
pts1: d=2.000000e-03 (max. bounding sphere) number%=100.000000%
fix pdd2 all particledistribution/discrete 15485867 1 pts2 1.0
Fix particledistribution/discrete (id pdd2): distribution based on mass%:
pts2: d=2.000000e-03 (max. bounding sphere) mass%=100.000000%
Fix particledistribution/discrete (id pdd2): distribution based on number%:
pts2: d=2.000000e-03 (max. bounding sphere) number%=100.000000%
fix ins all insert/pack seed 32452843 distributiontemplate pdd1 vel constant 0. 0. -1. insert_every once overlapcheck yes all_in yes particles_in_region 1000 region bc
fix ins2 all insert/pack seed 32452867 distributiontemplate pdd2 vel constant 0. 0. -1. insert_every once overlapcheck yes all_in yes particles_in_region 1000 region bc2
#apply nve integration to all particles that are inserted as single particles
fix integr all nve/sphere
#screen output
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo 1000
thermo_modify lost ignore norm no
compute_modify thermo_temp dynamic yes
WARNING: Changing thermo_temp compute object. This object is deprecated and will be removed in the future. (../compute.cpp:161)
#insert the first particles so that dump is not empty
run 1
Setting up run at Wed Aug 30 14:54:37 2023
INFO: Resetting random generator for region bc
INFO: Particle insertion ins: inserting every 0 steps
INFO: Resetting random generator for region bc2
INFO: Particle insertion ins2: inserting every 0 steps
Memory usage per processor = 4.32251 Mbytes
Step Atoms KinEng 1 Volume
0 0 0 0 5.076e-05
insertion: proc 0 at 0 %
insertion: proc 0 at 10 %
insertion: proc 0 at 20 %
insertion: proc 0 at 30 %
INFO: Particle insertion ins: inserted 312 particle templates (mass 2.613805e-04) at step 1
- a total of 312 particle templates (mass 2.613805e-04) inserted so far.
WARNING: Particle insertion: Less insertions than requested (../fix_insert.cpp:814)
insertion: proc 0 at 0 %
insertion: proc 0 at 10 %
insertion: proc 0 at 20 %
insertion: proc 0 at 30 %
INFO: Particle insertion ins2: inserted 310 particle templates (mass 2.597050e-04) at step 1
- a total of 310 particle templates (mass 2.597050e-04) inserted so far.
WARNING: Particle insertion: Less insertions than requested (../fix_insert.cpp:814)
1 622 0.00026056831 0 5.076e-05
Loop time of 0.0316339 on 1 procs for 1 steps with 622 atoms, finish time Wed Aug 30 14:54:37 2023
Pair time (%) = 3.4726e-05 (0.109775)
Neigh time (%) = 0.000560479 (1.77177)
Comm time (%) = 4.47e-06 (0.0141304)
Outpt time (%) = 9.742e-06 (0.030796)
Other time (%) = 0.0310245 (98.0735)
Nlocal: 622 ave 622 max 622 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Nghost: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Neighs: 2205 ave 2205 max 2205 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Total # of neighbors = 2205
Ave neighs/atom = 3.54502
Neighbor list builds = 1
Dangerous builds = 0
dump dmp all custom/vtk 1000 post/liggghts_init*.vtk id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
run 3000 upto
Setting up run at Wed Aug 30 14:54:37 2023
Memory usage per processor = 7.99319 Mbytes
Step Atoms KinEng 1 Volume
1 622 0.00026056831 0 5.076e-05
1000 622 0.00028439741 1.3344982e-06 5.076e-05
2000 622 1.0367323e-05 5.4297602e-06 5.076e-05
3000 622 1.0863057e-06 1.0389306e-06 5.076e-05
Loop time of 0.236808 on 1 procs for 2999 steps with 622 atoms, finish time Wed Aug 30 14:54:37 2023
Pair time (%) = 0.149167 (62.9908)
Neigh time (%) = 0.0213708 (9.02451)
Comm time (%) = 0.000377405 (0.159372)
Outpt time (%) = 0.0144787 (6.11413)
Other time (%) = 0.0514138 (21.7112)
Nlocal: 622 ave 622 max 622 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Nghost: 0 ave 0 max 0 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Neighs: 3262 ave 3262 max 3262 min
Histogram: 1 0 0 0 0 0 0 0 0 0
Total # of neighbors = 3262
Ave neighs/atom = 5.24437
Neighbor list builds = 51
Dangerous builds = 0
#write_restart liggghts.restart
rm: cannot remove '/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/0.*': No such file or directory
rm: cannot remove '/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/log_run_cfdemPostproc_fillCylinder_CFD': No such file or directory
// run_cfdemPostproc_fillCylinder_CFD //
/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-538044ac05c4
Exec : cfdemPostproc
Date : Aug 30 2023
Time : 14:54:37
Host : "HP-Z8"
PID : 17114
I/O : uncollated
Case : /home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Reading field p
Reading physical velocity field U
Note: only if voidfraction at boundary is 1, U is superficial velocity!!!
Creating dummy density field rho
Reading voidfraction field voidfraction = (Vgas/Vparticle)
Reading particle velocity field Us
Reading/calculating face flux field phi
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes
Selecting locateModel standard
Selecting dataExchangeModel oneWayVTK
relativePath_"../DEM/post"
Selecting IOModel basicIO
--> FOAM Warning : IO model is in serial write mode, only data on proc 0 is written
Selecting probeModel off
Selecting voidFractionModel divided
Selecting averagingModel dense
Selecting clockModel off
start clock measurement at t >0.002
Selecting smoothingModel off
Selecting meshMotionModel noMeshMotion
CFDEMcoupling version: cfdem-3.8.1
, compatible to LIGGGHTS version: 3.8.0
, compatible to OF version and build: 5.x-commit-538044ac05c4672b37c7df607dca1116fa88df88
You are currently using:
OF version: 5.x
OF build: 5.x-538044ac05c4
CFDEM build: 3.8.0-4-g1b78322
cg is set to: 1
If BC are important, please provide volScalarFields -imp/expParticleForces-
ignoring ddt(voidfraction)
Selecting momCoupleModel off
Selecting forceModel noDrag
Selecting forceSubModel ImEx
reading switches:
looking for verbose ... not found in dict, using default. verbose = false
Starting time loop
--> FOAM Warning :
From function void Foam::timeControl::read(const Foam::dictionary&)
in file db/functionObjects/timeControl/timeControl.C at line 89
Reading "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/system/controlDict.functions.probes" from line 59 to line 77
Using deprecated 'outputControl'
Please use 'writeControl' with 'writeInterval'
Time = 0.001
debug: index is liggghts_init1000.vtk
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init1000.vtk"
debug: index is liggghts_init1000.vtk
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init1000.vtk"
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init1000.vtk"
createTimeDir(path_), path="./lagrangian"
lagPath_=createTimeDir(fileName(lagPath_/lagrangian)), lagPath="./lagrangian"
ExecutionTime = 0.22 s ClockTime = 0 s
Time = 0.002
debug: index is liggghts_init2000.vtk
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init2000.vtk"
debug: index is liggghts_init2000.vtk
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init2000.vtk"
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init2000.vtk"
createTimeDir(path_), path="./lagrangian"
lagPath_=createTimeDir(fileName(lagPath_/lagrangian)), lagPath="./lagrangian"
ExecutionTime = 0.38 s ClockTime = 1 s
Time = 0.003
debug: index is liggghts_init3000.vtk
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init3000.vtk"
debug: index is liggghts_init3000.vtk
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init3000.vtk"
opening file: "/home/hp-z8/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemPostproc/fillCylinder/CFD/../DEM/post/liggghts_init3000.vtk"
createTimeDir(path_), path="./lagrangian"
lagPath_=createTimeDir(fileName(lagPath_/lagrangian)), lagPath="./lagrangian"
ExecutionTime = 0.53 s ClockTime = 1 s
End
trying to start paraview...
Allrun.sh: line 81: /home/hp-z8/software/ParaView-4.3.1-Linux-64bit/bin/paraview: No such file or directory
무언가 된거 같은데, Paraview 버전이랑 PATH도 다르고, 어디에 해석결과가 세이브 되는지는 좀 더 찾아봐야 겠다. 힘든 여정이다.
'CFDEM' 카테고리의 다른 글
명령어 Reference (0) | 2024.01.03 |
---|---|
Case 기본 디렉토리 구조 (0) | 2024.01.03 |
bashrc (1) | 2024.01.02 |