Skip to content

Bug fix #206 and allow flexible choise of differential forms of initiaial distribution function and its binning.

Byung Kyu Na requested to merge pproc_lost_particles into devel

If particles are lost during the simulation, the orbits of lost markers are saved as [ip, 0, 0, 0]

  • Flexible choice of differential forms of f for initialization of the particle distribution and binning.
kinetic :
        init :
            pforms : ['0', 'vol'] # differential forms (0- or vol-form) of the distribution function in [domain-space, velocity-space].
            type : Maxwellian5DUniform
            Maxwellian5DUniform:
                n : 0.01
        save_data :
            n_markers : 200 # number of markers to be save during simulation
            f :
                pforms : ['0', 'vol'] # in which differential forms (0- or vol-form) of the distribution function in [domain-space, velocity-space] to bin.
                slices : [v1, v2, e1_v1, e2_v1, e3_v1] # in which directions to bin (e.g. [e1_e2, v1_v2_v3])
                n_bins : [[64], [64], [64, 64], [64, 64], [64, 64]] # number of bins in each direction (e.g. [[16, 20], [16, 18, 22]])
                ranges : [[[-5.5, 5.5]], [[0., 1.]], [[0., 1.], [-5.5, 5.5]], [[0., 1.], [-5.5, 5.5]], [[0., 1.], [-5.5, 5.5]]] # bin range in each direction

By specifying pforms of particle distribution, now we can initialize particle distribution as volue-form. (So far, we are only allowed to initialize as 0-form.)

List including two strings e.x. ['0', 'vol'] should be given. (One for domain(configuration)-space and the other for velocity-space)

If it is not specified, initialize as 0-form for both spaces and also bin 0-form distribution function.

Edited by Byung Kyu Na

Merge request reports