febid.monte_carlo.etraj3d.MC_Simulation#

class MC_Simulation(structure, mc_params)[source]#

Bases: MC_Sim_Base

Monte Carlo simulation main class

Methods

plot

Show the structure with surface electron flux and electron trajectories

plot_flux_2d

run_simulation

Run MC simulation with the beam coordinates

update_structure

Renew memory addresses of the arrays

Attributes

NA

elementary_charge

shape

shape_abs

plot(primary_e=True, secondary_flux=True, secondary_e=False, heat_total=False, heat_pe=False, heat_se=False, timings=(None, None, None), cam_pos=None)[source]#

Show the structure with surface electron flux and electron trajectories

Returns:

run_simulation(y0, x0, heat, N=None)[source]#

Run MC simulation with the beam coordinates

Parameters:
  • y0 – spot y-coordinate

  • x0 – spot x-coordinate

  • heat – if True, calculate beam heating

Returns:

SE surface flux

update_structure(structure)[source]#

Renew memory addresses of the arrays

Parameters:

structure

Returns: