Syntax changes

A number of changes in the syntax have been brought in Smilei’s version 3.3. Most changes only affect keywords names.


In the namelist

Old

New

"1d3v", "2d3v", "3d3v"

"1Dcartesian", "2Dcartesian", "3Dcartesian"

maxwell_sol

maxwell_solver

sim_length

grid_length

sim_time

simulation_time

bc_em_type_*

EM_boundary_conditions

referenceAngularFrequency_SI

reference_angular_frequency_SI

currentFilter_int

CurrentFilter

Friedman_filter Friedman_theta

FieldFilter

poisson_iter_max

poisson_max_iteration

poisson_error_max

poisson_max_error

species_type

name

initPosition_type

position_initialization

initMomentum_type

momentum_initialization

n_part_per_cell

particles_per_cell

nb_density

number_density

bc_part_type_****

boundary_conditions

Particle boundary condition "none"

"periodic"

Particle boundary condition "refl"

"reflective"

Particle boundary condition "supp"

"remove"

thermT

thermal_boundary_temperature

thermVelocity

thermal_boundary_velocity

isTest

is_test

dynamics_type

pusher

boxSide

box_side

polarizationPhi

polarization_phi

dump_file_sequence

keep_n_dumps

coef_cell

cell_load

coef_frozen

frozen_particle_load

DumpRestart

Checkpoints

ExtField

ExternalField

track_******

DiagTrackParticles

track_filter

The filter function syntax has changed

DiagParticles

DiagParticleBinning

output of DiagParticles

The values of this argument have changed

In the post-processing module

Old

New

from Smilei import *
S = Smilei("my/simulation/path/")
import happi
S = happi.Open("my/simulation/path/")

ParticleDiagnostic()

ParticleBinning()

slice argument

average or sum, depending on the diagnostic

stride argument

more complete subset

average argument of Probe()
used bins indices

now requires coordinates in code units