Skip to content

rkube/picfun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PICfun

This repository implements the PIC algorithm described by Chen et al. With this project I'm testing how to accelerate iterative linear solvers in simple PIC algorithms with ML.

This code has been used for arXiv:2110.12444

PIC equations

The code solves the equations

equation

equation

on a 1-dimensional grid. The new electric field is determined by

equation

. Here

$$SM[Q] = (Q_{i-1} + 2Q_i + Q_{i+1}) / 4$$

is a binomial smoothing operator and angular brackets denote spatial averaging.

A good point to start the simulation is by running

$ julia implicit_gmres.jl

About

Fun with pic codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published