LIGGGHTS® - Developer Forum

Topics related to developing with LIGGGHTS® can be discussed here: discussion about implementation details, C++, MPI and debugging tools

LIGGGHTS particle insertion: Why is seed prime number?

Submitted by Walter_Leonie on Tue, 01/16/2018 - 11:32

Since the release of LIGGGHTS 3.5.0 seeds for particle insertion need to be prime numbers when I am informend correctly. However, when I consider the Park-Miller pseudorandom number generator as generator for "random" particle positions and velocities I do not get the point why the seeding should be larger than 10 000 and a prime number. As far as I know this random number generator creates a periodic list of numbers, where all numbers in a range from 1 to 2^31-1 do exist. Different seeds only shift the starting point, not the numbers itself.

add non-contact force with wall

Submitted by gelinhan on Thu, 12/14/2017 - 01:11

Hi,

I am trying to implement a non-contact force with walls in LIGGGHTS (e.g. lubrication force). I have noticed that in fix_wall_gran.cpp, deltan is used to calculate the overlap with wall and restricted to < 0. My plan is to use the deltan as the separation distance when it is > 0. The following are the relative codes in fix_wall_gran.cpp (from line 987 to 1009, I add my lines after that.) Is it feasible to do so?

if(deltan <= 0 || (radius && deltan < contactDistanceMultiplier*radius[iPart]))
{

Irregular::migrate_atoms() and infinite loop.

mdasilva's picture
Submitted by mdasilva on Tue, 10/24/2017 - 17:33

Hello everybody, lately I've been reading LIGGGHTS-PUBLIC version 3.5.0 code to have a better understanding about atoms migration scheme. I found that two methods are available, Comm::exchange() and Irregular::migrate_atoms().

I decided to give a chance to Irreglar::migrate_atoms() and made a couple of changes in verlet.cpp file in order to use this method. The changes are very few, so I guess they are alright; here they are:

1) around line 73 added an include sentence:

#include "irregular.h" (this way Verlet class are aware of Irregular class and methods)

Bonded Particle with Damping (Extending richti83's LIGGGHTS-With-Bonds)

Submitted by mschramm on Tue, 10/17/2017 - 20:56

Hello,
I'm posting what I have done to incorporate damping into a flexible fiber model.
I am using Yu Guo's paper "Granular Shear Flows of Flexible Rod-like Particles"
https://www.researchgate.net/publication/258741920_Granular_Shear_Flows_...
This release currently works for LIGGGHTS 3.7.0
The only thing that i would like to explore further is this bond model interaction with the fix_template_multiplespheres command.

Coupling LIGGGHTS-code_aster

DanielBR's picture
Submitted by DanielBR on Tue, 08/29/2017 - 04:18

Hi all,

I am working in a code to coupling code_aster (http://www.code-aster.org/) and LIGGGHTS.
Do to this, I compiled LIGGGHTS with the libraries that make possible LIGGGHTS work with meshes in med (Modélisation et Echange de Données - http://www.code-aster.org/spip.php?article275) format.
I share all the work here in hope that can be useful to someone.

ARGUMENTS FOR DUMP LOCAL/GRAN/VTK

Submitted by ninazbh on Wed, 07/12/2017 - 06:00

hello,

I am using dump local/gran/vtk command as follow to visualize forcechain in paraview:

dump forcechain all local/gran/vtk 1000 dump*.vtk

However, I get the following error:

ERROR: dump local/gran/vtk requires 6 arguments (../dump_local_gran_vtk.cpp:94)

Unfortunately, I cannot find any information about this dump style in online documentation of LIGGGHTS 3.X (The online manual). I would appreciate if anyone could tell me what arguments are needed for this dump style.

Thank you,
Nina

Cant access class function

Submitted by mschramm on Mon, 07/10/2017 - 21:26

Hello,
I have been trying to modify the verlet files to create a runge_kutta integration class for academic reasons...
I have added the variable bool has_converged as a protected variable, and a public function virtual void set_has_converged as follows

#ifdef INTEGRATE_CLASS

IntegrateStyle(my_rk,my_rk)

#else

#ifndef LMP_MY_RK_H
#define LMP_MY_RK_H

#include "integrate.h"

namespace LAMMPS_NS {

Pages

Subscribe to RSS - LIGGGHTS® - Developer Forum