febid.monte_carlo.etrajmap3d.ETrajMap3d#

class ETrajMap3d[source]#

Bases: MC_Sim_Base

Implements energy deposition and surface secondary electron flux calculation.

Create an empty ETrajMap3d instance

Methods

extract_se_heat

Calculate energy loss by scattered secondary electrons per cell.

follow_segment

Calculate total energy deposited by primary electrons per cell.

generate_se

Estimate surface secondary electron flux.

joule_heating

Get total energy loss from primary and secondary electrons peel

map_follow

Get surface secondary electron flux and volumetric heat source distribution

prep_se_emission

Subdivide trajectory segments and energy losses

setParametrs

Initialise the instance and set all the necessary parameters

traverse_cells

AABB Ray-Voxel traversal algorithm.

Attributes

NA

elementary_charge

shape

shape_abs

extract_se_heat()[source]#

Calculate energy loss by scattered secondary electrons per cell.

Returns:

follow_segment(points, dEs)[source]#

Calculate total energy deposited by primary electrons per cell.

Parameters:
  • points – array of (z, y, x) points representing a trajectory from MC simulation

  • dEs – list of energies losses between consecutive points. dEs[0] corresponds to a loss between p[0] and p[1]

Returns:

generate_se()[source]#

Estimate surface secondary electron flux.

Returns:

joule_heating()[source]#

Get total energy loss from primary and secondary electrons peel

map_follow(passes, heating=False)[source]#
Get surface secondary electron flux and volumetric heat source distribution

from primary electron trajectories.

Parameters:
  • passes – a collection of trajectories

  • heating – True will calculate collective heat effect from PEs and SEs

Returns:

prep_se_emission(points, dEs, ends)[source]#

Subdivide trajectory segments and energy losses

Parameters:
  • points – segment start- and end-points

  • dEs – energy loss

  • ends – trajectory end positions, check comments

Returns:

setParametrs(structure, params, segment_min_length=0.3)[source]#

Initialise the instance and set all the necessary parameters

Parameters:
  • structure – solid structure representation

  • params – contains all input parameters for the simulation

  • segment_min_length – segment subdivision length

traverse_cells(p0, pn, direction, t, step_t)[source]#

AABB Ray-Voxel traversal algorithm. Gets coordinates, where ray crosses voxel walls

Parameters:
  • p0 – ray origin

  • pn – ray endpoint

  • direction – direction of the ray

  • t – first t-value

  • step_t – step of the t-value

Returns: