seed numbers in initialisation and run script?

Submitted by atul2018 on Mon, 11/08/2021 - 17:42

Does the seed numbers used in initialization (in.liggghts_init) and run (in.liggghts_run) script require to be different? I am using initialisation script to generate the bed and run script to insert some particles with fluid on prepared gravel bed.

I am using CFDEM (openfoam and liggghts). In the liggghts script one must provide the seed numbers for particle generation and insertion that must be prime numbers greater than 10000. I am having a strange error where different seed numbers are used in different commands (particletemplate, particlesdistribution and insert) in in.liggghts_run script, yet the system reports the error saying all seed numbers used in the script must be different. That you can varify here as well:

# particle distributions and insertion, IFS1 (bridging case)
fix pts1 all particletemplate/sphere 15485863 atom_type 1 density constant 2650 radius constant 0.00078
fix pts2 all particletemplate/sphere 15485867 atom_type 1 density constant 2650 radius constant 0.00049
fix pts3 all particletemplate/sphere 32452843 atom_type 1 density constant 2650 radius constant 0.00042
fix pts4 all particletemplate/sphere 32452867 atom_type 1 density constant 2650 radius constant 0.00036
fix pts5 all particletemplate/sphere 49979687 atom_type 1 density constant 2650 radius constant 0.00030
fix pts6 all particletemplate/sphere 49979693 atom_type 1 density constant 2650 radius constant 0.00025
fix pts7 all particletemplate/sphere 67867967 atom_type 1 density constant 2650 radius constant 0.00021
fix pts8 all particletemplate/sphere 67867979 atom_type 1 density constant 2650 radius constant 0.00018
fix pts9 all particletemplate/sphere 86028121 atom_type 1 density constant 2650 radius constant 0.00015
fix pts10 all particletemplate/sphere 86028157 atom_type 1 density constant 2650 radius constant 0.00011
fix pts11 all particletemplate/sphere 91428863 atom_type 1 density constant 2650 radius constant 0.00006 volume_limit 1e-14
fix pts12 all particletemplate/sphere 91428989 atom_type 1 density constant 2650 radius constant 0.00004 volume_limit 1e-14
fix pdd1 all particledistribution/discrete 92309057 12 pts1 8.8 pts2 4.6 pts3 4.7 pts4 8.2 pts5 9.2 pts6 11.9 pts7 16 pts8 15 pts9 15.2 pts10 5 pts11 1.2 pts12 0.2

#particle insertion (particles at the rate of 0.122 kg/s for 1 sec=0.122 kg particle should be inserted)
fix ins all insert/stream seed 92309279 distributiontemplate pdd1 mass 0.122 massrate 0.122 vel constant 0.675 0.0 0.0 overlapcheck yes insertion_face inlet extrude_length 0.1

I don't get why I am getting this error as the seed numbers inspite of using very different seed numbers in my in.liggghts_run script. I must say that I have used same seed numbers in my initialization script (in.ligghts_init) to generate bed. Can you please confirm that the both script must have different seed numbers from each other?

Best Regards
Atul Jaiswal