Hello,
I am adding code to the insert function of the particleToInsert class.
It is working for sparse insertions but hits a segmentation fault error once it starts to get dense.
I have started to block in segments of code and have narrowed down where it breaks. The issue is that it breaks between two fprintf statements...
I have a few questions that will hopefully narrow down where the issue is.
As spheres are added, via the create_atoms function, do all arrays also grow?
During particle insertion, do other function run as a different thread?
If it is helpful, I have made a commit on my github of the code that I am working on....
The commit (https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/commit/681e04c1fc...)
The file (https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/blob/master/src/p...)
I have also added an extra example in the bond package section under Single tests based on the shear cell. The max number of templates that can be inserted is 2143.
Any help is appreciated. Thank you.
mschramm | Tue, 08/18/2020 - 00:00
fixed the issue...
Found the issue. The error is happening after the fprintf statement. It must be doing a predictive calculation before it hits the second fprintf statement.
The code is currently working but testing is needed to make sure that the changes reproduce the results of the master branch.
Daniel Queteschiner | Tue, 09/08/2020 - 18:49
Fiber insertion
We've basically done something similar based on particletemplate/multiplespheres with additional specification of the bond partners, creating the bonds in ParticleToInsert, and then using it with fix insert/pack.
We could probably share the code if you are interested (it's not in our public repo at https://github.com/ParticulateFlow yet but might as well slip in with our next update at the end of this month).
mschramm | Tue, 09/08/2020 - 22:21
That would be amazing.
I was successful in getting it to work, but only on a single core...
From what you posted, I think I am doing something similar but I think my issue is with building the neighbor bond lists.
Being able to compare notes would be very beneficial.
Thank you.
Daniel Queteschiner | Fri, 10/02/2020 - 10:36
The most relevant commits
The most relevant commits should be:
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/fb7358628f6526b40...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/36579de57b2599c44...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/abeb022c53ef0a049...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/b9b6c22de57ad79a3...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/26733fdcf1fa1995c...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/0f16409b6311ade24...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/9b1574176312d03c9...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/cd88c960786aa2c52...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/be85da6b5ac8010df...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/52f458187ad75696c...
https://github.com/ParticulateFlow/LIGGGHTS-PFM/commit/c3b402871617e074c...
Modified classes include:
Atom, FixInsert, FixInsertPack, FixParticledistributionDiscrete, FixTemplateMultiplespheres, ParticleToInsert
mschramm | Fri, 10/02/2020 - 16:49
Thank you
Thank you for posting this.
I saw the email last night and I have been going over the commits.
Thank you again.