Code Monkey home page Code Monkey logo

Comments (2)

MKirchen avatar MKirchen commented on July 1, 2024

Dear @Sculpdure, the parameter Nm refers to the total number of azimuthal modes that are simulated. For Nm = 1, only the mode m=0 is simulated.

from fbpic.

Sculpdure avatar Sculpdure commented on July 1, 2024

Dear Manuel,
Thanks a lot for this explanation. So mode = Nm -1.

FBPIC is a wonderful and super fast LWFA 2D code!
OpenPMD gives a super efficient way to analyse/visualize data once we get used to it.
The thing is I have difficulties in finding detailed information on the diagnostics.

The tutorials did not work for me over the last weeks but I could reach it lately. I learned a lot. I figured out that 'rho' isn’t macroparticles density but is actually charge density in C/m-3 (openPMD don’t give units).
I still have questions:

  • What provides ParticleChargeDensityDiagnostic() in addition to ParticleDiagnostic()?
    I ask because I could have access to electrons data (position and momentum per mc)

  • What is “w” called weight?
    Is it number of particles per cell (electrons) What unit?
    I found that some guys calculate electron charge from it:
    x,z,w = ts.get_particle(['x', 'z', 'w'], iteration=ts.iterations[-1])
    Does it get the particles in the (x,z) plane only?
    np.sum(w) * 1.602e-19 # calculate the charge, in C

print('weight dim', w.shape) gives :(339265,)
I’m very confused.
get_particle(t=ts.t[iter_nb], var_list=['w'],plot=True, vmax=1e7), gives this graph:
(What is vmax?)
electrons t = 4 88e-12 s

  • What does “ ts.get_charge” calculate from LpaDiagnostics?
    I got exact same values (in C) from get.charge and from np.sum(w).

  • How do we get the list of diagnostics from LpaDiagnostics (similarly as laser diagnostics)?
    I know: get_charge, get_current, get_spectrum.

Thank you for your time.
Sincerely, Fred

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.