Hi every one,
please help me i am new user of liggghts, and using ubuntu 16.04 LTS operating system.
i used the procedure given in the link : "https://www.cfdem.com/media/DEM/docu/Section_start.html"
after completing step 0 (2.2.2. Steps to build a LIGGGHTS(R)-PUBLIC executable) i got lmp_auto in src directory.
than i went directly on "2.6. Running LIGGGHTS(R)-PUBLIC"
and tried to run tutorial example chute wear input script by using following command in terminal:
":~/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear$ mpirun -np 4 lmp_auto
Attachment | Size |
---|---|
![]() | 14.75 KB |
rashid minhas | Sat, 07/15/2017 - 00:33
and tried to run tutorial
and tried to run tutorial example chute wear input script by using following command in terminal:
":~/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear$ mpirun -np 4 lmp_auto
mschramm | Sat, 07/15/2017 - 01:30
Where is lmp_auto
You may have compiled the program, but your system does not know where it is.
You could link lmp_ auto to your bin directory by
ln -s {path to lmp_auto} ~/bin/liggghts
Then you can run liggghts anywhere
rashid minhas | Sat, 07/15/2017 - 12:02
Symbolic Link is not created
Hi mschramm,
I have followed your instruction but the link is not established. I have written following command in ubuntu terminal
ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_auto /usr/bin/liggghts
and the following message is appear
ln: failed to create symbolic link '/usr/bin/liggghts': File exists
I have also tried this command too
sudo ln -s lmp_ubuntuVTK /usr/bin/liggghts
and the following message is appear
ln: failed to create symbolic link '/usr/bin/liggghts': File exists
can you help me why the symbolic link is not created
thanks
rashid minhas | Mon, 07/17/2017 - 00:53
lmp_auto execution problem
mpirun -np 4 /$HOME/LIGGGHTS_PUBLIC/src/lmp_auto -in in.chute_wear
--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not access
or execute an executable:
Executable: //home/mahid/LIGGGHTS_PUBLIC/src/lmp_auto
Node: mahid-7G-Series
while attempting to start process rank 0.
j-kerbl | Mon, 07/17/2017 - 15:12
Hi Rashid,
Hi Rashid,
the symbolic link isn't created, since there is already a liggghts link there. See the output:
failed to create symbolic link '/usr/bin/liggghts': File exists
To rewrite the link, you can use the -f option and to write into /usr/bin you should probably run this as sudo:
sudo ln -sf /home/mahid/LIGGGHTS-PUBLIC/src/lmp_auto /usr/bin/liggghts
liggghts
Also please try to copy this line, since if you make any mistake it won't work. I just saw some inconsistencies with "LIGGGHTS-PUBLIC" and "LIGGGHTS_PUBLIC".
Cheers,
Josef
rashid minhas | Mon, 07/17/2017 - 16:56
Hi josef
Thanks, Josef it works
z3490628 | Tue, 08/22/2017 - 09:49
Hi Josef
Hi Josef,
I have a similar problem. I have tried to type 1. sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_serial /usr/bin/liggghts before
2. gedit ~/.bashrc
3. Added to end -> alias "liggghts=$HOME/LIGGGHTS-PUBLIC/src/lmp_serial"
I would like to change it to "sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_auto /usr/bin/liggghts". However, it displayed ln: failed to create symbolic link ' /usr/bin/liggghts': File exists even tho I have tried to replace it as sudo ln -sf and modify the gedit.
Can you please help? thanks
Regards,
Josh
z3490628 | Tue, 08/22/2017 - 10:03
Hi Josef
Hi Josef,
In addition, when I typed the command "liggghts", it returns as bash: /home/z3490628/LIGGGHTS-PUBLIC/src/lmp_serial: No such file or directory. I am confused that even tho I have changed the new path as lmp_auto, it still appears as bash.......lmp_serial.
Regards,
Josh
Jmass | Thu, 02/06/2020 - 16:01
Run as Root
When I use the same command as Rashid, I am warned not to run as root. How do I run this an non-root/ fix the issue?
:~/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear# mpirun -np 4 lmp_auto
OsagbeMomoh | Sun, 02/23/2025 - 00:07
OpenFOAM LIGGGHTS error - Can I get help on how to resolve this
// run_parallel_cfdemSolverPiso_settlingTestMPI_CFDDEM //
/home/israelmomoh/OpenFOAM/israelmomoh-v2406/run/myFoamProgram/tutorials/Excavator/parallelPlates/CFD
rm: cannot remove 'couplingFiles/*': No such file or directory
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-7f7d351b741b
Exec : cfdemSolverPiso -parallel
Date : Feb 22 2025
Time : 17:00:52
Host : "IsraelMomohO"
PID : 549378
I/O : uncollated
Case : /home/israelmomoh/OpenFOAM/israelmomoh-v2406/run/myFoamProgram/tutorials/Excavator/parallelPlates/CFD
nProcs : 6
Slaves :
5
(
"IsraelMomohO.549379"
"IsraelMomohO.549380"
"IsraelMomohO.549381"
"IsraelMomohO.549382"
"IsraelMomohO.549383"
)
Pstream initialized with:
floatTransfer : 0
nProcsSimpleSum : 0
commsType : nonBlocking
polling iterations : 0
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
PISO: Operating solver in PISO mode
Reading field p
Reading physical velocity field U
Note: only if voidfraction at boundary is 1, U is superficial velocity!!!
Reading momentum exchange field Ksl
Reading voidfraction field voidfraction = (Vgas/Vparticle)
Creating density field rho
Reading particle velocity field Us
Reading/calculating face flux field phi
Generating interstitial face flux field phiByVoidfraction
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes
Creating finite volume options from "system/fvOptions"
Reading g
Selecting locateModel engine
Selecting dataExchangeModel twoWayMPI
Starting up LIGGGHTS for first time execution
Executing input script '../DEM/parallePlates.lmp'
LIGGGHTS (Version LIGGGHTS-PUBLIC 3.8.0, compiled 2025-02-07-00:06:51 by israelmomoh, git commit 3d5c00f20519e6bb6eb6756f51f1ad36564e649d)
ERROR on proc 0: Cannot open input script ../DEM/parallePlates.lmp (../input.cpp:285)
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI COMMUNICATOR 3 DUP FROM 0
with errorcode 1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-7f7d351b741b
Exec : reconstructPar -noLagrangian
Date : Feb 22 2025
Time : 17:00:53
Host : "IsraelMomohO"
PID : 549396
I/O : uncollated
Case : /home/israelmomoh/OpenFOAM/israelmomoh-v2406/run/myFoamProgram/tutorials/Excavator/parallelPlates/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
Skipping reconstructing lagrangian positions and fields
--> FOAM Warning :
From function int main(int, char**)
in file reconstructPar.C at line 256
No times selectedisraelmomoh@IsraelMomohO:~/OpenFOAM/israelmomoh-v2406/run/myFoamProgram/tutorials/Excavator/parallelPlates$