

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 /********************     Total running time in RF cycles     ********************/
TotalTime: 5 //default: 20 RF cycles 

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 /********************     Particles Trajectory, only apply for scan token = 0      ********************/
ParticlesTrajectories: 
{
  ParticleFile       : partpath                // Particles file name, default partpath 
  Start              : 0                       //Start timestep for writting particle file, default 0
  Stop               : 1000000                 //End timestep for writting particle file, default 1000000
  Skip               : 1                       //Skip timesteps for writting particle file, default 1 - no skip
}

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/*********      FieldScales: Field level scans, three types     ********************/
/*********        1. FieldGradient: average field gradient as field scale parameter, unit: v/m     ********************/
/*********        2. InputPortPower: input port power as field scale parameter, unit: W.           ********************/
/*********        3. StorEnergy: store energy as field scale parameter, unit: Joul.                ********************/
FieldScales:
{
  Type               : InputPortPower
  ScanToken          : 0 // 1: scan, 0: no scan
  Scale              : 5  //field scale for particle trajectory
}

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/**************************************     Primary particles emission     ****************************************/
Emitter:
{
  t0                 : 0            //time(in RF cycle) for start emission, default 0.0 
  t1                 : 1            //time(in RF cycle) for end emission, default 1.0 - first RF cycle
  Type               : 2          // emission type
                                      // 2: ElectronicSurface, default
                                      // 5: SolideElectronicSurface
                                      // 7: FieldEmission
  x0                 :  0.00000e+00     // default -1.0e10
  x1                 :  5.00000e-02     // default 1.0e10
  y0                 :  0.00000e+00     // default -1.0e10
  y1                 :  5.00000e-02     // default 1.0e10
  z0                 : -1.00000e-01     // default -1.0e10
  z1                 :  1.00000e-01     // default 1.0e10
  BoundaryID            :    5
  SkipTimeSteps      :      1       // emission skip time steps, default 1, no skip 
}

/**************************************     Primary particles emission     ****************************************/
Emitter:
{
  t0                 : 0            //time(in RF cycle) for start emission, default 0.0 
  t1                 : 1            //time(in RF cycle) for end emission, default 1.0 - first RF cycle
  Type               : 5          // emission type
                                      // 2: ElectronicSurface, default
                                      // 5: SolideElectronicSurface
                                      // 7: FieldEmission
  x0                 :  0.00000e+00     // default -1.0e10
  x1                 :  5.00000e-02     // default 1.0e10
  y0                 :  0.00000e+00     // default -1.0e10
  y1                 :  5.00000e-02     // default 1.0e10
  z0                 : -1.00000e-01     // default -1.0e10
  z1                 :  1.00000e-01     // default 1.0e10
  BoundaryID        :      5
  SkipTimeSteps     :      1       // emission skip time steps, default 1, no skip 
}

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/**************************************     Field informaction container     ****************************************/
Domain:
{
  FieldDir           : ./s3p_results
  dt                 :   1.0000e+00             // parameter used for time step, default dt = 1.0, timestep = dt/frequency/100, default timestep = 1.0/frequency/100 
  SolidRegion        :    2             // Solid block ID, such as window region, default is 0 - no solid region 
  VacuumRegion     :     1         // Vacuum block IDs 
  MaxImpacts         :   50         // maximum impact number, particles died beyond this number, default 50 
  LowEnergy          :  5.00000e+00         // minimum impact energy, particles died if impact energy less than LowEnergy, default 5.0 (eV) 
  HighEnergy         :  1.00000e+09         // maximum impact energy, particles died if impact energy greater than HighEnergy, default 1000000000 (eV) 
  InitialEnergy      :  2.00000e+00         // particles' initial energy, default 2.0 (eV) 
  Bins               :     64                    // parameter used for localize particles, the maximum bins among x, y, z directions. the other two directions' bins derived from it. Default = 64 
  Voltage            :   0.0000e+00   0.0000e+00   0.0000e+00                   //external voltage, default 0 - no external voltage. Format: a ra rb, voltage = a/log(rb/ra) 
  ModeID1            :    0                   //mode ID, default 0 - the first mode 
  ExternalMagneticField:   0.0000e+00   0.0000e+00   0.0000e+00              //external magetic field, unit: Tesla 
}

// Boundary Material
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/**************************************     boundary surface information container     ****************************************/
/**************************************     Three types boundary surface     ****************************************/
/**************************************             2 / Absorber             ****************************************/
/**************************************             3 / Secondary            ****************************************/
/**************************************             4 / Primary              ****************************************/
Material:{
  Type               : Primary
  BoundarySurfaceID  :  5 6                //Boundary surface ID
}

Material:{
  Type               : Primary
  SolidBlockID       :         // Solid block ID
}

Material:{
  Type               : Absorber
  BoundarySurfaceID  :  1 2 3 4                //Boundary surface ID
}

Material:{
  Type               : Secondary
  BoundarySurfaceID  :  5 6                //Boundary surface ID
  Model              : 1            // model 1: multipacting; 2: darkcurrent. Only for secondary emission
}

Material:{
  Type               : Secondary
  SolidBlockID       :         // Solid block ID
  Model              : 1            // model 1: multipacting; 2: darkcurrent. Only for secondary emission
}

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
OutputImpacts    : on // token for impacts output. default = off - no impacts output 
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/**************************************              Postprocess              ****************************************/
Postprocess: // Postprocess
{
  Toggle             : on                       // on: postprocess, off: no postprocess
  ResonantParticles: // postprocess for resonant particles
  {
    Token                 : on                       // on: analysis resonant particles, no: no analysis is done for resonant particles 
    InitialImpacts        :    4                 // particles with impacts number greater than initial impacts are considered, default is 4 
    EnergyRange           :   1.0000e+01   1.0000e+04                  //particles with impact energy fall in this region is considered, default value: >10ev, <10000ev
    PhaseTolerance        :   1.0000e-02                  //phaseTolerance for calculate resonant particles
  }
  EnhancementCounter:             // postprocess for enhancement counter 
  {
    Token                 : off                       // on: do enhancement counter calculation. Default off  
}

