(sec:particle-boundary-conditions)= # Boundary Conditions - Particle Solver Within the parameter file it is possible to define different particle boundary conditions. The number of boundaries is defined by Part-nBounds=2 Part-Boundary1-SourceName=BC_OPEN Part-Boundary1-Condition=open Part-Boundary2-SourceName=BC_WALL Part-Boundary2-Condition=reflective Part-Boundary2-SurfaceModel=2 The `Part-Boundary1-SourceName=` corresponds to the name given during the preprocessing step with HOPR. The available conditions (`Part-Boundary1-Condition=`) are described in the table below. | Condition | Description | | :------------: | :------------------------------------------------------------------------------------------------------------------- | | `open` | Every particle crossing the boundary will be deleted. | | `symmetric` | A perfect specular reflection, without sampling of particle impacts. | | `reflective` | Allows the definition of specular and diffuse reflection, Section {ref}`sec:particle-boundary-conditions-reflective` | | `rot_periodic` | Allows the definition of rotational periodicity, Section {ref}`sec:particle-boundary-conditions-rotBC` | For `rot_periodic` exactly two corresponding boundaries must be defined. Every particle crossing one of these boundaries will be inserted at the corresponding other boundary that is rotationally shifted. (sec:particle-boundary-conditions-reflective)= ## Reflective Wall A reflective boundary can be defined with Part-Boundary2-SourceName=BC_WALL Part-Boundary2-Condition=reflective A perfect specular reflection is performed, if no other parameters are given. Gas-surface interactions can be modelled with the extended Maxwellian model {cite}`Padilla2009`, using accommodation coefficients of the form $$\alpha = \frac{E_i-E_r}{E_i - E_w}$$ where $i$, $r$ and $w$ denote the incident, reflected and wall energy, respectively. The coefficient `MomentumACC` is utilized to decide whether a diffuse (`MomentumACC` $>R$) or specular reflection (`MomentumACC` $ T_2 \\ \end{cases} $$ The temperature limits $T_1$ and $T_2$ are model parameters and can be given for different impact angle ranges defined by the maximum impact angle $\alpha_{\mathrm{max}}$. These model parameters are read-in through the species database and have to be provided in the `/Surface-Chemistry/StickingCoefficient` dataset in the following format (example values): | $\alpha_{\mathrm{max}}$ [deg] | $\alpha_{\mathrm{B}}$ [deg] | $T_1$ [K] | $T_2$ [K] | | ----------------------------: | --------------------------: | --------: | --------: | | 45 | 80 | 50 | 100 | | 90 | 70 | 20 | 50 | In this example, within impact angles of $0°\leq\alpha\leq45°$, the model parameters of the first row will be used and for $45°<\alpha\leq90°$ the second row. The number of rows is not limited. The species database is read-in by Particles-Species-Database = Species_Database.h5 As additional output, the cell-local sticking coefficient will be added to the sampled surface output. A particle sticking to the surface will be deleted and its energy added to the heat flux sampling. This model can be combined with the linear temperature gradient and radiative equilibrium modelling as described in Section {ref}`sec:particle-boundary-conditions-reflective`. ### Secondary Electron Emission (SEE) Different models are implemented for secondary electron emission that are based on either electron or ion bombardment, depending on the surface material. All models require the specification of the electron species that is emitted from the surface via Part-SpeciesA-PartBoundB-ResultSpec = C where electrons of species `C` are emitted from boundary `B` on the impact of species `A`. #### Model 5 The model by Levko {cite}`Levko2015` can be applied for copper electrodes for electron and ion bombardment and is activated via `Part-BoundaryX-SurfaceModel=5`. For ions, a fixed emission yield of 0.02 is used and for electrons an energy-dependent function is employed. #### Model 7 The model by Depla {cite}`Depla2009` can be used for various metal surfaces and features a default emission yield of 13 \% and is activated via `Part-BoundaryX-SurfaceModel=7` and is intended for the impact of $Ar^{+}$ ions. For more details, see the original publication. The emission yield and energy can be varied for this model by setting SurfModEmissionYield = 1.45 ! ratio of emitted electron flux vs. impacting ion flux [-] SurfModEmissionEnergy = 6.8 ! [eV] respectively. The emission yield represents the ratio of emitted electrons vs. impacting ions and the emission energy is given in electronvolts. If the energy is not set, the emitted electron will have the same velocity as the impacting ion. Additionally, a uniform energy distribution function for the emitted electrons can be set via SurfModEnergyDistribution = uniform-energy which will scale the energy of the emitted electron to fit a uniform distribution function. #### Model 8 The model by Morozov {cite}`Morozov2004` can be applied for dielectric surfaces and is activated via `Part-BoundaryX-SurfaceModel=8` and has an additional parameter for setting the reference electron temperature (see model for details) via `Part-SurfaceModel-SEE-Te`, which takes the electron temperature in Kelvin as input (default is 50 eV, which corresponds to 11604 K). The emission yield is determined from an energy-dependent function. The model can be switched to an automatic determination of the bulk electron temperature via Part-SurfaceModel-SEE-Te-automatic = T ! Activate automatic bulk temperature calculation Part-SurfaceModel-SEE-Te-Spec = 2 ! Species ID used for automatic temperature calculation (must correspond to electrons) where the species ID must be supplied, which corresponds to the electron species for which, during `Part-AnalyzeStep`, the global translational temperature is determined and subsequently used to adjust the energy dependence of the SEE model. The global (bulk) electron temperature is written to *PartAnalyze.csv* as *XXX-BulkElectronTemp-[K]*. #### Model 10 An energy-dependent model of secondary electron emission due to $Ar^{+}$ ion impact on a copper cathode as used in Ref. {cite}`Theis2021` originating from {cite}`Phelps1999` is activated via `Part-BoundaryX-SurfaceModel=10`. For more details, see the original publications. #### Model 11 An energy-dependent model (linear and power fit of measured SEE yields) of secondary electron emission due to $e^{-}$ impact on a quartz (SiO$_{2}$) surface as described in Ref. {cite}`Zeng2020` originating from {cite}`Dunaevsky2003` is activated via `Part-BoundaryX-SurfaceModel=11`. For more details, see the original publications. ## Deposition of Charges on Dielectric Surfaces Charged particles can be absorbed (or reflected and leave their charge behind) at dielectric surfaces when using the deposition method `cell_volweight_mean`. The boundary can be used by specifying ``` Part-Boundary1-Condition = reflective Part-Boundary1-Dielectric = T Part-Boundary1-NbrOfSpeciesSwaps = 3 Part-Boundary1-SpeciesSwaps1 = (/1,0/) ! e- Part-Boundary1-SpeciesSwaps2 = (/2,2/) ! Ar Part-Boundary1-SpeciesSwaps3 = (/3,2/) ! Ar+ ``` which sets the boundary dielectric and the given species swap parameters effectively remove electrons ($e^{-}$) on impact, reflect $Ar$ atoms and neutralize $Ar^{+}$ ions by swapping these to $Ar$ atoms. Note that currently only singly charged particles can be handled this way. When multiple charged particles would be swapped, their complete charge mus be deposited at the moment. The boundary must also be specified as an *inner* boundary via BoundaryName = BC_INNER BoundaryType = (/100,0/) or directly in the *hopr.ini* file that is used for creating the mesh.