Diagnostics
GEMPIC.TimeHistoryDiagnostics
— TypeTimeHistoryDiagnostics( particle_group, maxwell_solver,
kernel_smoother_0, kernel_smoother_1 )
Context to save and plot diagnostics
particle_group
: Particles datamaxwell_solver
: Maxwell solverkernel_smoother_0
: Mesh coupling operatorkernel_smoother_1
: Mesh coupling operatordata
: DataFrame containing time history values
GEMPIC.eval_derivative_spline
— Methodeval_derivative_spline( position, xmin, delta_x, n_grid,
field_dofs, degree, derivative )
Compute the spline coefficient of the derivative of some given spline expansion
position
: particle positionxmin
: lower boundary of the domaindelta_x
: stepn_grid
: number of grid pointsfield_dofs
: coefficients of spline representation of the fielddegree
: degree of splinederivative
: value of the derivative
GEMPIC.evaluate
— Methodevaluate( kernel_smoother, field_dofs, xi, n_dofs )
Evaluate the field at points xi
field_dofs
: field value on dofsxi
: positions where the field is evaluated
GEMPIC.pic_diagnostics_hpi
— Methodpic_diagnostics_hpi( particle_group, index, kinetic )
compute v(index)-part of kinetic energy
particle_group
index
: velocity componentkinetic
: value of index part of kinetic energy
GEMPIC.pic_diagnostics_poynting
— Methodpic_diagnostics_poynting( maxwell_solver, degree, efield_dofs, bfield_dofs,
rho )
Compute $e^T M_0^{-1} R^T b$
maxwell_solver
: maxwell solver objectdegree
: degree of finite elementefield_dofs
: coefficients ofefield
bfield_dofs
: coefficients ofbfield
GEMPIC.pic_diagnostics_transfer
— Methodpic_diagnostics_transfer( particle_group, kernel_smoother_0,
kernel_smoother_1, efield_dofs, transfer)
Compute $\sum_{particles} w_p ( v_1,p e_1(x_p) + v_2,p e_2(x_p))$
particle_group
kernel_smoother_0
: Kernel smoother (order p+1)kernel_smoother_1
: Kernel smoother (order p)efield_dofs
: coefficients of efield
GEMPIC.pic_diagnostics_vvb
— Methodpic_diagnostics_vvb( particle_group, kernel_smoother_1, bfield_dofs )
Compute $\sum_{particles} ( w_p v_1, p b(x_p) v_2, p )$
particle_group
: particle group objectkernel_smoother_1
: Kernel smoother (order p)bfield_dofs
: coefficients of bfield
GEMPIC.solve_poisson!
— Methodsolvepoisson!( efield, particlegroup, kernelsmoother, maxwellsolver, rho )
Accumulate rho and solve Poisson
particle_group
: Particlesmaxwell_solver
: Maxwell solver (FEM 1D)kernel_smoother_0
: Particle-Mesh methodrho
: preallocated array for Charge densityefield_dofs
: spline coefficients of electric field (1D)
GEMPIC.write_step!
— Methodwrite_step!( thdiag, time, degree, efield_dofs, bfield_dofs,
efield_dofs_n, efield_poisson)
write diagnostics for PIC
time
: Timeefield_dofs
: Electric fieldefield_dofs_n
: Electric field at half stepefield_poisson
: Electric field compute from Poisson equationbfield_dofs
: Magnetic fielddegree
: Spline degree