GithubHelp home page GithubHelp logo

Particle sent to self error about sparta HOT 15 CLOSED

sparta avatar sparta commented on May 29, 2024
Particle sent to self error

from sparta.

Comments (15)

stanmoore1 avatar stanmoore1 commented on May 29, 2024

In a different code, we also had issues with axisymmetric. It seems to be more prone to round error issues. @sjplimp and @mgallis, what do you think?

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

I talked to @sjplimp about this and he would like to understand why this is happening. @aborner1 do you have a reproducer input script?

from sparta.

aborner1 avatar aborner1 commented on May 29, 2024

I only have large cases that reproduce it, I would need to see if I can generate something small that ideally can be run on a small number of procs, otherwise it's going to be a nightmare to debug.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

@aborner1 I have assigned this issue to you. Once we have a reproducer I will reassign it to @sjplimp. Thanks.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

This issue is possibly fixed by #194, @aborner1 can you confirm?

from sparta.

aborner1 avatar aborner1 commented on May 29, 2024

@stanmoore1 Will test the new code on large axisymmetric simulations. It wasn't something I could reproduce, so I will never be able to fully confirm, but unless the error reappears, I agree that this sounds like a logical fix.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

Sounds good. We used fix check grid/check 1 error to debug #194, that is a good option to turn on if you are seeing issues.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

And global comm/sort yes so it is reproducible.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

@aborner1 I'm going to close this issue, but please reopen a new issue if you see the "Particle sent to self error" again.

from sparta.

aborner1 avatar aborner1 commented on May 29, 2024

@stanmoore1 @sjplimp I just encountered this error on a 3D run. So it is definitely still an issue in some cases. Hard to reproduce, as, once again, it happens on a large simulation after a few hours. Can a similar bug fix be implemented for 3D?

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

Can a similar bug fix be implemented for 3D?

There is no analogue for that axisymmetric issue in 3D, i.e. we tried in straight 2D and it works fine when a particle lands on the boundary.

Here is how I would recommend debugging this issue:

  • Turn on global comm/sort yes so the runs are reproducible
  • Turn on fix check grid/check 1 error to better diagnose grid cell problems
  • Write out a restart file periodically, say every 10,000 steps
  • When the simulation crashes after a few hours, increase the output frequency of restart files, i.e. write out a restart file every 1000 steps, and restart from the last checkpoint file to "zoom in" on the bug
  • Keep zooming in until you have a reliable reproducer that runs in a hundred timesteps or less
  • Send all the files (input and restart) to us for further debugging

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

I just got another "particle outside of cell" error in a large 2D axisymmetric simulation, even with the fix in #194. I'll try to debug.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

#221 should fix any issues for axisymmetric by just deleting the particles.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

@aborner1 can you try out #221 on your axisymmetric case? It should be a fix-all for these types of issues. Not sure why you would see issues in 3D though.

from sparta.

stanmoore1 avatar stanmoore1 commented on May 29, 2024

@aborner1 #221 should fix all axisymmetric issues so I'm going to close this issue. If you see more issues please let us know.

from sparta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.