Code Monkey home page Code Monkey logo

Comments (7)

jameschappell avatar jameschappell commented on July 19, 2024 4

@AlexanderSinn thanks! Such a simple fix, sorry! I also re-ran with the wider box and got much better agreement between the codes. Thanks all for your help! @RemiLehe @AngelFP

HPwider_vs_Wake-T_vs_FBPIC_beam

from fbpic.

AlexanderSinn avatar AlexanderSinn commented on July 19, 2024 2

I used HiPACE++ to run the provided input script unchanged (blue) and with

amr.n_cell = 2047 2047 1024
geometry.prob_lo     = -100.e-6 -100.e-6 -155.e-6
geometry.prob_hi     =  100.e-6  100.e-6  0.e-6

to extend the domain transversely by 2x (orange). This now looks closer to the RZ codes.

image

from fbpic.

RemiLehe avatar RemiLehe commented on July 19, 2024

Thanks a lot for reporting this!
This discrepancy is indeed not expected. The fact that Wake-T and HiPACE++ do not have agreement is maybe the most surprising, since they both use the quasistatic approximation (unlike FBPIC).
@MaxThevenet @AngelFP @AlexanderSinn Have you seen a similar effect in the past? Are you able to reproduce the issue? And should we post the same issue on the Wake-T/HiPACE++ repository?

from fbpic.

AlexanderSinn avatar AlexanderSinn commented on July 19, 2024

Thanks for bringing up this issue. It looks very interesting. One suspicion I have is that the x,y boundary in HiPACE++ is too close to the wake, causing it to be shorter. HiPACE++ uses Dirichlet boundary conditions, while the RZ codes allow a 1/r field to go to infinity (is this correct, Remi?). Thanks to the inclusion of the input scripts in the issue, I will be able to do further HiPACE++ simulations to verify/falsify my suspicion about the boundary shortly. 

from fbpic.

AngelFP avatar AngelFP commented on July 19, 2024

Hi all,
It's good to see that FBPIC and Wake-T agree so well, but in principle there is no reason why Hipace should be giving different results here.

I've done similar convergence tests with Wake-T and hipace (beam driven case) and they both agree extremely well.

How many particles do you have in the driver? That's something where hipace might need more due to the 3d grid.

from fbpic.

jameschappell avatar jameschappell commented on July 19, 2024

Thanks all for the suggestions!

How many particles do you have in the driver? That's something where hipace might need more due to the 3d grid.

@AngelFP I only used 1e5 particles in the driver for these tests, so can try increasing this.

from fbpic.

AngelFP avatar AngelFP commented on July 19, 2024

Looks great!

from fbpic.

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.