Giter VIP home page Giter VIP logo

Comments (8)

atmyers avatar atmyers commented on July 30, 2024

I think this is a problem I introduced when I added information about the rigid injected species into WarpXHeader, to fix the restart when those were used.

I am leaving for vacation today, and I'll fix this for real when I get back. In the meantime, you can delete the lines at the end of WarpXHeader that have to do with the rigid injected species, leaving only the species charges and masses, and it should work.

from warpx.

LDAmorim avatar LDAmorim commented on July 30, 2024

from warpx.

LDAmorim avatar LDAmorim commented on July 30, 2024

Hi Andrew,

You are right, the attached input file without the beam-rigid-injection lines:

particles.rigid_injected_species = beam
beam.zinject_plane = 20.e-6
beam.rigid_advance = true

Works well and I can get all the data:
electrons-beam-00000

When I introduce the injection lines, it leads to the error above.
So I will work on my fork and branch without the part you mentioned in WarpXHeader.

inputs_2d.txt

Thanks,
Diana

from warpx.

atmyers avatar atmyers commented on July 30, 2024

FYI I have made a pull request to yt that fixes this issue: yt-project/yt#2289

from warpx.

LDAmorim avatar LDAmorim commented on July 30, 2024

Thanks!!

from warpx.

LDAmorim avatar LDAmorim commented on July 30, 2024

Just in case anyone else wants to model beams with the rigid option, until yt merges Andrew's PR, I decided to do the attached small bash script to remove the additional header lines automatically (to avoid making mistakes). So far it works for my runs.

To run it, first change it to ".sh", adapt the directory paths and confirm the WarpXHeader line numbers to be removed. Then use the command "bash rm_rigid_header.sh".

rm_rigid_header.txt

The original header files are stored in the new files WarpXHeader-stored, so you can double-check the changes.

from warpx.

LDAmorim avatar LDAmorim commented on July 30, 2024

Note that if you are running an input with multiple beams with the rigid option, you will have to remove multiple "sets" of lines in the WarpXHeader files.

from warpx.

MaxThevenet avatar MaxThevenet commented on July 30, 2024
pip install git+https://github.com/yt-project/yt.git

installs yt including @atmyers's fix to this problem, so we can close the issue.

from warpx.

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.