Hello,
I am running a code using the following contact model:
pair_style gran model hertz tangential history rolling_friction epsd2
I obtain the following WARNING in the output file:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The contact model you specified is not located in any whitelist.
Because of this the model will be run in an unoptimized version (increasing runtime by up to 20%).
In order to optimize this model you have the following options:
(i) Run the genAutoExamplesWhitelist.sh script in your LIGGGHTS(R) source folder to automatically parse the input script
(ii) Add the model combination by hand to your style_contact_model_user.whitelist that can be found in your LIGGGHTS(R) source folder
If you perform one of the steps above LIGGGHTS(R) needs to be recompiled to generate the optimized code.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Does that mean that the model is not taken into account and my simulation is running as if the rolling friction model was not activated or is it just that it is slowed down because of the absence of optmization (in which case case it would not be such a big problem).
Moreover, when I follow the instructions and try to run the genAutoExamplesWhitelist.sh using for exemple the following syntax:
./genAutoExamplesWhitelist.sh -f ../examples/LIGGGHTS
I always get:
./genAutoExamplesWhitelist.sh: 1: eval Syntax error: "(" unexpected
Does anyone know to correct this error?
Thank you in advance,
jsams | Sat, 04/14/2018 - 07:05
As stated, the simulation
As stated, the simulation will run unoptimized. Which means that it will still take into account your contact model.
You're right, it could be not such a big problem, however, the solution to this is quite simple, so I would recommend you add the model to the whitelist as suggested by option (ii). Have a look at this for further instructions: https://www.cfdem.com/forums/superquadrics-compilation
I have never tried option (i), so I have no experience with the error you got. But it gives you a syntax error message, which at a first glance doesn't look that nasty.
j-kerbl | Tue, 04/17/2018 - 08:52
Hi,
Hi,
we've already noticed the issue in the genAutoExamples script and this will be fixed in the next release.
I suggest to add your entry manually to "style_contact_model_user.whitelist".
Cheers,
Josef
amisagarbiswas | Tue, 05/14/2024 - 08:43
style_contact_model_user.whitelist is nowhere in src/LIGGGHTS
The contact model you specified is not located in any whitelist.
Because of this the model will be run in an unoptimized version (increasing runtime by up to 20%).
In order to optimize this model you have the following options:
(i) Run the genAutoExamplesWhitelist.sh script in your LIGGGHTS(R) source folder to automatically parse the input script
(ii) Add the model combination by hand to your style_contact_model_user.whitelist that can be found in your LIGGGHTS(R) source folder
If you perform one of the steps above LIGGGHTS(R) needs to be recompiled to generate the optimized code.
I am facing the same issue. For (ii) option, style_contact_model_user.whitelist this file is not there in src/LIGGGHTS-Public folder.
After running the first option this happens
./genAutoExamplesWhitelist.sh
genAutoExamplesWhitelist.sh - searches paths recursively for LIGGGHTS example input scripts (in.*), and extracts the pair styles, version 0.1
usage: genAutoExamplesWhitelist.sh [-o outputfile] [-s LIGGGHTS src directory path] [-i] [-v] [-f] [-a] [paths|files]
-o: output filename (default: ./style_contact_model_autoExamples.whitelist)
-s: specify LIGGGHTS src directory path (default: ./)
-i: do not search recursively, look in specified files
-a: search recursive in all files, not only in.*
-f: force outfile to be overwritten
-v: verbose
Example:
genAutoExamplesWhitelist.sh ../examples/LIGGGHTS
please guide me forward.
Thank you
Sagar Biswas
angelaevans | Mon, 10/28/2024 - 04:59
1v1 lol
@ 1v1 lol Regarding the error with genAutoExamplesWhitelist.sh, it sounds like there might be an issue with the shell environment or the script itself. Ensuring that you're running the script in a compatible shell (like bash) rather than sh could resolve the syntax error. You could try running it with:
bash
Copy code
bash ./genAutoExamplesWhitelist.sh -f ../examples/LIGGGHTS
This might help in correctly parsing the script. Keep up the great work in refining your simulation setup!