com um clique
new-miniapp
Set up and validate a new JustPIC advection miniapp or benchmark script
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Set up and validate a new JustPIC advection miniapp or benchmark script
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Checklist for adding new functionality to JustPIC
Monitor CI, auto-fix small issues, pause on bigger problems, retrigger flaky runs
Build JustPIC documentation locally, full or fast
Run targeted JustPIC tests, prioritized by what's likely to break
| name | new-miniapp |
| description | Set up and validate a new JustPIC advection miniapp or benchmark script |
Set up, run, and validate a script that exercises JustPIC on a concrete flow — for demonstration, benchmarking, or validating a feature.
Clarify with the user (or infer from the request):
Particles, a MarkerChain (free surface), or
PassiveMarkersRungeKutta2 is the default choice) and what to measure/visualizeFollow the existing patterns (see the Miniapps testsets in test/test_2D.jl and the
scripts in docs/examples/):
using JustPIC
# grid: cell vertices xv/yv, cell centers xc/yc; velocity nodes are staggered
grid_vx = xv, expand_range(yc) # Vx nodes: vertices in x, extended centers in y
grid_vy = expand_range(xc), yv
nxcell, max_xcell, min_xcell = 24, 48, 14
particles = init_particles(backend, nxcell, max_xcell, min_xcell, grid_vx, grid_vy)
# velocity arrays live on those staggered nodes; phases via init_cell_arrays / cell_array
Time loop core: advection! → move_particles! → (inject_particles! if needed) →
interpolation (particle2grid! / grid2particle!).
backend is a KA backend type: CPU, or CUDA.CUDABackend after using CUDATA(backend) / cell_array(backend, ...)nxcellextrema of the velocity field make physical senseany(isnan, particles.coords[1].data)), particle count conservedApply the ladder in .agents/validation.md:
Use GLMakie/CairoMakie: scatter particle positions colored by phase (bring device data
back with Array(...) first), or heatmap the regridded field. For time series, record
frames each N steps.
docs/examples/, referenced from a docs pagetest_2D.jl/test_3D.jldt too large, or backtracking leaves the domain — reduce dt firstmin_xcell,
consider force_injection!