Giter Site home page Giter Site logo

Comments (4)

haykh avatar haykh commented on June 10, 2024

The problem is worse when the velocity is high (ultra-relativistic). Comparison of $\nabla\cdot\boldsymbol{E}$ for ultra-relativistic velocity ($u_\theta\approx 1$, top), and sub-relativistic ($u_\theta\approx 10^{-2}$, bottom). Near the axis the velocity is purely tangential: $\boldsymbol{u} = \hat{\boldsymbol{\theta}} u_\theta$.

PS. A particle flying in the last cell radially without reflecting leaves no charge behind.

highvel
lowvel

from entity.

haykh avatar haykh commented on June 10, 2024

The problem also scales with the CFL number. Top: CFL = 0.5, bottom -- CFL = 0.01, for $u_\theta\approx 1.0$.

cfl-0p5
cfl-0p01

from entity.

haykh avatar haykh commented on June 10, 2024

Solved in the latest PR #29. Two things needed to be redesigned:

  • inconsistency in the $\theta$-direction filtering of currents near the axes,
  • coordinate reflection of particles near the axes.

Two fixes:

  • use symmetries to define the filters (e.g., $J^r_{i+1/2, j, k} = (1/2) J^r_{i+1/2, j, k} + (1/2) J^r_{i+1/2, j + 1, k}$, etc.)
  • reflect particle velocities instead of the coordinates when the particle enters the first active cell.

Left: SR, right: GR

alt text alt text

from entity.

haykh avatar haykh commented on June 10, 2024

Merged #29

from entity.

Related Issues (11)

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.