(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 The `Part-Boundary1-SourceName=` corresponds to the name given during the preprocessing step with PyHOPE. 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 | | `symmetric_axis` | Definition of the axis of rotation in axisymmetric 2D simulations: Section {ref}`sec:2D-axisymmetric` | | `symmetric_dim` | Definition of symmetrical boundaries in 1D and 2D simulations: Section {ref}`sec:2D-axisymmetric`, Section {ref}`sec:1D-sym` | | `reflective` | Definition of different surface models: Section {ref}`sec:particle-boundary-conditions-reflective`, Section {ref}`sec:surface-chemistry`, Section {ref}`sec:catalytic-surface` | | `rot_periodic` | Definition of rotational periodicity: Section {ref}`sec:particle-boundary-conditions-rotBC` | | `rot_periodic_inter_plane` | Extension of rotational periodicity, allowing non-conformal interfaces and varying periodicity | (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 = SpeciesDatabase.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`. ### Fixed probability surface chemistry This simple fixed-probability surface chemistry model allows the user to define arbitrary surface reactions, by defining the impacting species, the products and a fixed event probability. The reaction is then assigned to the boundaries by specifying their number and index as defined previously. This model corresponds to `Part-BoundaryX-SurfaceModel = 2`, which is set automatically when a reaction of this type is defined. Surface-NumOfReactions = 1 Surface-Reaction1-Type = P Surface-Reaction1-Reactants = (/1,0/) Surface-Reaction1-Products = (/2,1,0/) Surface-Reaction1-EventProbability = 0.25 Surface-Reaction1-NumOfBoundaries = 2 Surface-Reaction1-Boundaries = (/1,3/) Optionally, a reaction-specific accommodation coefficient for the products can be defined, otherwise the surface-specific accommodation will be utilized for the product species: Surface-Reaction1-ProductAccommodation = 0. In the case that the defined event does not occur, a regular interaction using the surface-specific accommodation coefficients is performed. Examples are provided as part of the regression tests: `regressioncheck/NIG_DSMC/SURF_PROB_DifferentProbs` and `regressioncheck/NIG_DSMC/SURF_PROB_MultiReac`. (sec:BC-see)= ### 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`. Some of the models allow the choice of an angle and energy distribution function to define the velocity vector of the secondary. The available options are: | Name | Description | Source | | --------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------: | | deltadistribution | Random velocity vector and complete remaining impact energy | - | | uniform-energy | Random velocity vector and random uniform distribution of the remaining impact energy | - | | Chung-Everhart-cosine | Angle distribution according to $\cos$ in the normal direction, equally distributed in the tangential direction, and a Chung-Everhart distribution of the energy $f = \frac{E}{(E+W)^4}$ | {cite}`Chung1974`, {cite}`Greenwood2002` | | cosine | Angle distribution according to $\cos$ in the normal direction, equally distributed in the tangential direction | | For the `Chung-Everhart-cosine` distribution, in the case of 2 or more secondaries, we are currently sampling each energy independently, which can result in an energy addition and thus energy conservation violation. An output to monitor the percentage of violations and energy addition as a percentage of the impact energy per SEE event can be enabled through `CalcEnergyViolationSEE = T`. For a simulation using variable particle weights (`Part-vMPF = T`) as described in Section {ref}`sec:split-merge`, the models 3, 4, 12, and 13 support the emission of only a single secondary, weighted according to the calculated yield. This feature can be enabled per boundary: Part-Boundary1-SurfMod-vMPF = T Additional parameters, which can be utilized per boundary for models 3, 4, 12, and 13 are Part-Boundary1-SurfMod-SubtractWorkFunction = .FALSE. ! Default: .TRUE. Part-Boundary1-SurfMod-ReflectElectron = .TRUE. ! Default: .FALSE. The first parameter allows to disable the subtraction of the work function from the incident electron energy (example in `piclas/regressioncheck/NIG_PIC_poisson_Leapfrog/BC_SEE_EnergyDistribution_Constant`). The second parameter can be used to utilize the yield function as a probability for a reflection if the incident energy is lower than the work function (example in `piclas/regressioncheck/NIG_PIC_poisson_Leapfrog/BC_SEE_SquareFit_ReflectBelowThreshold`). #### Model 3/4 These models use a square- (= 3) or power-fit (= 4) and an additional threshold to model the secondary electron emission yield. It is assumed that the impacting particle is absorbed. $$\text{Square-fit: }\gamma = (a E + b E^2 + c)H(E-W),$$ $$\text{Power-fit: }\gamma = (a E^b + c)H(E-W),$$ where $a$, $b$, $c$ are the fitting coefficients and $W$ is the material-dependent work function [eV] above which the yield is calculated. The parameters are read-in through: Part-BoundaryB-SurfModSEEFitCoeff = (/0.1,0.5,0.25,9/) ! (/a,b,c,W/) Additionally, the energy distribution can be selected with Part-BoundaryB-SurfModEnergyDistribution = Chung-Everhart-cosine It should be noted that per default the impact energy is reduced by the work function before the energy distribution. An example of the model usage is given in the regression test: `piclas/regressioncheck/NIG_PIC_poisson_Leapfrog/BC_SEE_PowerFit/`. Fit coefficients can be found for example in {cite}`Goebel2008`. #### 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 electronvolt. 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. #### Model 12 This model relies on a semi-empirical formulation by Seiler {cite}`Seiler1983`. It is assumed that the impacting particle is absorbed. $$\gamma = a \cdot 1.11 \cdot \left(\frac{E}{b}\right)^{-0.35}\left(1-e^{-2.3\left(\frac{E}{b}\right)^{1.35}}\right)$$ where $a$ and $b$ [eV] are material-specific coefficients and $W$ is the work function [eV] above which the yield is calculated. The parameters are read-in through: Part-BoundaryB-SurfModSEEFitCoeff = (/1.0,700,0.0,9/) ! (/a,b,c,W/) Additionally, the energy distribution can be selected with Part-BoundaryB-SurfModEnergyDistribution = Chung-Everhart-cosine It should be noted that per default the impact energy is reduced by the work function before the energy distribution. An example of the model usage is given in the regression test: `piclas/regressioncheck/NIG_DSMC/BC_SEE_Model_12/`. #### Model 13 This model relies on the Vaughan formula given by Villeman {cite}`Villemant2019`. It is assumed that the impaction particle is absorbed. $$\gamma = a \left( \frac{E}{b} \cdot e^{1-\frac{E}{b}} \right)^c$$ where $a$, $b$ [eV], and $c$ are material-specific coefficients and $W$ is the work function [eV] above which the yield is calculated. The parameters are read-in through: Part-BoundaryB-SurfModSEEFitCoeff = (/2.016,299,0.563,0/) ! (/a,b,c,W/) Additionally, the energy distribution can be selected with Part-BoundaryB-SurfModEnergyDistribution = cosine Using the cosine energy distribution, the angle distribution is according to $\cos$ in the normal direction and equally distributed in the tangential direction. Using the SEE model 13 (and the cosine energy distribution), the energy of all secondary emitted electrons is set to 2 eV. If a work function greater than zero is set, the impact energy is reduced by the work function before the energy distribution per default. An example of the model usage is given in the regression test: `piclas/regressioncheck/NIG_DSMC/BC_SEE_Model_13/`. (sec:catalytic-surface)= ## Catalytic Surfaces Catalytic reactions can be modeled in PICLas using a finite-rate reaction model with an implicit treatment of the reactive surface. For a better resolution of the parameters, the catalytic boundaries are discretized into a certain number of subsides. A definition of the boundary temperature in the parameter input file is required in all cases. Different types of surfaces can be defined by the lattice constant of the unit cell `Part-BoundaryX-LatticeVec` and the number of particles in the unit cell `Part-BoundaryX-NbrOfMol-UnitCell`. These parameters are used in the calculation of the number of active sites. By default, the simulation is started with a clean surface, but an initial species-specific coverage can be specified by `Part-BoundaryX-SpeciesX-Coverage`, which represents the relative number of active sites that are occupied by adsorbate particles. Maximum values for the coverage values can be specified by: Part-Boundary1-Species1-MaxCoverage Part-Boundary1-MaxTotalCoverage Multi-layer adsorption is enabled by a maximal total coverage greater than 1. The reaction paths are defined in the input parameter file. First, the number of gas-surface reactions to be read in must be defined: Surface-NumOfReactions = 2 A catalytic reaction and the boundary on which it takes place is then defined by Surface-Reaction1-SurfName = Adsorption Surface-Reaction1-Type = A Surface-Reaction1-Reactants = (/1,0/) Surface-Reaction1-Products = (/2,1,0/) Surface-Reaction1-NumOfBoundaries = 2 Surface-Reaction1-Boundaries = (/1,3/) All reactants and products are defined by their respective species index. In the case of multiple reacting, the order does not influence the input. The following options are available for the catalytic reaction type: | Model | Description | | ----: | ----------------------------------------------------------- | | A | Adsorption: Kisliuk or Langmuir model | | D | Desorption: Polanyi-Wigner model | | ER | Eley-Rideal reaction: Arrhenius based chemistry | | LH | Langmuir-Hinshelwood reaction: Arrhenius based chemistry | | LHD | Langmuir-Hisnhelwood reaction with instantaneous desorption | For the treatment of multiple reaction paths of the same species, a possible bias in the reaction rate is avoided by a randomized treatment. Bulk species can participate in the reaction. In this case, the bulk species is defined by `Surface-Species` and the corresponding species index. All reaction types allow for the definition of a reaction enthalpy. In addition, this value can be linearly increased (negative factor) or decreased (positive factor) by a scaling factor for the heat of reaction. Both values are given in [K]. Surface-Reaction1-ReactHeat = 17101.4 Surface-Reaction1-HeatScaling = 1202.9 Depending on the reaction type, different additional parameters have to be defined. More details on the specific cases are given in the following subsections. An example input file for CO and O2 on a palladium surface can be found in the regression tests `regressioncheck/WEK_DSMC/ChannelFlow_SurfChem_AdsorpDesorp_CO_O2`. ### Adsorption For the modelling of the adsorption of a gas particle on the surface, two models are available: the simple Langmuir model, with a linear dependence of the adsorption probability on the surface coverage, and the precursor-based Kisliuk model: $$ S = S_0 (1 + K (1/\theta^{\alpha} - 1))^{-1}$$ Here, $S_0$ is the binding coefficient for a clean surface, $\alpha$ is the dissociation constant (2 for dissociative adsorption) and $K$ is the equilibrium constant between adsorption and desorption from the precursor state. For $K = 1$, the model simplifies to the Langmuir case. The parameters can be defined in PICLas as follows: Surface-Reaction1-StickingCoefficient = 0.2 Surface-Reaction1-DissOrder = 1 Surface-Reaction1-EqConstant = 0.6 A special case of adsorption is the dissociative adsorption (`Surface-ReactionX-DissociativeAdsorption = true`), where only half of the molecule binds to the surface, while the other half remains in the gas phase. The adsorbate half `Surface-ReactionX-AdsorptionProduct` and the gas phase product `Surface-ReactionX-GasPhaseProduct` are specified by their respective species indices. The adsorption probability is calculated analogously to the general case. Lateral interactions between multiple adsorbate species, which can disfavor further adsorption can be taken into account by the command `Surface-ReactionX-Inhibition` and the species index of the inhibiting species. ### Desorption The desorption of an adsorbate particle into the gas phase is modelled by the Polanyi-Wigner equation. $$k(T) = A T^b \theta^{\alpha}_{A} e^{-E_\mathrm{a}/T}$$ where $A$ is the prefactor ([1/s, m$^2$/s] depending on the dissociation constant), $\alpha$ the dissociation constant and $E_\mathrm{a}$ the activation energy [K]. These parameters can be defined in PICLas as follows: Surface-ReactionX-Prefactor Surface-ReactionX-Energy ### Catalytic Reaction The Eley-Rideal and the Langmuir-Hinshelwood reaction use Arrhenius-type reaction rates along with the coverage of all surface-bound reactants $\theta_{AB}$, to reproduce of the catalytic reaction. $$k(T) = A T^b \theta_{AB} e^{-E_\mathrm{a}/T}$$ The Arrhenius prefactor ([m$^3$/s] for the Eley-Rideal reaction and [m$^2$/s] for the Langmuir-Hinshelwood case) and the activation energy are read in analogously to the desorption case. For the reactions, an energy accommodation coefficient `Surface-ReactionX-EnergyAccommodation` with values between 0 and 1 can be specified, which defines the amount of the reaction energy that is transferred to the surface. In the general Langmuir-Hinshelwood case with the reaction type `LH`, the product species stays adsorbed on the surface, until a desorption takes place in a later step. For reactions in combination with very high desorption rates, the reaction type `LHD` is more fitting. The product species are inserted directly into the gas phase without an intermediate desorption step. Example inputs for both catalytic reactions can be found in the regression tests: `regressioncheck/NIG_Reservoir/CAT_RATES_ER` and `regressioncheck/NIG_Reservoir/CAT_RATES_LH`. ### Diffusion With `Surface-Diffusion = true` an instantaneous diffusion over all catalytic boundaries is enabled. This is equivalent to an averaging of the coverage values for all surface subsides. ### Parameter Read-In from the Species Database All information about a catalytic reaction can be retrieved from the species database. Here the catalytic reaction parameters are stored in containers and accessed via the reaction name, e.g. `Adsorption_CO_Pt`. ## Deposition of Charges on resolved Dielectric Surfaces This deposition of charges is designed for thick layers of dielectric materials, which are resolved by mesh elements can directly be modelled as described in Section {ref}`sec:dielectric-materials`. 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. (sec:distributed-capacitance-boundary-condition-for-particles)= ## Deposition of charges on distributed capacitance boundary condition (DCBC) surfaces Charged particles impacting on distributed capacitance boundary condition (DCBC) surfaces are deposited on the surface element face via linear weighting, which calculates the surface charge density $\sigma$ in the equation given in {ref}`sec:distributed-capacitance-boundary-condition` and requires the following parameter settings Part-Boundary1-Condition = reflective ! Surface charging requires the boundary condition "reflective" Part-Boundary1-UseSurfaceCharge = T ! Activate surface charging Part-Boundary1-DC-BiasVoltage = 1000.0 ! Electric potential "Phi_0" of the dielectric layer Part-Boundary1-DC-Permittivity = 10.0 ! Relative permittivity "eps_r" of the dielectric layer Part-Boundary1-DC-Thickness = 2.0e-3 ! Thickness "d" of the dielectric layer and the last three parameters listed here are described in Section {ref}`sec:distributed-capacitance-boundary-condition`.