Hi,
I am trying to compute contact force with paticles through the compute/gran/local command. I have use a loop command and when it loop, it shows an error as "ERROR: Need to define compute pair/gran/local or wall/gran/local before first run (compute_pair_gran_local.cpp:91)". Does anyone know how to modified it? I have attached my input file. Thanks.
shokeyi
Attachment | Size |
---|---|
in.5.tar_.gz | 904 bytes |
AGl | Thu, 02/21/2013 - 14:13
compute/uncompute command
You missed something in compute/uncompute command. Comment the line #50 and #52 and your script does not produce an error.
shokeyi | Thu, 02/21/2013 - 15:44
Hi AGI,
Hi AGI,
I do not know what has missing of the compute/uncompute command. You mean these two lines "compute l all pair/gran/local pos force contactArea", "uncompute l". Could you point out what has missing? Thanks very much.
AGl | Fri, 02/22/2013 - 13:57
uncompute
It seems, you "uncompute" before the values are calculated. That is why you get this error. If you remove last 3 lines of your code, it does not show an error any more.
deepakpawar.2310 | Fri, 11/08/2019 - 07:05
Compute pair/gran/local (id cpg2)
Hello
Getting following error while running the following command in the loop in LIGGGHTS.
Here $a is variable
compute cpg$a all pair/gran/local pos vel force force_normal force_tangential del
ERROR: Compute pair/gran/local (id cpg2): Need to define this compute before first run (../compute_pair_gran_local.cpp:127)
Any comments on the above state error.
Thank You